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
- 1 × 24= 24
- 2 × 12= 24
- 3 × 8= 24
- 4 × 6= 24
- Prime factors2³ × 3
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.
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.
- Start with 1 × n. Every number has 1 and itself as factors.
- Try 2, 3, 4 and so on. When one divides n evenly, write the pair: the divisor and n ÷ divisor.
- 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):
| A number is divisible by | If | Example |
|---|---|---|
| 2 | Its last digit is 0, 2, 4, 6 or 8 | 3,778 |
| 3 | The sum of its digits is divisible by 3 | 1,245 (1 + 2 + 4 + 5 = 12) |
| 5 | Its last digit is 5 or 0 | 4,535 |
| 6 | It's divisible by both 2 and 3 | 1,242 |
| 10 | Its last digit is 0 | 7,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
| Number | Factors | Count | Prime factorization |
|---|---|---|---|
| 12 | 1, 2, 3, 4, 6, 12 | 6 | 2² × 3 |
| 16 | 1, 2, 4, 8, 16 | 5 | 2⁴ |
| 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 |
| 30 | 1, 2, 3, 5, 6, 10, 15, 30 | 8 | 2 × 3 × 5 |
| 32 | 1, 2, 4, 8, 16, 32 | 6 | 2⁵ |
| 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 |
| 42 | 1, 2, 3, 6, 7, 14, 21, 42 | 8 | 2 × 3 × 7 |
| 45 | 1, 3, 5, 9, 15, 45 | 6 | 3² × 5 |
| 48 | 1, 2, 3, 4, 6, 8, 12, 16, 24, 48 | 10 | 2⁴ × 3 |
| 50 | 1, 2, 5, 10, 25, 50 | 6 | 2 × 5² |
| 54 | 1, 2, 3, 6, 9, 18, 27, 54 | 8 | 2 × 3³ |
| 56 | 1, 2, 4, 7, 8, 14, 28, 56 | 8 | 2³ × 7 |
| 60 | 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60 | 12 | 2² × 3 × 5 |
| 64 | 1, 2, 4, 8, 16, 32, 64 | 7 | 2⁶ |
| 72 | 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72 | 12 | 2³ × 3² |
| 75 | 1, 3, 5, 15, 25, 75 | 6 | 3 × 5² |
| 80 | 1, 2, 4, 5, 8, 10, 16, 20, 40, 80 | 10 | 2⁴ × 5 |
| 84 | 1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84 | 12 | 2² × 3 × 7 |
| 90 | 1, 2, 3, 5, 6, 9, 10, 15, 18, 30, 45, 90 | 12 | 2 × 3² × 5 |
| 96 | 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 96 | 12 | 2⁵ × 3 |
| 100 | 1, 2, 4, 5, 10, 20, 25, 50, 100 | 9 | 2² × 5² |
| 120 | 1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 24, 30, 40, 60, 120 | 16 | 2³ × 3 × 5 |
| 144 | 1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 36, 48, 72, 144 | 15 | 2⁴ × 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
- OpenStax, Prealgebra 2e, 2.4 Find Multiples and Factors
- NIST Digital Library of Mathematical Functions, 27.2 Functions (fundamental theorem of arithmetic, d(n), σ(n))
- Common Core State Standards for Mathematics, Grade 4, Operations and Algebraic Thinking (4.OA.B.4)
- OEIS A000396, Perfect numbers
- Formulas and test cases: math calculator methodology