Skip to content
Explore tools

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

Algebra

Factor Calculator

Every factor, the prime factorization, or the factor pairs.

Result

—

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:

TestDivides evenly?Factor pair
36 ÷ 1Yes1 × 36
36 ÷ 2Yes2 × 18
36 ÷ 3Yes3 × 12
36 ÷ 4Yes4 × 9
36 ÷ 5NoNone
36 ÷ 6Yes6 × 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 byRuleExample
2Last digit is even348
3Digit sum is divisible by 3471 (4 + 7 + 1 = 12)
5Last digit is 0 or 5935
9Digit sum is divisible by 97,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:

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 byResult
2360 ÷ 2 = 180
2180 ÷ 2 = 90
290 ÷ 2 = 45
345 ÷ 3 = 15
315 ÷ 3 = 5
55 ÷ 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.

NumberPrime factorizationCountNumber of factors
362² × 3²(2 + 1)(2 + 1)9
842² × 3¹ × 7¹(2 + 1)(1 + 1)(1 + 1)12
3602³ × 3² × 5¹(3 + 1)(2 + 1)(1 + 1)24
2,5202³ × 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.

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:

  1. Take out the greatest common factor.
  2. Count the terms: two terms suggest a special pattern, three suggest a trinomial, four suggest grouping.
  3. 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.

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:

  1. a × c = 6 × (−3) = −18.
  2. 9 and −2 multiply to −18 and add to 7.
  3. Split the middle: 6x² + 9x − 2x − 3.
  4. Group: 3x(2x + 3) − 1(2x + 3).
  5. Factor out the shared part: (2x + 3)(3x − 1).

Special Factoring Patterns

Some expressions match a pattern you can factor in one step.

PatternFormulaExample
Difference of squaresa² − b² = (a + b)(a − b)9x² − 25 = (3x + 5)(3x − 5)
Perfect square trinomiala² + 2ab + b² = (a + b)²x² + 10x + 25 = (x + 5)²
Difference of cubesa³ − b³ = (a − b)(a² + ab + b²)x³ − 8 = (x − 2)(x² + 2x + 4)
Sum of cubesa³ + 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.

MistakeExampleFix
Stopping before all factors are prime360 = 2³ × 4545 = 3² × 5, so 360 = 2³ × 3² × 5
Forgetting the GCF2x² − 8 = (2x − 4)(x + 2)Take out 2 first: 2(x − 2)(x + 2)
Wrong signs in a trinomialx² − 5x − 14 = (x + 7)(x − 2)Product −14, sum −5: (x − 7)(x + 2)
Not factoring completelyx⁴ − 16 = (x² − 4)(x² + 4)x² − 4 factors again: (x − 2)(x + 2)(x² + 4)

Summary

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.

Open the quadratic solver