🧮 Maths & science

Polynomial calculator

Enter coefficients highest power first — 1 -3 2 means x² − 3x + 2.

Free · no signup Runs in your browser

1 -2 -5 6 means x³ − 2x² − 5x + 6

Result—

    How do you find the roots of a polynomial?

    A degree-n polynomial has exactly n roots counted with multiplicity, which is the fundamental theorem of algebra. Quadratics have a closed formula; cubics and quartics have unwieldy ones; degree five and above has no general formula at all, so roots are found numerically. This calculator uses the Durand-Kerner method, which converges on all roots at once.

    Why there is no formula past degree four

    Everyone learns the quadratic formula. Fewer people are told that the pattern stops.

    Cubic and quartic equations do have general solutions, discovered in the sixteenth century and awkward enough that almost nobody uses them. For degree five and above, the Abel-Ruffini theorem proves that no general formula in radicals can exist. That is not a gap waiting to be filled — it is a proof that the thing cannot be done.

    So beyond degree four, roots are found numerically. This calculator uses Durand-Kerner, which starts from a spread of complex guesses and refines all of them simultaneously until they settle.

    The operations

    Polynomials add term by term and multiply by distributing every pair.

    • addition combine coefficients of matching powers
    • multiplication each term of P times each term of Q, then collect
    • degree(P × Q) = degree(P) + degree(Q)
    • long division P(x) = Q(x)·quotient(x) + remainder(x)
    • degree(remainder) < degree(Q)
    • factor theorem (x − a) divides P(x) ⟺ P(a) = 0

    The factor theorem is the link between division and roots, and it is what makes root-finding useful rather than decorative. If dividing by (x − a) leaves no remainder, then a is a root and the quotient is a polynomial one degree lower — which you can then attack again.

    Complex roots of a polynomial with real coefficients always arrive in conjugate pairs. So a real cubic has either three real roots or one real root and a conjugate pair; it can never have exactly two real roots.

    Worked example: dividing x³ − 2x² − 5x + 6 by x − 1

    Testing whether x = 1 is a root, and factoring if it is.

    1. Evaluate P(1)1 − 2 − 5 + 6 = 0
    2. So (x − 1) is a factorby the factor theorem
    3. Dividex² − x − 6
    4. Factor the quotient(x − 3)(x + 2)

    x³ − 2x² − 5x + 6 = (x − 1)(x − 3)(x + 2), with roots 1, 3 and −2.

    A zero remainder confirms the factor. Had P(1) been anything other than zero, the division would have left a remainder and x = 1 would not have been a root.

    Reading the results

    • Roots are returned numerically, so an exact integer may display as 2.9999999
    • Complex roots appear as a ± bi pairs when the coefficients are real
    • A repeated root appears more than once in the list
    • The degree of the polynomial always equals the number of roots returned
    • Division reports both a quotient and a remainder; a zero remainder means an exact factor

    Assumptions and limits

    • Coefficients are entered highest power first, with zeros for missing terms
    • Only single-variable polynomials are supported
    • Root finding is numerical and can lose precision on high degrees or very close roots
    • Symbolic factoring into neat brackets is not attempted — the roots are given instead

    Common questions

    How do I enter a polynomial?

    As a list of coefficients from the highest power down, including zeros for missing terms. So x³ − 4x is 1 0 −4 0, and 2x² + 5 is 2 0 5. The calculator shows the polynomial back to you so you can check it read the input correctly.

    How many roots does a polynomial have?

    Exactly as many as its degree, counted with multiplicity, provided you allow complex roots. A cubic always has three; a quartic always has four. Some of them may be repeated or complex, but the count never changes.

    Why is there no formula for degree five?

    The Abel-Ruffini theorem proves that no general solution in radicals exists for degree five or above. It is not that nobody has found one — it is proven that none can exist. Numerical methods are the only general approach.

    What is polynomial long division for?

    Mostly for testing factors and simplifying rational expressions. If dividing by (x − a) leaves no remainder then a is a root and the quotient is a factor, which reduces the problem by one degree.

    Why do complex roots come in pairs?

    Because the coefficients are real. Taking the conjugate of the whole equation shows that if a + bi is a root then a − bi must be too. That is why a real cubic can never have exactly two real roots.

    Where these numbers come from

    Last verified 2026-08-01 The method on this page is checked against the sources above at least once a year. Spotted something out of date? Tell us and we will fix it.

    🧮 Maths and science calculators

    Homework tools that explain the method rather than just handing over an answer.

    See all 30 calculators in this section