Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Polynomial roots calculator

Find every zero of a polynomial up to degree 6, including complex roots. Exact answers where they exist, decimals where they don't, and each root checked by putting it back in.

Type it as you'd write it, like 2x^4 − 3x^2 + 1, or as an equation like x^3 = 2x + 1. Fractions and decimals are fine.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Building a polynomial from its factors? Multiply them out with the polynomial multiplication calculator. For equations that aren't polynomials, use the equation solver.

What it does

Type a polynomial, or an equation with polynomials on both sides, and this finds all of its roots (also called zeros): the values of x that make it equal 0. A polynomial of degree n has exactly n roots once you count complex ones and repeats, and all of them are listed, up to degree 6. For one-off equations that aren't polynomials, like 3x = 81, use the equation solver instead.

How the roots are found

  1. Exact first. Repeated factors are split off exactly, so a double root shows "repeats 2". Every rational root is found and confirmed in exact fractions. A leftover quadratic is solved with the quadratic formula, giving answers like (2 ± √6)/2.
  2. Closed forms where they're clean. For a leftover cubic the page shows the discriminant and Cardano's formula (one real root) or the sine form from the NIST DLMF (three real roots). Equations like x³ = 2 and quartics with only even powers get their own short forms.
  3. Numeric roots for the rest. Anything still unsolved is found with the Aberth method, which improves guesses for all the roots at once and converges cubically. Results are shown to 10 significant figures.
  4. Every root is checked by substituting it back in. Rational roots give exactly 0; decimal roots leave a tiny residual, like 10−15, from rounding.
Rational root theorem: if p/q is a rational root of anxn + … + a0 (integer coefficients, in lowest terms), then p divides a0 and q divides an.

Worked example: 2x³ − 3x² − 11x + 6

The constant term is 6 and the leading coefficient is 2. So p is one of 1, 2, 3, 6 and q is 1 or 2, giving 12 candidates: ±1, ±2, ±3, ±6, ±1/2, ±3/2. Testing them, f(3) = 54 − 27 − 33 + 6 = 0, f(−2) = −16 − 12 + 22 + 6 = 0 and f(1/2) = 1/4 − 3/4 − 11/2 + 6 = 0. The roots are x = −2, 1/2 and 3, and the factored form is (x + 2)(2x − 1)(x − 3).

Useful facts the page uses

FactWhat it tells you
Fundamental theorem of algebraDegree n means n roots, counting complex roots and repeats
Complex conjugate theoremWith real coefficients, complex roots come in pairs a ± bi
Descartes' rule of signsThe number of positive roots is at most the number of sign changes, and differs from it by an even number
Cubic discriminant ΔΔ > 0: three different real roots; Δ < 0: one real and two complex

Limits

  • Degree 1 to 6 in a single variable x, with coefficients up to 30 digits.
  • From degree 5 up there's generally no formula in square and cube roots, so those roots are decimals unless they're rational or come from a factor of degree 2.
  • Roots very close together can lose a few digits of accuracy; the residual column shows how well each one checks out.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • x³ − 6x² + 11x − 6 has roots 1, 2 and 3 ✓
  • 2x³ − 3x² − 11x + 6 has roots −2, 1/2 and 3 ✓
  • 2x³ − 3x² − 11x + 6: 12 rational root candidates ✓
  • 2x² − 4x − 1 = 0 gives x = (2 ± √6)/2 ✓
  • x⁴ + 1 has roots ±0.7071067812 ± 0.7071067812i ✓
  • x³ − 3x + 1: discriminant 81, three real roots, one is 1.532088886 ✓
  • x³ − 3x + 1: discriminant Δ = 81 ✓
  • x³ = 2 gives the real root ∛2 = 1.25992105 ✓
  • Edge: x³ − 3x + 2 = (x + 2)(x − 1)², a double root ✓
  • Edge: x² + 1 = 0 gives x = ±i ✓
  • Edge: degree 7 is out of range ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How do you find the zeros of a polynomial?

Factor out what you can, then use the rational root theorem to list possible fractions p/q and test them. Each root you find lets you divide the polynomial down by one degree. A quadratic that's left over is solved with the quadratic formula; anything harder needs a numerical method.

What is the rational root theorem?

For a polynomial with integer coefficients, any rational root p/q in lowest terms has p dividing the constant term and q dividing the leading coefficient. It gives a short list of candidates to test, but a polynomial may have no rational roots at all.

How many roots does a polynomial have?

Exactly as many as its degree, counting complex roots and counting a repeated root as many times as it repeats. A cubic always has 3, and at least one of them is real.

Is there a formula for quartic equations?

Yes, quartics can be solved by radicals, but the formula is long. There's no general formula in radicals for degree 5 and up, so those roots are usually found numerically.

What is the difference between a root and a zero?

Nothing important. A zero of a polynomial f is an x where f(x) = 0; a root or solution is the same x seen as the answer to the equation f(x) = 0. Real zeros are where the graph crosses or touches the x-axis.

Related calculators