Algebra
Factor Calculator: Find All Factors, Prime Factors And Factored Form
Last updated: October 2026
A factor calculator finds every whole number that divides evenly into a number, with no remainder. For 36, the factors are 1, 2, 3, 4, 6, 9, 12, 18 and 36. It also gives the prime factorization (36 = 2² × 3²) and can factor algebra expressions, like x² + 7x + 12 = (x + 3)(x + 4).
- Free, no sign-up
- Shows the working
- Runs on your device
Factoring shows up everywhere in math, from simplifying fractions to solving equations. This guide covers factors of numbers, prime factorization and algebra factoring. Every example was checked with a computer algebra system.
Note: Calc Solver (calc-solver.co) is an independent guide site and is not affiliated with any calculator mentioned here.
What A Factor Is
A factor is a whole number that divides into another number with no remainder. 4 is a factor of 12 because 12 ÷ 4 = 3 exactly. 5 is not, because 12 ÷ 5 leaves a remainder of 2.
Two factors that multiply to the number form a factor pair. The factor pairs of 12 are 1 × 12, 2 × 6 and 3 × 4. "Divisor" means the same as factor, while "multiple" goes the other way: 12 is a multiple of 4.
How To Find All Factors Of A Number
To find all factors, divide the number by 1, 2, 3 and so on, up to its square root. Each divisor that works gives you a factor pair. This method is called trial division, and it is what a factor calculator does in the background.
Here is 36. Its square root is 6, so you only test 1 through 6:
| Test | Divides evenly? | Factor pair |
|---|---|---|
| 36 ÷ 1 | Yes | 1 × 36 |
| 36 ÷ 2 | Yes | 2 × 18 |
| 36 ÷ 3 | Yes | 3 × 12 |
| 36 ÷ 4 | Yes | 4 × 9 |
| 36 ÷ 5 | No | None |
| 36 ÷ 6 | Yes | 6 × 6 |
So the factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18 and 36.
You can stop at the square root because every pair has one factor below it and one above it. Notice that 36 has an odd number of factors, 9. Only perfect squares do that, because one pair repeats (6 × 6). For a negative number like −12, the factors are the same numbers with both signs: ±1, ±2, ±3, ±4, ±6 and ±12.
Divisibility Rules That Speed Up Factoring
Divisibility rules let you test a number in your head before you divide, so you skip divisions that cannot work.
| Divisible by | Rule | Example |
|---|---|---|
| 2 | Last digit is even | 348 |
| 3 | Digit sum is divisible by 3 | 471 (4 + 7 + 1 = 12) |
| 5 | Last digit is 0 or 5 | 935 |
| 9 | Digit sum is divisible by 9 | 7,281 (7 + 2 + 8 + 1 = 18) |
Prime Numbers Vs Composite Numbers
A prime number has exactly two factors: 1 and itself. A composite number has more than two. The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29.
Three facts trip people up:
- 1 is neither prime nor composite. It has only one factor.
- 2 is the only even prime. Every other even number has 2 as a factor.
- Odd does not mean prime. 91 looks prime, but 91 = 7 × 13.
To test a number, divide by each prime up to its square root. For 97, test 2, 3, 5 and 7. None work, so 97 is prime.
Prime Factorization Calculator: How It Works
A prime factorization calculator writes a number as a product of primes only, like 360 = 2³ × 3² × 5. Every whole number greater than 1 has exactly one prime factorization, apart from the order. This fact is called the fundamental theorem of arithmetic, and Math is Fun's prime factorization page has more practice examples.
Two hand methods give the same answer.
The Division Method (Ladder)
Divide by the smallest prime that works, write the result below, and repeat until you reach 1. Here is 360:
| Divide by | Result |
|---|---|
| 2 | 360 ÷ 2 = 180 |
| 2 | 180 ÷ 2 = 90 |
| 2 | 90 ÷ 2 = 45 |
| 3 | 45 ÷ 3 = 15 |
| 3 | 15 ÷ 3 = 5 |
| 5 | 5 ÷ 5 = 1 |
The primes on the left are 2, 2, 2, 3, 3 and 5, so 360 = 2³ × 3² × 5.
The Factor Tree Method
A factor tree splits the number into any factor pair, then keeps splitting until every branch ends in a prime. For 84, you could start with 84 = 4 × 21. Then 4 = 2 × 2 and 21 = 3 × 7. The prime leaves are 2, 2, 3 and 7, so 84 = 2² × 3 × 7.
Starting with 84 = 2 × 42 or 7 × 12 changes the tree, but never the primes at the end.
How To Count Factors Without Listing Them
You can count a number's factors straight from its prime factorization. Add 1 to each exponent, then multiply the results. This saves a lot of time on large numbers.
| Number | Prime factorization | Count | Number of factors |
|---|---|---|---|
| 36 | 2² × 3² | (2 + 1)(2 + 1) | 9 |
| 84 | 2² × 3¹ × 7¹ | (2 + 1)(1 + 1)(1 + 1) | 12 |
| 360 | 2³ × 3² × 5¹ | (3 + 1)(2 + 1)(1 + 1) | 24 |
| 2,520 | 2³ × 3² × 5¹ × 7¹ | (3 + 1)(2 + 1)(1 + 1)(1 + 1) | 48 |
It works because each factor of 360 uses 0 to 3 twos, 0 to 2 threes and 0 or 1 five: 4 × 3 × 2 = 24 choices.
Using Prime Factors To Find The GCF And LCM
Prime factorization is the most reliable way to find the greatest common factor (GCF) and least common multiple (LCM).
Take 84 = 2² × 3 × 7 and 360 = 2³ × 3² × 5.
- GCF: take each prime the numbers share, at its lowest power. They share 2 and 3, so the GCF is 2² × 3 = 12.
- LCM: take every prime that appears, at its highest power. That is 2³ × 3² × 5 × 7 = 2,520.
Check: GCF × LCM always equals the two numbers multiplied together. 12 × 2,520 = 30,240, and 84 × 360 = 30,240. It matches.
The GCF simplifies fractions (84/360 = 7/30), and the LCM gives common denominators. The fraction calculator does both for you.
Factoring Algebraic Expressions
Factoring a polynomial means rewriting it as a product of simpler expressions. It is the reverse of multiplying out, and it is the main step in solving many equations. Math is Fun's factoring guide covers the basics. Always follow this order:
- Take out the greatest common factor.
- Count the terms: two terms suggest a special pattern, three suggest a trinomial, four suggest grouping.
- Check whether any factor can be factored again.
Taking Out The Greatest Common Factor
The GCF of an expression is the largest number and power of x that divides every term. In 6x³ + 9x², every term is divisible by 3 and by x². So 6x³ + 9x² = 3x²(2x + 3).
Skipping this step often leaves an answer incomplete: 2x² − 8 should become 2(x − 2)(x + 2).
Factoring Trinomials When A = 1
For x² + bx + c, find two numbers that multiply to c and add to b.
- x² + 7x + 12: 3 and 4 multiply to 12 and add to 7, so the answer is (x + 3)(x + 4).
- x² − 5x − 14: −7 and 2 multiply to −14 and add to −5, so the answer is (x − 7)(x + 2).
Factoring Trinomials When A Is Not 1 (AC Method)
For ax² + bx + c, multiply a × c, find two numbers that multiply to ac and add to b, then split the middle term and group.
Take 6x² + 7x − 3:
- a × c = 6 × (−3) = −18.
- 9 and −2 multiply to −18 and add to 7.
- Split the middle: 6x² + 9x − 2x − 3.
- Group: 3x(2x + 3) − 1(2x + 3).
- Factor out the shared part: (2x + 3)(3x − 1).
Special Factoring Patterns
Some expressions match a pattern you can factor in one step.
| Pattern | Formula | Example |
|---|---|---|
| Difference of squares | a² − b² = (a + b)(a − b) | 9x² − 25 = (3x + 5)(3x − 5) |
| Perfect square trinomial | a² + 2ab + b² = (a + b)² | x² + 10x + 25 = (x + 5)² |
| Difference of cubes | a³ − b³ = (a − b)(a² + ab + b²) | x³ − 8 = (x − 2)(x² + 2x + 4) |
| Sum of cubes | a³ + b³ = (a + b)(a² − ab + b²) | x³ + 27 = (x + 3)(x² − 3x + 9) |
A sum of squares, like x² + 4, does not factor over the real numbers. That is why x⁴ − 16 stops at (x − 2)(x + 2)(x² + 4).
Factoring By Grouping
Use grouping for four terms: factor each pair, then pull out the shared factor.
For x³ + 2x² + 3x + 6: group as (x³ + 2x²) + (3x + 6). That gives x²(x + 2) + 3(x + 2), which becomes (x + 2)(x² + 3).
When An Expression Will Not Factor
Polynomials that cannot be factored using whole numbers are called prime polynomials. For a quadratic, check the discriminant, b² − 4ac. If it is not a perfect square, it does not factor over the integers.
For x² + x + 1, the discriminant is 1 − 4 = −3, so it is prime. To solve an equation like that, use the quadratic formula calculator instead.
Common Factoring Mistakes
Most errors come from stopping too early or mixing up signs.
| Mistake | Example | Fix |
|---|---|---|
| Stopping before all factors are prime | 360 = 2³ × 45 | 45 = 3² × 5, so 360 = 2³ × 3² × 5 |
| Forgetting the GCF | 2x² − 8 = (2x − 4)(x + 2) | Take out 2 first: 2(x − 2)(x + 2) |
| Wrong signs in a trinomial | x² − 5x − 14 = (x + 7)(x − 2) | Product −14, sum −5: (x − 7)(x + 2) |
| Not factoring completely | x⁴ − 16 = (x² − 4)(x² + 4) | x² − 4 factors again: (x − 2)(x + 2)(x² + 4) |
Summary
- A factor divides a number with no remainder. Test up to the square root to find every factor pair.
- Prime factorization writes a number as a product of primes, like 360 = 2³ × 3² × 5. The ladder and the factor tree give the same result.
- Prime factors also count factors, (a + 1)(b + 1)…, and give the GCF and LCM.
- For expressions, take out the GCF first, then use the trinomial, AC, pattern or grouping method.
Next step: type your number or expression into the factor calculator at the top of this page. To solve equations once they are factored, try the equation solver, or explore more tools on the Calc Solver homepage.
Frequently Asked Questions
How many factors does 100 have?
100 has 9 factors: 1, 2, 4, 5, 10, 20, 25, 50 and 100. Its prime factorization is 2² × 5², and (2 + 1)(2 + 1) = 9 confirms the count. The count is odd because 100 is a perfect square, so the pair 10 × 10 uses the same number twice. Its factor pairs are 1 × 100, 2 × 50, 4 × 25, 5 × 20 and 10 × 10.
What is the difference between factors and prime factors?
Factors are all the numbers that divide evenly into a number. Prime factors are only the prime numbers in that list. For 12, the factors are 1, 2, 3, 4, 6 and 12, but the prime factors are just 2 and 3. Prime factors are the building blocks: multiplied together with the right exponents, they rebuild the number, as in 12 = 2² × 3.
Is 0 a factor of any number?
No. Zero is never a factor, because dividing by 0 is undefined. The reverse is different: every nonzero whole number is a factor of 0, since 0 divided by any of them equals 0 with no remainder. That is why a factor calculator cannot list the factors of 0. The list would never end.
Can you factor decimals or fractions?
Factors are defined for whole numbers, so a factor calculator asks for integers. To work with a decimal, turn it into a fraction first: 0.36 = 36/100, then factor the top and bottom separately. In algebra, you can factor out a fraction as a common factor, like ½x + ½ = ½(x + 1), which some teachers ask for.
What is a perfect number?
A perfect number equals the sum of its factors other than itself. 6 is perfect because 1 + 2 + 3 = 6, and 28 is perfect because 1 + 2 + 4 + 7 + 14 = 28. Perfect numbers are rare. The next two are 496 and 8,128. A factor calculator that shows the sum of factors makes these easy to spot.
Try it with your own numbers
Use a free CalcSolver tool to check the examples in this guide.