Factor Calculator: All Factors, Pairs & Prime Factorization

Factors are the whole numbers that multiply together to make a number. 24 has 8: 1, 2, 3, 4, 6, 8, 12, 24.

  • Factor pairs
  • Prime factorization
  • Common factors
Find the factors
Example scratch paper
  • 1 × 24= 24
  • 2 × 12= 24
  • 3 × 8= 24
  • 4 × 6= 24
  • Prime factors2³ × 3
24Number of factors8

A factor of a number is a whole number that divides it with no remainder: if a × b = m, then a and b are factors of m (OpenStax Prealgebra 2e, 2.4). The factors of 24 are 1, 2, 3, 4, 6, 8, 12, 24: 8 factors in four pairs, 1 × 24, 2 × 12, 3 × 8 and 4 × 6. Enter any whole number up to one trillion to see all its factors, factor pairs, prime factorization and how many factors it has, or enter two or more numbers to find their common factors.

Last updated November 11, 2026  How we calculate

A whole number up to 1,000,000,000,000. For common factors, enter 2 to 20 numbers separated by commas or spaces. A number like 1,071 is read as one number.

Factors

Factors of 24

8 factors

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

Prime factorization2³ × 3
Number of factors8 = (3 + 1) × (1 + 1)
Sum of factors60
Prime or compositeComposite
Perfect, abundant or deficientAbundant (other factors add up to 36, more than 24)
Factor pairs (4)
1 × 2424
2 × 1224
3 × 824
4 × 624
Prime factorization steps
24 ÷ 212
12 ÷ 26
6 ÷ 23
3 ÷ 31 (done)

Divide by the smallest prime that goes in evenly, and repeat until you reach 1. The primes you divided by multiply to 24: 2³ × 3.

How to Find All the Factors of a Number

Factors come in pairs: each factor a has a partner b with a × b = n. So you only need to test divisors up to the square root of n; every one that divides evenly gives you two factors.

  1. Start with 1 × n. Every number has 1 and itself as factors.
  2. Try 2, 3, 4 and so on. When one divides n evenly, write the pair: the divisor and n ÷ divisor.
  3. Stop once the divisor is bigger than the square root of n. Past that point, you'd only find pairs you already have.

Example, 36: 1 × 36, 2 × 18, 3 × 12, 4 × 9, 6 × 6. 5 doesn't divide 36, and after 6 (the square root) you'd repeat pairs. So the factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18, 36. Because 6 × 6 pairs 6 with itself, 36 has an odd number of factors, 9. Only perfect squares have an odd number of factors.

Prime Factorization and How Many Factors a Number Has

A prime number is "a counting number greater than 1 whose only factors are 1 and itself," and a composite number is "a counting number that is not prime"; 1 is neither (OpenStax, 2.4). Every whole number greater than 1 can be written in exactly one way, apart from the order of the factors, as a product of prime powers (NIST DLMF 27.2): 24 = 2³ × 3, 360 = 2³ × 3² × 5.

The prime factorization tells you how many factors a number has. Each factor uses each prime from 0 times up to its exponent, so add 1 to every exponent and multiply. For 24 = 2³ × 3: (3 + 1) × (1 + 1) = 8 factors. For 360 = 2³ × 3² × 5: 4 × 3 × 2 = 24 factors. Mathematicians write this count as d(n), "the number of divisors of n," and the sum of the factors as σ(n) (DLMF 27.2). Enter a number above to see its prime factorization alongside its factors, with the division steps.

Division ladder for 24: 24 ÷ 2 = 12, 12 ÷ 2 = 6, 6 ÷ 2 = 3, 3 ÷ 3 = 1. Divide by the smallest prime that goes in evenly until you reach 1; the primes you used, 2 × 2 × 2 × 3, are the prime factorization.

Divisibility Shortcuts

These tests tell you quickly whether a small number is a factor (OpenStax, Table 2.10):

Divisibility tests
A number is divisible byIfExample
2Its last digit is 0, 2, 4, 6 or 83,778
3The sum of its digits is divisible by 31,245 (1 + 2 + 4 + 5 = 12)
5Its last digit is 5 or 04,535
6It's divisible by both 2 and 31,242
10Its last digit is 07,390

