Factor Calculator
Enter a whole number to list all its factors and see how many there are.
What this calculator does
Enter a whole number and the calculator lists every factor of it — the divisors that leave no remainder — together with a count. At the default of 12 the list is 1, 2, 3, 4, 6 and 12, six factors in all. The method is trial division: it tests each integer from 1 up to n, so any value up to a billion works, with larger numbers taking proportionally longer.
The count matters as much as the list. Knowing that 12 has exactly 6 factors tells you how many ways you can arrange 12 items into equal rows, and the count is the quickest signal for whether a number is prime, since primes have exactly 2 factors.
What a factor is
A factor of n is a whole number that divides it exactly. The number 4 is a factor of 12 because 12 ÷ 4 = 3 with nothing left over; 5 is not, because 12 ÷ 5 leaves a remainder of 2. Factors always travel in pairs that multiply back to the number: 1 × 12, 2 × 6, 3 × 4. Once you have listed one member of each pair, you have found them all.
Worked example: the factors of 12
Start at 1: 12 ÷ 1 = 12, so both 1 and 12 are factors. Try 2: 12 ÷ 2 = 6, so 2 and 6 join the list. Try 3: 12 ÷ 3 = 4, adding 3 and 4. The square root of 12 is about 3.46, and every factor pair must contain one member at or below that line, so the search is already complete. Sorted, the factors are 1, 2, 3, 4, 6 and 12 — six of them, exactly what the calculator reports.
- 1 × 12 = 12
- 2 × 6 = 12
- 3 × 4 = 12
- Every pair has one factor ≤ √12 ≈ 3.46, so testing 1, 2 and 3 finds them all
Factor counts at a glance
| n | Factors | Count |
|---|---|---|
| 12 | 1, 2, 3, 4, 6, 12 | 6 |
| 36 | 1, 2, 3, 4, 6, 9, 12, 18, 36 | 9 |
| 60 | 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60 | 12 |
| 100 | 1, 2, 4, 5, 10, 20, 25, 50, 100 | 9 |
| 97 | 1, 97 | 2 (prime) |
The count jumps when a number has several small prime ingredients. Since 36 = 2² × 3², its 9 factors follow from the count formula below, and 100 = 2² × 5² gives the same 9. A prime such as 97 has exactly 2 factors no matter how large it is, and 1 is the odd case with a single factor, itself.
The count formula from prime factors
If n = pa × qb in prime factors, the number of factors is (a+1) × (b+1). For 12 = 2² × 3 that is (2+1) × (1+1) = 6, matching the calculator. For 60 = 2² × 3 × 5 it is 3 × 2 × 2 = 12. The formula is the fast route for big numbers where testing every divisor one at a time would be slow.
Perfect squares break the pairing rule
Most numbers have an even factor count because pairs never repeat. A perfect square has one pair whose members are equal: 36 = 6 × 6. That repeated middle factor makes the count odd, which is why 36 has 9 factors while 12 has 6. If your factor count comes out odd, the input is a perfect square — a quick sanity check worth remembering for tests like 1, 4, 9, 16, 25, 36, 49, 64, 81 and 100.
Common mistakes
- Forgetting 1 and the number itself; every n ≥ 1 has both as factors
- Stopping the search too early; pairs must be checked up to the square root, not merely halfway
- Confusing factors with multiples; the factors of 12 form the finite list above, while its multiples run 12, 24, 36 and upward forever
- Treating 1 as prime; it has exactly one factor and fails the two-factor definition of a prime
- Applying the definition to decimals or negatives; factors are defined for positive whole numbers
The factors-versus-multiples mix-up is the most common one in homework. Factors are the finite list this calculator prints; multiples are infinite. If a question asks how many factors 100 has, the answer is 9 — but asking how many multiples 100 has has no finite answer, so the phrasing of the question is a clue in itself.
Where factoring is used
Simplifying fractions is the everyday case. To reduce 12/30 you need the greatest common divisor, and the factor lists give it directly: the factors of 12 are 1, 2, 3, 4, 6, 12 and the factors of 30 are 1, 2, 3, 5, 6, 10, 15, 30, so the largest shared one is 6. Dividing top and bottom by 6 leaves 2/5. The same comparison feeds greatest common divisor and least common multiple problems of any size.
Equal grouping is the practical face of the same idea. Sixty divides evenly by 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30 and 60, which is one reason clocks use 60. A class of 36 students can split into equal groups of 2, 3, 4, 6, 9, 12 or 18, and a 12-inch tile divides a 12, 24, 36 or 60-inch wall with no cuts. Every one of those answers is just a row in the factor table.
Frequently asked questions
How do I find all the factors of 12?
Walk through the factor pairs: 1 × 12, 2 × 6 and 3 × 4. The complete list is 1, 2, 3, 4, 6 and 12, so 12 has 6 factors.
How many factors does 100 have?
Nine: 1, 2, 4, 5, 10, 20, 25, 50 and 100. Since 100 = 2² × 5², the count formula also gives (2+1) × (2+1) = 9.
What is the difference between a factor and a multiple?
A factor divides the number exactly, and the full list is finite; a multiple is the number times any whole number, and that list never ends. The factors of 12 are 1, 2, 3, 4, 6 and 12, while its multiples start 12, 24, 36 and run forever.
Why does a perfect square have an odd number of factors?
One factor pair repeats: the square root times itself. For 36 the pair 6 × 6 counts once, so the count is odd. Any odd factor count means the input is a perfect square.
How do I use factors to simplify a fraction?
Find the largest factor the numerator and denominator share and divide both by it. For 12/30 the shared factors are 1, 2, 3 and 6, so dividing by 6 gives 2/5.
Is 1 a factor of every number?
Yes. Every whole number divides evenly by 1, and every number is also a factor of itself. That is why 1 and n always start and end the factor list.
When can I stop testing for factors?
At the square root. For 12, the square root is about 3.46, so testing 1, 2 and 3 is enough; each one hands you its partner for free. Testing past the square root only re-lists pairs you already have.
What makes a number prime in factor terms?
It has exactly 2 factors: 1 and itself. The output for 97 lists just 1 and 97, which is the definition. Numbers with 3 or more factors are composite.
How many factors can a number have?
Counts grow with the number of small prime ingredients. The number 840 = 2³ × 3 × 5 × 7 has (3+1) × 2 × 2 × 2 = 32 factors, far more than most numbers of similar size.
Method and sources
- Factorisation by trial division from 1 to n.