GlobalFree to use

Factoring calculator: factor polynomials step by step

Factor a polynomial in one variable into its simplest factors: greatest common factor, factors from rational roots and quadratic factors, with the roots and each step. Exact whole-number arithmetic, in your browser.

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Input

Tip: press Ctrl + Enter to run

Your result

Your result will appear here.

About this tool

Factoring a polynomial means rewriting it as a product of simpler polynomials. This calculator takes a polynomial in one variable, typed as you would write it, removes the greatest common factor, finds rational roots with the rational root theorem, splits off the matching factors and leaves any quadratic that cannot be factored over the rationals. It lists the roots (including complex ones written with i) and shows each step, then multiplies the factors back to prove the result.

All arithmetic is exact with whole numbers and fractions, so results do not suffer from rounding.

How to use it

  1. Type the polynomial, e.g. 18x^2 − 51x + 15 (x², x^2 and x2 are all accepted).
  2. Run the calculator.
  3. Read the factored form and the roots.
  4. Follow the steps to see how it was found, which is useful for showing your work.

How the calculation works

Greatest common factor → rational root theorem (candidates ±p/q where p divides the constant term and q the leading coefficient) → synthetic division for each root → quadratic formula for the remaining quadratic. The product of the factors is expanded to verify the answer.

GCF → rational root theorem (±p/q) → quadratic factors → roots; checked by multiplying back

Worked example

Factoring x³ − 6x² + 11x − 6 gives (x − 1)(x − 2)(x − 3), with roots x = 1, 2 and 3 found by the rational root test. For x² + 4 there are no rational roots; it stays as x² + 4 and the roots are x = ±2i.

Sample input and result

18x^2 - 51x + 15 → 3(3x − 1)(2x − 5); roots x = 1/3 and x = 5/2. −5h⁴ + 30h³ − 40h² → −5h²(h − 2)(h − 4).

Limitations

  • One variable; whole-number or fractional coefficients.
  • Factors over the rational numbers.
  • High-degree polynomials without rational roots show approximate real roots only.

Last updated:

Frequently asked questions

How do I factor a polynomial?

First take out the greatest common factor, for example 18x² − 51x + 15 = 3(6x² − 17x + 5). Then look for roots: by the rational root theorem every rational root is ±p/q, where p divides the constant term and q divides the leading coefficient. Each root r = p/q gives a factor (qx − p). Here x = 1/3 and x = 5/2 give 3(3x − 1)(2x − 5).

Can I type powers without the ^ sign?

Yes. 18s2 − 51s + 15, 18s^2 − 51s + 15 and 18s² − 51s + 15 are all read the same way, which helps when you paste a problem whose small raised numbers were lost. Any single letter can be the variable.

What if the polynomial cannot be factored?

Then it is irreducible over the integers, like x² − 2 or x² + 1. The calculator says so and still gives the roots: x = ±√2 for x² − 2 and x = ±i for x² + 1.

Can it factor expressions with two variables?

No, one variable only.

Why does a quadratic stay unfactored?

Its roots are irrational or complex, so it has no factors with whole-number coefficients.

Can I use letters other than x?

Yes, any single letter such as h or t.

Troubleshooting

It cannot read my polynomial.

Use ^ or superscripts for powers, and write multiplication explicitly between numbers and brackets.

The factors differ from my textbook.

Factorizations are unique up to signs and constant factors; −(x − 1) equals (1 − x).

I only need the roots of a quadratic.

The equation solver gives them directly.

Privacy & Free to use

Are my inputs stored?

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Is this tool free?

Yes. No signup or payment is required.

Processed in your browser

Useful next steps