Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

Factoring Calculator

Enter a polynomial and get its complete factorization over the rational numbers, with the method used at every stage explained.

One or two variables. Write powers with ^; products like 3xy can be typed without *.

Examples

About the Factoring Calculator

Factoring rewrites a polynomial as a product of simpler polynomials. It is the reverse of multiplying out brackets, and it is one of the most used skills in algebra: it solves quadratic and cubic equations, simplifies rational expressions, finds the zeros of a graph and prepares integrals for partial fractions.

This calculator factors polynomials in one variable, such as 6x2+11x−106x^2 + 11x - 10 or x4−16x^4 - 16, and common two-variable forms such as x2−9y2x^2 - 9y^2 or x2−5xy+6y2x^2 - 5xy + 6y^2. It always pulls out the greatest common factor first, then looks for special patterns, then uses the AC method or the rational root theorem for higher degrees. Whatever cannot be split further over the rationals is reported as irreducible rather than left unexplained.

What does it mean to factor a polynomial?

To factor a polynomial is to write it as a product whose factors each have lower degree. For example x2−5x+6=(x−2)(x−3)x^2 - 5x + 6 = (x - 2)(x - 3). Multiplying the factors back together returns the original polynomial, which is the easiest way to check any factorization.

A factorization is complete when no factor can be split again using rational coefficients. The quadratic x2−2x^2 - 2 is irreducible over the rationals even though it equals (x−2)(x+2)(x - \sqrt2)(x + \sqrt2), because 2\sqrt2 is irrational. School courses and this calculator work over the rationals unless a problem explicitly asks for real or complex factors.

How to use the Factoring Calculator

  1. Type the polynomial using ^ for powers, for example 6x^2 + 11x - 10 or x^3 - 8.
  2. You may enter it in any order or with brackets, such as (x + 1)(x + 2) + 3x; the calculator expands and sorts it first.
  3. Press Factor. The first step writes the polynomial in standard form with descending powers.
  4. Follow the method steps: common factor, special pattern or AC method, and any rational-root tests with synthetic division for cubic or quartic polynomials.
  5. Read the complete factorization at the end and, if you want to verify it, multiply it out with the simplify calculator.

Formulas

Difference of squares

a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b)

Perfect-square trinomials

a2±2ab+b2=(a±b)2a^2 \pm 2ab + b^2 = (a \pm b)^2

Sum and difference of cubes

a3±b3=(a±b)(a2∓ab+b2)a^3 \pm b^3 = (a \pm b)(a^2 \mp ab + b^2)

AC method

ax2+bx+c: find m,n with mn=ac, m+n=bax^2 + bx + c:\ \text{find } m, n \text{ with } mn = ac,\ m + n = b

Split bxbx into mx+nxmx + nx and factor by grouping.

Rational root theorem

p(r/s)=0⇒r∣a0, s∣anp(r/s) = 0 \Rightarrow r \mid a_0,\ s \mid a_n

Candidate roots are factors of the constant term over factors of the leading coefficient.

Worked example: Trinomial 6x² + 11x − 10

The worked example uses the trinomial 6x2+11x−106x^2 + 11x - 10, a classic case where the leading coefficient is not 1, so simple guess-and-check is slow. The engine multiplies a⋅c=6⋅(−10)=−60a \cdot c = 6 \cdot (-10) = -60 and searches for two integers with product −60-60 and sum 1111.

Those integers are 1515 and −4-4. Splitting the middle term as 15x−4x15x - 4x lets the four terms be grouped in pairs, each pair sharing a binomial factor. Multiply the answer back to confirm it.

The solution below is generated by the same engine that powers the calculator above.

Final answer

(3x−2)(2x+5)(3x - 2)(2x + 5)

How we read your problem

Factor a polynomial over the rational numbers

6x2+11x−106x^{2} + 11x - 10

Step-by-step solution

  1. Write the polynomial in standard form

    6x2+11x−106x^{2} + 11x - 10
  2. Use the AC method

    Multiply a·c = 6·-10 = -60. Find two numbers whose product is -60 and whose sum is b = 11: 15 and -4.

    6x2+11x−10=6x2+15x−4x−106x^{2} + 11x - 10 = 6x^2 + 15x - 4x - 10
  3. Factor by grouping

    Group the first two and last two terms, factor each group, then factor out the common binomial. The roots are -5/2 and 2/3.

  4. Write the complete factorization

    (3x−2)(2x+5)(3x - 2)(2x + 5)

Formulas used

  • Difference of squares

    a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b)
  • Perfect square trinomial

    a2±2ab+b2=(a±b)2a^2 \pm 2ab + b^2 = (a \pm b)^2
  • Sum and difference of cubes

    a3±b3=(a±b)(a2∓ab+b2)a^3 \pm b^3 = (a \pm b)(a^2 \mp ab + b^2)
  • Rational Root Theorem

    anxn+⋯+a0=0, pq root⇒p∣a0, q∣ana_n x^n + \dots + a_0 = 0,\ \tfrac{p}{q} \text{ root} \Rightarrow p \mid a_0,\ q \mid a_n

