Saved

Press the star next to a tool's name to save it.

All my tools

Factoring Calculator

Enter a whole number or a quadratic, and this factoring calculator finds the prime factorization, every factor of the number or the factored form of ax² + bx + c.

Restored your last values ·

Quadratics use whole-number coefficients, in the form ax² + bx + c.

Your numbers stay in your browser. Nothing is uploaded.

Factored form

–

Enter a value and press Factor.

See full result

A factoring calculator breaks something down into the pieces that multiply together to make it. Enter a whole number, and this factoring calculator gives you its prime factorization and a complete list of its factors. Switch to a quadratic, enter the coefficients a, b and c, and it writes the expression as a product of two binomials wherever that's possible. It's a quick way to check homework, to simplify fractions, and to find the common factors that you need in algebra. The result also shows the discriminant and the roots, so you can see why an expression factors the way that it does.

How to use the factoring calculator

  1. Choose A number or A quadratic.
  2. Enter your value, or the coefficients a, b and c.
  3. Press Factor.

What is factoring?

In mathematics, factorization, or factoring, consists of writing a number or another mathematical object as a product of several factors, usually smaller or simpler objects of the same kind. For example, 3 × 5 is an integer factorization of 15, and (x − 2)(x + 2) is a polynomial factorization of x² − 4.

Prime factorization

The fundamental theorem of arithmetic states that every integer greater than 1 is either prime or can be represented uniquely as a product of prime numbers, up to the order of the factors. The tool divides your number by 2, then by each odd number in turn, recording every factor that it finds. Dividing as it goes, it only has to test up to the square root of what remains.

A worked example with a number

Take 360. Dividing by 2 three times leaves 45. Dividing by 3 twice leaves 5, which is prime. So 360 = 2³ × 3² × 5. The number of factors is found by adding 1 to each power and multiplying: (3 + 1) × (2 + 1) × (1 + 1), which is 24. The calculator lists all 24 of them, from 1 up to 360.

A worked example with a quadratic

Take x² + 5x + 6, so that a is 1, b is 5 and c is 6. You need two numbers that multiply to 6 and add to 5, and those are 2 and 3. So the answer is (x + 3)(x + 2), and the order of the brackets doesn't matter. For a harder case, take 6x² − x − 2. The discriminant is 1 + 48, or 49, whose square root is 7. The roots are 2/3 and −1/2, which gives (3x − 2)(2x + 1).

How quadratics are factored here

The tool calculates the discriminant, which is b² − 4ac. If it's a perfect square, the roots are rational and the expression can be factored over the integers. It then turns each root into a binomial, and it brings out any common number. For example, 2x² + 4x + 2 becomes 2(x + 1)², and x² + 3x becomes x(x + 3). If the discriminant isn't a perfect square, such as with x² + x − 1, the tool tells you that the expression can't be factored over the integers.

ExpressionFactored formPattern
x² − 4(x + 2)(x − 2)Difference of squares
2x² + 4x + 22(x + 1)²Perfect square with a common factor
x² + 3xx(x + 3)Common factor of x
2x² + 7x + 3(2x + 1)(x + 3)Leading coefficient above 1

Factors and prime factors

These two terms are related, but they aren't the same. A factor is any whole number that divides your number exactly, so the factors of 12 are 1, 2, 3, 4, 6 and 12. Prime factors are only the prime numbers in that list, so for 12, those are 2 and 3. If a number has exactly two factors, 1 and itself, then it's prime, and the calculator will tell you so.

Why factoring is useful

  • Simplifying fractions: cancel the factors that the top and the bottom share.
  • Finding a common denominator: prime factors make it easier to find the least common multiple.
  • Solving equations: if a product is 0, then one of its factors must be 0.
  • Sketching graphs: the factors of a quadratic show where it crosses the x-axis.

Checking your answer

You can always verify a factorization by multiplying it out. For a number, multiply the primes together, and you should get back to where you started. For a quadratic, expand the brackets. Using (2x + 1)(x + 3) as an example, you get 2x² + 6x + x + 3, which simplifies to 2x² + 7x + 3. This is a good habit in exams, since it only takes a few seconds and it catches sign errors.

Common factoring patterns

Some expressions are worth learning to spot on sight. A difference of two squares, such as x² − 9, always splits into (x + 3)(x − 3). A perfect square, like x² + 6x + 9, becomes (x + 3)². When c is 0, x itself is a common factor. Recognizing these shortcuts saves time in tests. You can then use the calculator to confirm that you've applied each pattern correctly. If you're working with very large numbers, note that a big prime takes the longest, since every possible divisor has to be tested up to its square root.

Common mistakes

  • Forgetting a common factor. Look for one before anything else.
  • Mixing up signs. Multiply out your answer to check.
  • Counting 1 as prime. It isn't.

Test a single value with the prime number checker, find common multiples with the LCM calculator, and solve equations with the quadratic equation solver.

What next

Use this often? Add Factoring to your Home screen.

Frequently asked questions

How does the factoring calculator work?

For a number, it divides by primes in turn. For a quadratic, it uses the discriminant to find rational roots.

What is prime factorization?

It's writing a number as a product of prime numbers, such as 360 = 2³ × 3² × 5.

How do I factor a quadratic?

Find two binomials that multiply to give it. The tool does this when the discriminant is a perfect square.

Why can't my quadratic be factored?

Its roots aren't rational, so it has no factors with whole-number coefficients.

How large a number can I factor?

Any whole number from 2 up to 100 trillion.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools