Factor calculator

Table of Contents

Enter any whole number and this factor calculator lists all of its factors and factor pairs, tells you whether the number is prime or composite, and shows every step. Switch tabs to get the prime factorization of a number, or the greatest common factor (GCF) and least common multiple (LCM) of two numbers. It works for whole numbers up to one trillion.

Enter a whole number to find all of its factors and factor pairs.

Number
Whole numbers from 1 to 1,000,000,000,000
Result

Factors of Common Numbers

NumberFactorsHow many
121, 2, 3, 4, 6, 126
181, 2, 3, 6, 9, 186
201, 2, 4, 5, 10, 206
241, 2, 3, 4, 6, 8, 12, 248
301, 2, 3, 5, 6, 10, 15, 308
361, 2, 3, 4, 6, 9, 12, 18, 369
401, 2, 4, 5, 8, 10, 20, 408
481, 2, 3, 4, 6, 8, 12, 16, 24, 4810
601, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 6012
721, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 7212
841, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 8412
1001, 2, 4, 5, 10, 20, 25, 50, 1009
main image main image
Math Help

Factors today, fractions and algebra tomorrow.

Build the foundation with Brighterly math tutor.

Get a free lesson

How to Use the Factor Calculator

  1. Pick a tab: Factors, Prime Factorization or GCF & LCM.
  2. Type a whole number, for example 30. For GCF & LCM, enter a second number too, for example 45.
  3. Press Find factors (the button changes with the tab: Find prime factorization or Find GCF and LCM).
  4. Read the result and the step-by-step solution under it. The steps show how the answer was found, so you can repeat them by hand on a test.

The Prime Factorization tab doubles as a prime factorization calculator: it divides by the smallest prime step by step and writes the answer in exponent form. Below the calculator you will find a table with the factors of common numbers from 12 to 100. Click any number in it to see its full solution.

What Are Factors?

Factors are whole numbers that divide another number exactly, with no remainder. Because 3 × 10 = 30, both 3 and 10 are factors of 30. Every whole number greater than 1 has at least two factors: 1 and the number itself.

Factors are easy to mix up with multiples. Factors of 12 are the numbers that go into 12: 1, 2, 3, 4, 6 and 12. Multiples of 12 are what you get when you multiply 12 by 1, 2, 3 and so on: 12, 24, 36, 48… A number has a limited list of factors but an endless list of multiples.

Factor Pairs

A factor pair is two numbers that multiply to give the original number. The factor pairs of 30 are 1 × 30, 2 × 15, 3 × 10 and 5 × 6. Factor pairs are handy in real life: if you need to arrange 24 chairs in equal rows, the pairs 1 × 24, 2 × 12, 3 × 8 and 4 × 6 show every rectangle you can make.

Prime and Composite Numbers

A number with exactly two factors, 1 and itself, is a prime number (2, 3, 5, 7, 11, 13…). A number with more than two factors is a composite number (4, 6, 8, 9, 10, 12…). The number 1 has only one factor, so it is neither prime nor composite.

How to Find the Factors of a Number

You do not need to test every number up to 30 to find its factors. Test only up to the square root, because after that the factor pairs repeat in reverse.

  1. Find the square root. √30 ≈ 5.48, so you only need to test 1, 2, 3, 4 and 5.
  2. Divide by each number. 30 ÷ 1 = 30, 30 ÷ 2 = 15, 30 ÷ 3 = 10, 30 ÷ 5 = 6. The number 4 does not divide 30 evenly, so skip it.
  3. Write both numbers of every pair. The factors of 30 are 1, 2, 3, 5, 6, 10, 15 and 30. That makes 8 factors, and their sum is 72.

A perfect square has one pair where both numbers are the same, so it has an odd number of factors. The factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18 and 36: nine factors, because 6 × 6 counts only once.

Divisibility rules speed things up: a number is divisible by 2 if it ends in an even digit, by 3 if its digits add up to a multiple of 3, by 5 if it ends in 0 or 5, and by 9 if its digits add up to a multiple of 9.

Prime Factorization

Prime factorization means writing a number as a product of prime numbers only. Every whole number greater than 1 has exactly one prime factorization, which is why it is so useful for finding the GCF, the LCM and the number of factors.

How to Find the Prime Factorization (Factor Tree Method)

Keep dividing by the smallest prime that works until you reach 1. For 84:

  • 84 ÷ 2 = 42
  • 42 ÷ 2 = 21
  • 21 ÷ 3 = 7
  • 7 ÷ 7 = 1

So 84 = 2 × 2 × 3 × 7, or 2² × 3 × 7 in exponent form. Drawn as a factor tree, each branch splits until every leaf is a prime.

Count the Factors from the Prime Factorization

Add 1 to each exponent and multiply. For 84 = 2² × 3¹ × 7¹, that is (2 + 1) × (1 + 1) × (1 + 1) = 12 factors. For 72 = 2³ × 3², it is 4 × 3 = 12 factors. This trick tells you how many factors to look for before you start listing them.

GCF and LCM Calculator

The third tab works as a greatest common factor calculator and a least common multiple calculator at the same time. Enter two whole numbers and it finds both values with prime factorization.

Greatest Common Factor (GCF)

The greatest common factor is the largest number that divides two numbers exactly. It is also called the greatest common divisor (GCD) or highest common factor (HCF). You use it to simplify fractions: the GCF of 12 and 18 is 6, so 12/18 = 2/3.

How to find the greatest common factor: write the prime factorization of both numbers and multiply the primes they share, using the smaller power of each.

  • 24 = 2³ × 3 and 36 = 2² × 3²
  • Shared primes with the smaller powers: 2² × 3 = 12

Least Common Multiple (LCM)

The least common multiple is the smallest number that both numbers divide into. You need it to add fractions with different denominators: the LCM of 4 and 6 is 12, so 1/4 + 1/6 = 3/12 + 2/12 = 5/12.

How to find the least common multiple: multiply every prime that appears in either number, using the larger power of each.

  • 24 = 2³ × 3 and 36 = 2² × 3²
  • All primes with the larger powers: 2³ × 3² = 72

Quick check: GCF × LCM always equals the product of the two numbers. Here 12 × 72 = 864 and 24 × 36 = 864, so both answers are right. The calculator runs this check for you.

Numbers

GCF

LCM

4 and 6

2

12

6 and 8

2

24

8 and 12

4

24

12 and 18

6

36

16 and 40

8

80

24 and 36

12

72

 

Factors of Common Numbers

These are the numbers students are asked about most often. Each row shows every factor and how many there are.

Number

Factors

How many

Prime factorization

8

1, 2, 4, 8

4

2³

12

1, 2, 3, 4, 6, 12

6

2² × 3

18

1, 2, 3, 6, 9, 18

6

2 × 3²

20

1, 2, 4, 5, 10, 20

6

2² × 5

24

1, 2, 3, 4, 6, 8, 12, 24

8

2³ × 3

28

1, 2, 4, 7, 14, 28

6

2² × 7

30

1, 2, 3, 5, 6, 10, 15, 30

8

2 × 3 × 5

36

1, 2, 3, 4, 6, 9, 12, 18, 36

9

2² × 3²

40

1, 2, 4, 5, 8, 10, 20, 40

8

2³ × 5

45

1, 3, 5, 9, 15, 45

6

3² × 5

48

1, 2, 3, 4, 6, 8, 12, 16, 24, 48

10

2⁴ × 3

60

1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60

12

2² × 3 × 5

84

1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84

12

2² × 3 × 7

100

1, 2, 4, 5, 10, 20, 25, 50, 100

9

2² × 5²

 

Common Mistakes When Finding Factors

  • Forgetting 1 and the number itself. Every number is divisible by 1 and by itself, so both always belong in the list.
  • Stopping too early or too late. Test up to the square root and then write the partner of each factor. Going further only repeats pairs.
  • Counting a square factor twice. In 36 = 6 × 6, the 6 appears once in the list.
  • Mixing up GCF and LCM. The GCF is never bigger than the smaller number; the LCM is never smaller than the bigger number.
  • Calling 1 a prime number. A prime needs exactly two different factors, and 1 has only one.

Practice Problems

Solve these by hand, then check with the calculator.

  1. List all the factors of 48.
  2. Write the prime factorization of 90.
  3. Find the GCF and LCM of 16 and 40.
  4. Is 91 prime or composite?
  5. How many factors does 100 have?

Answers: 1) 1, 2, 3, 4, 6, 8, 12, 16, 24, 48. 2) 90 = 2 × 3² × 5. 3) GCF = 8, LCM = 80 (check: 8 × 80 = 640 = 16 × 40). 4) Composite: 91 = 7 × 13. 5) 100 = 2² × 5², so (2 + 1) × (2 + 1) = 9 factors.

Frequently Asked Questions

What are factors in math?

Factors are whole numbers that divide a number exactly, with no remainder. For example, 1, 2, 4, 5, 10 and 20 are the factors of 20, because each of them divides 20 evenly.

How do you find the factors of a number?

Divide the number by 1, 2, 3 and so on up to its square root. Every number that divides evenly is a factor, and so is the result of the division. For 30, testing 1 to 5 gives the pairs 1 × 30, 2 × 15, 3 × 10 and 5 × 6.

What are the factors of 24?

1, 2, 3, 4, 6, 8, 12 and 24. The factor pairs are 1 × 24, 2 × 12, 3 × 8 and 4 × 6.

What are the factors of 36?

1, 2, 3, 4, 6, 9, 12, 18 and 36. Because 36 is a perfect square (6 × 6), it has an odd number of factors: nine.

What is prime factorization?

Prime factorization is writing a number as a product of prime numbers. For example, 60 = 2 × 2 × 3 × 5, or 2² × 3 × 5.

What is the greatest common factor?

The greatest common factor (GCF) of two numbers is the largest number that divides both of them. The GCF of 12 and 18 is 6.

What is the least common multiple?

The least common multiple (LCM) of two numbers is the smallest number that is a multiple of both. The LCM of 8 and 12 is 24.

What is the difference between a factor and a multiple?

A factor divides into a number; a multiple is the number times 1, 2, 3 and so on. 4 is a factor of 12, and 24 is a multiple of 12.

Is 1 a prime number?

No. A prime number has exactly two different factors. The number 1 has only one factor, so it is neither prime nor composite.

Build Number Sense with a Brighterly Tutor

Factors, primes, GCF and LCM are the groundwork for fractions, ratios and algebra. Brighterly math tutors help kids from 1st to 8th grade understand them with arrays, factor trees and games, not memorized rules. Book a free lesson and see how quickly your child can get confident with numbers.

Want more practice? Try our factors worksheets, greatest common factor worksheets and least common multiple worksheets, or use the fraction calculator to simplify fractions with the GCF.

Want your kid to excel in math and reading?

Kid’s grade

  • Grade 1
  • Grade 2
  • Grade 3
  • Grade 4
  • Grade 5
  • Grade 6
  • Grade 7
  • Grade 8
  • Grade 9
Image full form
image
Close a child’s math gaps with a tutor!

Close a child’s math gaps with a tutor!

Book a free demo lesson with our math tutor and see your kid fill math gaps with interactive lessons
Book demo lesson Factor calculator
Get full test results