6x^2 + 11x - 10 factors completely over the rationals as (3x - 2)(2x + 5).

Verification

  • Expanding (3x - 2)(2x + 5) gives back 6x^2 + 11x - 10.

Detailed explanation

The order of methods matters

A reliable factoring routine always starts with the greatest common factor. Taking 22 out of 2x2−182x^2 - 18 leaves x2−9x^2 - 9, which is then recognisable as a difference of squares. Skipping that step hides the pattern and leaves an incomplete answer such as (2x−6)(x+3)(2x - 6)(x + 3), which still contains a common factor of 2.

After the common factor, a good routine looks at the shape. Two terms suggest a difference of squares or a sum or difference of cubes; three terms suggest a perfect square or the AC method; four terms often factor by grouping. For degree three and higher the calculator tests rational root candidates and divides out each root it finds with synthetic division, which lowers the degree by one each time and gives the same result grouping would, for example x3+2x2+3x+6=(x+2)(x2+3)x^3 + 2x^2 + 3x + 6 = (x + 2)(x^2 + 3).

Why the AC method works

If ax2+bx+c=(px+q)(rx+s)ax^2 + bx + c = (px + q)(rx + s), then expanding gives pr=apr = a, qs=cqs = c and ps+qr=bps + qr = b. The two numbers psps and qrqr have product pqrs=acpq rs = ac and sum bb. So finding two numbers with product acac and sum bb is exactly finding the cross terms, and grouping recovers the binomials.

When no integer pair exists, the quadratic has no rational roots and is irreducible over the rationals. You can confirm this with the discriminant b2−4acb^2 - 4ac: rational factors exist precisely when it is a perfect square.

Higher-degree polynomials

For a cubic such as x3−6x2+11x−6x^3 - 6x^2 + 11x - 6, the rational root theorem limits candidates to ±1,±2,±3,±6\pm1, \pm2, \pm3, \pm6. Testing shows x=1x = 1 is a root, synthetic division leaves x2−5x+6x^2 - 5x + 6, and that quadratic factors as (x−2)(x−3)(x - 2)(x - 3).

Quartics without rational roots can still split into two quadratics, as in x4+4=(x2−2x+2)(x2+2x+2)x^4 + 4 = (x^2 - 2x + 2)(x^2 + 2x + 2). The calculator searches integer quadratic pairs for this case before declaring a quartic irreducible.

Common mistakes

  • Forgetting to take out the greatest common factor first, which leaves a factorization that is not complete.
  • Treating a2+b2a^2 + b^2 as factorable over the reals. A sum of squares does not factor without complex numbers.
  • Sign errors in cubes: a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2), with a plus sign on the middle term of the quadratic.
  • Stopping after one step, for instance leaving x4−16x^4 - 16 as (x2−4)(x2+4)(x^2 - 4)(x^2 + 4) when x2−4x^2 - 4 factors again.
  • Dropping a factor of −1-1 when taking out a negative leading coefficient.

Tips

  • Always check by multiplying the factors back together.
  • Write the polynomial in descending powers before choosing a method.
  • For the AC method, list factor pairs of acac systematically from smallest to largest.
  • Use the discriminant to decide quickly whether a quadratic factors over the rationals.
  • If you need the roots rather than the factors, set each factor equal to zero.

Frequently asked questions

What is the first step in factoring any polynomial?

Take out the greatest common factor of all the terms, including any common power of the variable. Every other method works better on what remains.

How do I factor a trinomial when the leading coefficient is not 1?

Use the AC method: multiply a by c, find two numbers with that product whose sum is b, split the middle term into those two parts and factor by grouping.

What does irreducible mean?

A polynomial is irreducible over the rationals when it cannot be written as a product of lower-degree polynomials with rational coefficients. For example x squared plus 1 and x squared minus 2 are irreducible over the rationals.

Can the calculator factor cubic and quartic polynomials?

Yes. It tests rational roots with the rational root theorem, divides them out with synthetic division, and for quartics also searches for a split into two quadratics with integer coefficients.

Does it factor expressions with two variables?

It handles common two-variable forms: a shared monomial factor, homogeneous polynomials such as x squared minus 5xy plus 6y squared, differences of squares and grouping by one variable. Expressions with three or more variables are not supported.

How is factoring related to solving equations?

If a product equals zero, one of its factors must be zero. Factoring a polynomial set equal to zero therefore turns one hard equation into several easy ones.

Why is my answer written differently from the textbook?

Factors can appear in any order, and a factor of minus one can be moved between brackets. Multiply both versions out; if they give the same polynomial, both are correct.

Factor your polynomial now

Enter any polynomial above to see its complete factorization and the reasoning behind each step.

More math calculators