Polynomial Root Finder
All real and complex roots of a polynomial up to degree 10, with multiplicities, exact forms and steps.
This factoring calculator factors any polynomial in x step by step, starting with the GCF, and names the method at each step.
Factored form
3x³ + 9x² − 12x − 36 factors into 3 irreducible factors times the constant 3 using greatest common factor, grouping and difference of squares. Setting the linear factors to zero gives x = −3, x = −2, x = 2.
| Factor | Multiplicity | Degree | Root(s) |
|---|---|---|---|
| x + 3 | 1 | 1 | −3 |
| x + 2 | 1 | 1 | −2 |
| x − 2 | 1 | 1 | 2 |
Write the polynomial in standard form
Expand any products and powers, then collect like terms with the highest power first.
Greatest common factor: factor out 3
Every coefficient is a multiple of 3. What is left has whole-number coefficients with no common factor and a positive leading coefficient.
Grouping: x³ + 3x² − 4x − 12
Group the first two terms and the last two. Factoring x² out of the first pair and −4 out of the second leaves the same binomial, x + 3, in both.
Difference of squares: x² − 4
x² − 4 is x² − 2², a difference of two squares, and A² − B² = (A − B)(A + B) with A = x and B = 2.
Check by expanding
Multiplying the factors back together gives the original polynomial exactly, so the factorization is correct.
A final check expands the answer: . Whole numbers get every factor and factor pair.
6x^2 + 11x - 10. Use ^ for powers. Write products as 3x or 2(x+1).x^2/4 - 1 and (x+1)^2 - 9 are expanded first.(x^2 - 9)/(x^2 + 5x + 6). Common factors cancel.36 to list all its factors and factor pairs.Difference of squares, sum and difference of cubes
Plain-text formula: a^2 − b^2 = (a − b)(a + b), a^3 ± b^3 = (a ± b)(a^2 ∓ ab + b^2)
A binomial whose two terms are perfect squares with a minus sign between them, or perfect cubes with either sign, factors by these identities. A sum of two squares such as x² + 4 does not factor over the real numbers.
Perfect square trinomial
Plain-text formula: a^2 ± 2ab + b^2 = (a ± b)^2
When the first and last terms are squares and the middle term is twice the product of their roots, the trinomial is a square, for example x² + 6x + 9 = (x + 3)².
AC method (splitting the middle term)
Plain-text formula: ax^2 + bx + c = ax^2 + mx + nx + c, mn = ac, m + n = b
Find two integers whose product is ac and whose sum is b. Split bx into mx + nx, then factor the two pairs. The X method finds the same two numbers. They exist exactly when the discriminant b² − 4ac is a perfect square.
Rational root test
Plain-text formula: P(p/q) = 0, p∣a_0, q∣a_n ⇒ (qx − p) is a factor of P(x)
For integer coefficients, every rational root p/q in lowest terms has p dividing the constant term and q dividing the leading coefficient. Each root found gives a linear factor, and division leaves a polynomial of lower degree to factor next.
The factored form is written over the integers. Each factor has whole-number coefficients and a positive first term. Any common factor, minus sign or fraction goes in front. A factor that cannot be split further is irreducible, also called prime.
Set each linear factor equal to zero to get a root: 2x + 5 = 0 gives x = −5/2. Prime factors have irrational or complex roots. The table lists them, and the results show the polynomial as linear factors over the real or complex numbers.
Factors can come in a different order, or with signs moved, and still be the same product: (x − 2)(x − 3) equals (2 − x)(3 − x). To compare two answers, expand them, as the last step does.
Always take out the greatest common factor first. That is the largest number dividing every coefficient, times the lowest power of x in every term. Then count the terms.
Two terms: try a difference of squares or a sum or difference of cubes. Three terms: try a perfect square trinomial or the AC method, also taught as the X method. Four terms: try grouping.
If no pattern fits, use the rational root test. Each root it finds divides out a linear factor. Repeat on every factor until none splits further. The calculator works in this same order, so its steps match the way the methods are taught.
A quadratic with integer coefficients factors exactly when is a perfect square. A cubic factors exactly when it has a rational root, because one of its factors must be linear.
From degree 4 on, a polynomial with no rational roots can still split into larger pieces: . Neither piece has a real root. The calculator finds such splits by grouping the complex roots, then confirms each one by exact division.
Over the complex numbers, every polynomial splits into linear factors. This is the fundamental theorem of algebra, and the results show that form whenever a prime factor remains.
Factor P(x) = 3x³ + 9x² − 12x − 36 completely.
Answer: P(x) = 3(x + 3)(x + 2)(x − 2). Setting each factor to zero gives the roots x = −3, x = −2 and x = 2.
Use and . For example, . When a and b are linear, as here, the quadratic factor has no real roots and is prime.
Take the greatest common divisor of the coefficients and the lowest power of x that appears in every term. For that is , so . For the GCF of plain numbers, use the GCD and LCM calculator.
It cannot be written as a product of polynomials of lower degree with integer coefficients. For example is prime because its discriminant, , is not a perfect square. A prime polynomial still has roots; they are irrational or complex.
Yes. When a prime factor remains, the results also write the whole polynomial as linear factors over the complex numbers, such as . Roots with no exact form are shown as decimals. For more detail on each root, use the polynomial root finder.
Forgetting the greatest common factor first, stopping too early (in the first factor still splits), trying to factor a sum of squares such as , and sign errors when grouping: , not .
Yes. Type the top over the bottom, such as (x^2 - 9)/(x^2 + 5x + 6). Both are factored, and the common factor cancels to leave . The values that made the original denominator zero, x = −3 and x = −2, stay excluded. The calculator works with one variable, x.
If a product is zero, one of its factors is zero. So once , the equation has the solutions x = 2 and x = 3. For quadratics that do not factor, the quadratic equation calculator gives exact roots.
All real and complex roots of a polynomial up to degree 10, with multiplicities, exact forms and steps.
Solve ax² + bx + c = 0 with the quadratic formula: exact roots, discriminant, vertex, graph and steps.
LCM and GCF of up to 10 numbers with steps: multiples, prime factors, Euclid’s algorithm and a coprime check.
Prime factors with division steps, a factor tree, the divisor count and every divisor.
Free worked solutions for equations, systems, inequalities, factoring, derivatives, integrals, limits and matrices.
Exact and complex roots of ax³ + bx² + cx + d = 0 with the discriminant, steps and a root check.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?