Division, roots, arithmetic, HornerReviewed 28 Sep 2026Runs in your browser

Polynomial Calculator

Divide polynomials (with a synthetic-division table for linear divisors), find real and complex roots and the factored form, add, subtract and multiply, or evaluate P(x) with Horner’s method — with a graph and every step shown.

Who wrote it

Written by Suhaib Hassan. The algorithms are standard, and every worked example is re-derived by hand. Our methodology.

How the engine works

It parses your expression into coefficients, divides with the classical long-division algorithm, tests rational roots, then refines the rest numerically (Durand–Kerner) to find every complex root.

Why we built it

It shows the working — the synthetic-division tableau, the remainder theorem check and the factored form — not just the answer.

Polynomial division P(x) ÷ Q(x)

Presets
—
—

Write terms like 3x^2 - 5x + 2. Use ^ for powers (x², x³ also work), a single variable x, and decimal coefficients if needed. Maximum degree 12.

Parsed as—
Quotient Q(x)—
—

—

Remainder R(x)—
Check—

Graph of P(x)

Real roots are marked in green; the y-intercept in dark.

—

Step-by-step working

—

—

    Which method to use

    Four standard tools for working with polynomials.

    MethodDivisor formCostBest for
    Long divisionAny polynomial of lower degreeO(deg P · deg Q)General division with remainder
    Synthetic division (Ruffini)x − c (monic linear)O(n)Fast division and the remainder theorem
    Horner’s schemeEvaluation at a pointn multiplications, n additionsEfficient, numerically stable evaluation
    Rational root theoremp/q, p | a₀, q | aₙFinite candidate listFinding exact rational roots
    Descartes’ rule of signsSign changes in P(x), P(−x)Counting onlyBounding the number of positive and negative roots

    Worked examples

    Synthetic division

    Divide x³ − 6x² + 11x − 6 by x − 2.

    coefficients 1, −6, 11, −6 with c = 2
    1 → −6+2 = −4 → 11−8 = 3 → −6+6 = 0
    quotient x² − 4x + 3, remainder 0

    Remainder theorem

    What is the remainder when P(x) = x³ − 2x² + x − 5 is divided by x − 3?

    P(3) = 27 − 18 + 3 − 5 = 7

    Factoring

    Factor x³ − 6x² + 11x − 6 completely.

    x = 2 is a root → (x − 2)(x² − 4x + 3)
    x² − 4x + 3 = (x − 1)(x − 3)
    (x − 1)(x − 2)(x − 3)

    What is a polynomial?

    A polynomial is a sum of terms aₖxᵏ with non-negative integer powers, such as 3x⁴ − 2x + 7. Its degree is the highest power and the leading coefficient is the coefficient of that term. The Fundamental Theorem of Algebra says a degree-n polynomial has exactly n roots, counting multiplicity, in the complex numbers.

    Key theorems

    • Division algorithm: P(x) = Q(x)·D(x) + R(x) with deg R < deg D.
    • Remainder theorem: dividing by x − c leaves remainder P(c).
    • Factor theorem: (x − c) divides P(x) exactly when P(c) = 0.
    • Rational root theorem: for integer coefficients, any rational root p/q has p dividing the constant term and q dividing the leading coefficient.

    By Suhaib Hassan · Reviewed 28 September 2026 · How CalculatePilot verifies formulas →

    Sources

    • Horner, W. G. (1819). A new method of solving numerical equations of all orders, by continuous approximation. Philosophical Transactions of the Royal Society 109, 308–335.
    • Gauss, C. F. (1799). Doctoral dissertation, Helmstedt — the first proof of the Fundamental Theorem of Algebra.
    • NIST Digital Library of Mathematical Functions, section 1.11 (Zeros of polynomials).
    • ISO 80000-2:2019, Quantities and units — Part 2: Mathematics.

    Frequently asked questions

    When can I use synthetic division instead of long division?

    When the divisor is linear, x − c (a monic linear factor). It needs only the coefficients and c, and is faster and less error-prone. For a divisor such as 2x − 6, divide the coefficients by 2 first (2x − 6 = 2(x − 3)) or use long division. For divisors of degree 2 or more, use long division.

    How does Horner’s scheme reduce the number of operations?

    It rewrites aₙxⁿ + … + a₀ as (…((aₙx + aₙ₋₁)x + aₙ₋₂)x + …)x + a₀, needing only n multiplications and n additions instead of computing each power separately. It is also more accurate in floating-point arithmetic.

    What does the Fundamental Theorem of Algebra guarantee?

    Every non-constant polynomial with complex coefficients has at least one complex root, and therefore exactly n roots counting multiplicity. Real polynomials may have complex roots, but they come in conjugate pairs a ± bi.

    Why are complex roots always in pairs?

    If a polynomial has real coefficients and a + bi is a root, its conjugate a − bi is also a root, because conjugation preserves real coefficients. So non-real roots of real polynomials appear in conjugate pairs.

    Is there a formula for the roots of every polynomial?

    Only up to degree 4 (the quadratic, cubic and quartic formulas). The Abel–Ruffini theorem shows there is no general algebraic formula for degree 5 or higher, so numerical methods — as used here — are needed.

    How accurate are the numerical roots?

    Roots are refined to about 12 significant digits. Repeated roots and very high degrees are less well conditioned, so their computed values can be slightly less accurate. Exact rational roots are found first, before any numerical work.

    Related calculators

    Continue with algebra.

    All Math Calculators

    Embed This Polynomial Calculator

    Free and responsive, and it runs in the visitor's browser. Branding removal from $7.99/month.

    <iframe src="https://www.calculatepilot.com/embed/polynomial-calculator.html" width="100%" height="560" loading="lazy" title="Polynomial Calculator"></iframe>
    For website owners

    Want this calculator on your own website?

    Embed it in one line of code. Keep it free with a small CalculatePilot attribution link, or go white-label: your brand, no attribution, one license for all your domains.

    • All 159 calculators, unlimited embeds
    • Works on WordPress, Webflow, Squarespace, Wix and plain HTML
    • Runs in your visitor's browser, so nothing is sent to a server
    • License key emailed automatically after checkout, cancel anytime
    $7.99 / month
    or $89.99 / year · white-label Pro
    Get the white-label license Embed free with attribution