Factor Calculator
Enter any whole number to see all its factors, a factor-pairs table, its prime factorization and quick facts such as whether it is prime or a perfect square.
How to use the Factor Calculator
- Enter Whole number (Any whole number up to 9,007,199,254,740,991. For a negative number, the factors of its absolute value apply with either sign).
- Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
- Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.
What factors are
A factor (or divisor) of a whole number divides it exactly, leaving no remainder. The factors of 12 are 1, 2, 3, 4, 6 and 12. Factors come in pairs that multiply to the number: 1 × 12, 2 × 6 and 3 × 4.
How to find all factors by hand
- Start at 1 and test each whole number up to the square root of your number.
- Whenever a number divides exactly, write down it and its partner (the quotient).
- Stop at the square root: past that point, you would only find the same pairs again in reverse.
For 360, √360 ≈ 18.97, so you only test 1 to 18. That gives the pairs 1 × 360, 2 × 180, 3 × 120, 4 × 90, 5 × 72, 6 × 60, 8 × 45, 9 × 40, 10 × 36, 12 × 30, 15 × 24 and 18 × 20: twelve pairs, or 24 factors. The calculator generates factors from the prime factorization instead, which is far faster for large numbers, and handles anything up to 9,007,199,254,740,991.
Counting factors with the prime factorization
Write the number as primes with exponents and multiply together one more than each exponent:
n = p₁ᵃ × p₂ᵇ × … ⇒ number of factors = (a + 1)(b + 1)…
360 = 2³ × 3² × 5, so it has (3 + 1)(2 + 1)(1 + 1) = 24 factors. Each factor picks a power of 2 (0 to 3), a power of 3 (0 to 2) and a power of 5 (0 or 1). This is also why 360 was chosen for the degrees in a circle: it divides evenly in many ways.
Quick facts explained
- Prime: exactly two factors, 1 and itself. 1 is neither prime nor composite.
- Perfect square: has an odd number of factors, because the square root pairs with itself. 144 has 15 factors.
- Perfect number: equal to the sum of its proper factors (all factors except itself). 28 = 1 + 2 + 4 + 7 + 14. Only a handful are known below a trillion: 6, 28, 496, 8,128, 33,550,336, 8,589,869,056 and 137,438,691,328.
- Abundant numbers have proper factors that add up to more than the number (360’s add up to 810); deficient numbers, including every prime, add up to less.
Negative numbers and zero
For a negative number, the factors are the same as for its absolute value, each taken with a plus or minus sign. Zero is a special case: every non-zero integer divides 0, so it has infinitely many factors, and the calculator asks for a non-zero number instead.
Frequently asked questions
How do I find all the factors of a number?
Test every whole number from 1 up to the square root. Each one that divides exactly gives a pair: the divisor and the quotient.
What is the difference between factors and multiples?
Factors divide into a number (the factors of 12 include 3 and 4). Multiples are what you get by multiplying it (multiples of 12 include 24 and 36).
Which number under 100 has the most factors?
60, 72, 84, 90 and 96 tie with 12 factors each.
Why do perfect squares have an odd number of factors?
Factors normally come in pairs, but in a perfect square the square root is paired with itself, so it is only counted once.
Is 1 a prime number?
No. A prime has exactly two different factors, and 1 has only one.