Factors vs. Multiples

Factors divide into a number; multiples are what you get when you multiply it. 6 is a factor of 24, and 24 is a multiple of 6. A number has a limited list of factors, all no bigger than the number itself, but endless multiples. Under the Common Core, students usually meet both in 4th grade, starting with finding "all factor pairs for a whole number in the range 1-100" (Common Core 4.OA.B.4).

Common Factors and the GCF

A common factor of two or more numbers is a factor of all of them. The common factors are exactly the factors of their greatest common factor: for 24 and 36, the GCF is 12, so the common factors are 1, 2, 3, 4, 6, 12. Enter several numbers above to list them, or use the GCF calculator for Euclid's algorithm and the LCM calculator for common multiples.

Factors of Common Numbers

Factors, number of factors and prime factorization
NumberFactorsCountPrime factorization
121, 2, 3, 4, 6, 1262² × 3
161, 2, 4, 8, 1652⁴
181, 2, 3, 6, 9, 1862 × 3²
201, 2, 4, 5, 10, 2062² × 5
241, 2, 3, 4, 6, 8, 12, 2482³ × 3
301, 2, 3, 5, 6, 10, 15, 3082 × 3 × 5
321, 2, 4, 8, 16, 3262⁵
361, 2, 3, 4, 6, 9, 12, 18, 3692² × 3²
401, 2, 4, 5, 8, 10, 20, 4082³ × 5
421, 2, 3, 6, 7, 14, 21, 4282 × 3 × 7
451, 3, 5, 9, 15, 4563² × 5
481, 2, 3, 4, 6, 8, 12, 16, 24, 48102⁴ × 3
501, 2, 5, 10, 25, 5062 × 5²
541, 2, 3, 6, 9, 18, 27, 5482 × 3³
561, 2, 4, 7, 8, 14, 28, 5682³ × 7
601, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60122² × 3 × 5
641, 2, 4, 8, 16, 32, 6472⁶
721, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72122³ × 3²
751, 3, 5, 15, 25, 7563 × 5²
801, 2, 4, 5, 8, 10, 16, 20, 40, 80102⁴ × 5
841, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84122² × 3 × 7
901, 2, 3, 5, 6, 9, 10, 15, 18, 30, 45, 90122 × 3² × 5
961, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 96122⁵ × 3
1001, 2, 4, 5, 10, 20, 25, 50, 10092² × 5²
1201, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 24, 30, 40, 60, 120162³ × 3 × 5
1441, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 36, 48, 72, 144152⁴ × 3²

In this table, 120 has the most factors, 16, while 64 = 2⁶ has 7 and its neighbors 60 = 2² × 3 × 5 and 72 = 2³ × 3², built from several primes, have 12 each. See all math calculators.

Frequently Asked Questions

How many factors does 24 have?

8: 1, 2, 3, 4, 6, 8, 12, 24. Its prime factorization is 2³ × 3, and (3 + 1) × (1 + 1) = 8.

Is 1 a factor of every number?

Yes. 1 × n = n, so 1 and the number itself are factors of every whole number. A number with only those two factors (and greater than 1) is prime.

Do negative numbers have factors?

Yes: −2 × −12 = 24, so −2 and −12 are factors of 24 too. Factor lists usually give the positive factors, as this calculator does; each one also has a negative partner. A negative number you enter is factored by its positive value.

What are the factors of 0?

Every whole number is a factor of 0, because n × 0 = 0, so 0 doesn't have a finite list of factors. The calculator asks for numbers above 0.

What is a perfect number?

A number whose factors other than itself add up to the number: 6 = 1 + 2 + 3 and 28 = 1 + 2 + 4 + 7 + 14. If those factors add up to more, like 12 (1 + 2 + 3 + 4 + 6 = 16), the number is abundant; if less, it's deficient (OEIS A005101, A005100). The calculator tells you which. Perfect numbers are rare: the first four are 6, 28, 496 and 8,128 (OEIS A000396).

What's the difference between factors and prime factors?

The factors of a number are every whole number that divides it; the prime factors are only the primes among them. 24 has 8 factors but just two prime factors, 2 and 3, and its prime factorization is 2³ × 3.

Sources