Factor Calculator: All the Factors of a Number
Enter a whole number to list all its factors and factor pairs. You will see how many there are, what they add up to, and whether the number is prime, perfect, abundant or deficient.
Last reviewed
Factors of 360
24 factors
2³ × 3² × 5
- Kind
- composite
- Sum of the factors
- 1,170
- Sum of the proper factors
- 810
- Perfect, abundant or deficient
- abundant
- A square number?
- no
All the factors
1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360
| Pair | Product |
|---|---|
| 1 × 360 | 360 |
| 2 × 180 | 360 |
| 3 × 120 | 360 |
| 4 × 90 | 360 |
| 5 × 72 | 360 |
| 6 × 60 | 360 |
| 8 × 45 | 360 |
| 9 × 40 | 360 |
| 10 × 36 | 360 |
| 12 × 30 | 360 |
| 15 × 24 | 360 |
| 18 × 20 | 360 |
A prime has exactly two factors. The proper factors leave out the number itself: if they add up to the number it is perfect, to more it is abundant, to less deficient.
What a factor is
A factor of a whole number is a whole number that divides it exactly, leaving no remainder. 12 ÷ 4 = 3 with nothing left over, so 4 is a factor of 12. The complete list of factors of 12 is 1, 2, 3, 4, 6 and 12. Factors are also called divisors, and MathWorld’s entry on divisors sets out the same idea.
Every number has at least 1 and itself as factors. 1 is a factor of every number, and every number is a factor of itself.
Factor pairs
Factors come in pairs that multiply to the number. For 12:
| Pair | Product |
|---|---|
| 1 × 12 | 12 |
| 2 × 6 | 12 |
| 3 × 4 | 12 |
You only have to test numbers up to the square root of n, because each small factor has a partner that is large. For 12 that means testing up to 3.46. If n is a perfect square the middle pair repeats: 36 has the pairs 1 × 36, 2 × 18, 3 × 12, 4 × 9 and 6 × 6.
How many factors?
Write the number as a product of prime powers, add 1 to each exponent, and multiply. This works because each factor chooses, for every prime, how many times to include it, from none up to the full exponent.
- 12 = 2² × 3 → (2+1)(1+1) = 6 factors
- 36 = 2² × 3² → (2+1)(2+1) = 9 factors
- 360 = 2³ × 3² × 5 → (3+1)(2+1)(1+1) = 24 factors
- 720,720 = 2⁴ × 3² × 5 × 7 × 11 × 13 → 5 × 3 × 2 × 2 × 2 × 2 = 240 factors
- A prime p has (1+1) = 2 factors
Numbers with an odd count of factors are exactly the squares, since a pair repeats only when the number is a square.
Prime, composite, perfect, abundant, deficient
- A prime has exactly two factors: 1 and itself. 2, 3, 5, 7, 11, 97.
- A composite number has more than two. 12, 36, 360.
- 1 has just one factor, and is neither prime nor composite.
The factors other than the number itself are its proper factors. Add them up and compare with the number:
| Number | Proper factors | Sum | Kind |
|---|---|---|---|
| 6 | 1, 2, 3 | 6 | perfect |
| 28 | 1, 2, 4, 7, 14 | 28 | perfect |
| 12 | 1, 2, 3, 4, 6 | 16 | abundant (more than 12) |
| 8 | 1, 2, 4 | 7 | deficient (less than 8) |
| 97 | 1 | 1 | deficient |
A perfect number equals the sum of its proper factors. 6 and 28 are the first two. The sum of all the factors, including the number itself, is exactly twice a perfect number: 1 + 2 + 3 + 6 = 12. MathWorld’s entry on perfect numbers is the place to read more.
Worked examples
360. Factor pairs: 1 × 360, 2 × 180, 3 × 120, 4 × 90, 5 × 72, 6 × 60, 8 × 45, 9 × 40, 10 × 36, 12 × 30, 15 × 24, 18 × 20. That is 12 pairs, so 24 factors, which add up to 1,170.
97. Test every number up to its square root, 9.8. None of 2 to 9 divides 97, so the only factors are 1 and 97, and 97 is prime.
36. 9 factors: 1, 2, 3, 4, 6, 9, 12, 18, 36. Because it is a square, the count is odd, and they add up to 91.
Divisibility rules help
Quick checks for small factors: a number is divisible by 2 if it is even, by 3 if its digits add to a multiple of 3, by 4 if its last two digits do, by 5 if it ends in 0 or 5, by 9 if its digits add to a multiple of 9, and by 10 if it ends in 0. The calculator uses trial division by every candidate up to the square root, so it does not rely on these rules, but they are a fast way to check one by hand.
Common mistakes
- Forgetting 1 and the number itself. Both are always factors.
- Mixing up factors and multiples. Factors divide the number (12: 1, 2, 3, 4, 6, 12). Multiples are what you get by multiplying it (12, 24, 36…). For multiples, see the least common multiple calculator.
- Calling 1 a prime. It has only one factor, so it is not.
- Stopping at half the number. The largest proper factor can be as big as half, such as 6 for 12.
- Missing factors above the square root. Every small factor has a large partner.
Related calculators
- Prime factorization calculator, for the prime factors and a factor tree.
- Greatest common factor calculator and least common multiple calculator.
- Common factor calculator, for the factors two numbers share.
- Fraction calculator and long division calculator.
How it is calculated
The number is split into prime powers by trial division with every candidate up to the square root of what remains. The factors are then built from those prime powers: each prime p^e gives 1, p, p², up to p^e, and every combination is multiplied out. The list is sorted, the pairs are taken from the factors up to the square root, and the sums are added in BigInt so large totals are exact. The count of factors is the product of (e + 1).
Frequently asked questions
What is a factor?
A whole number that divides another exactly, with no remainder. The factors of 12 are 1, 2, 3, 4, 6 and 12, because each divides 12 evenly. Factors are also called divisors.
What are factor pairs?
Two factors that multiply to the number. 12 has the pairs 1 × 12, 2 × 6 and 3 × 4. A pair repeats only for a square number, such as 6 × 6 = 36.
How many factors does a number have?
Write it as a product of prime powers, add 1 to each exponent and multiply. 360 = 2³ × 3² × 5 has (3+1)(2+1)(1+1) = 24 factors.
What is a prime number?
A number greater than 1 with exactly two factors, 1 and itself. 97 is prime. 1 has one factor, so it is neither prime nor composite.
What is a perfect number?
One equal to the sum of its factors other than itself. 6 = 1 + 2 + 3 and 28 = 1 + 2 + 4 + 7 + 14. A number whose proper factors add up to more is abundant (12), and to less is deficient (8).
How large a number can it factor?
Up to a quadrillion (1,000,000,000,000,000). It finds the prime factors by trial division and builds the full list from them, so it is exact for every number in that range.
Related calculators
- Prime Factorization CalculatorEnter a whole number.
- Greatest Common Factor CalculatorEnter two to six whole numbers.
- Least Common Multiple CalculatorEnter two to six whole numbers.
- Common Factor CalculatorEnter two to six whole numbers.
- Fraction CalculatorEnter two fractions, mixed numbers, whole numbers or decimals and choose an operation.
- Long Division CalculatorEnter a dividend and a divisor.
- Roman Numeral ConverterType a number to get its Roman numeral, or type a Roman numeral to get the number.