Polynomial Roots Calculator (Up to Degree 4)

Find every real and complex root of a linear, quadratic, cubic, or quartic equation—with the discriminant and method shown.

Degree 1–4 Real Roots Complex Roots Multiplicity Discriminant · Full Steps
Share this tool

Polynomial degree

Coefficients

x⁴
x³
x²
x
constant

Equation preview

The leading coefficient should be nonzero. Zero middle coefficients are valid.

Quick Load:

Finding every root...

Choose a degree, enter the coefficients, and calculate every real and complex root.

What Is a Polynomial Roots Calculator?

A polynomial roots calculator finds the values of x that make a polynomial equal zero. This calculator handles linear, quadratic, cubic, and quartic equations, so it can solve every polynomial from degree one through degree four. It returns all solutions over the complex numbers, including real roots, non-real conjugate pairs, and repeated roots.

Enter coefficients in descending power order. A missing term is represented by zero: x⁴ − 5x² + 4 has coefficients 1, 0, −5, 0, and 4. The result identifies the effective degree, applies an appropriate solution method, checks each answer by substitution, and plots the roots on the complex plane.

The Fundamental Theorem of Algebra says a degree-n polynomial has exactly n complex roots when multiplicity is counted. That means a quartic always has four roots in this sense, even if some roots are equal or cannot be drawn on the ordinary real number line.

Worked visual

From a Quartic Polynomial to Four Roots

This example follows x⁴ − 5x² + 4 from its coefficient form to two quadratic factors and then to four real roots. It also shows why a degree-four equation can produce four solutions.

Visual factorization of x to the fourth minus five x squared plus fourThe quartic is rewritten as a quadratic in x squared, factored into x squared minus one and x squared minus four, and solved to give negative two, negative one, one, and two. ORIGINAL QUARTIC x⁴ − 5x² + 4 = 0 let y = x² QUADRATIC IN y y² − 5y + 4 = 0 factor FACTORED FORM (x² − 1)(x² − 4) = 0 x² = 1 → x = ±1 x² = 4 → x = ±2 Roots: −2, −1, 1, 2

Degree

Degree 4 predicts four roots when multiplicity is counted.

Structure

Only even powers appear, so substitution turns the quartic into a quadratic.

Verification

Substituting any listed root makes the original polynomial equal zero.

How Polynomial Solution Methods Connect

Each higher-degree method reduces the equation to simpler pieces. This diagram shows the actual decision path used by the calculator.

How to Find Polynomial Roots

First write the equation in standard form with zero on the right. Combine like terms and arrange powers from highest to lowest. Check for a common factor, then look for recognizable patterns such as a difference of squares, a perfect-square trinomial, or a biquadratic expression containing only x⁴, x², and a constant.

For integer coefficients, the rational root theorem gives a finite list of possible rational roots. A candidate p/q uses a factor p of the constant term and a factor q of the leading coefficient. If substitution produces zero, synthetic division removes that factor and lowers the degree. The remaining quadratic or cubic is then easier to solve.

Not every polynomial factors over rational numbers. Analytic formulas cover degrees two through four, while the calculator uses complex arithmetic internally so a negative square root or complex intermediate value never causes roots to disappear.

Quadratic, Cubic, and Quartic Solution Methods

A quadratic uses x = (−b ± √(b² − 4ac))/(2a). The expression under the square root is the discriminant, and the plus/minus sign produces both roots. This direct formula works whether the answers are real or complex.

Cardano's cubic method first substitutes a shifted variable to remove the squared term. The depressed equation t³ + pt + q = 0 can then be evaluated through cube roots. When all three roots are real, a trigonometric form avoids the severe cancellation that can occur in the radical form.

Ferrari's quartic method removes the cubic term and builds a resolvent cubic. A solution of that cubic splits the depressed quartic into two quadratic factors. Biquadratic equations are handled by solving a quadratic in x², which is shorter and usually more stable than the general Ferrari path.

Polynomial Degree and Root Methods

Polynomial forms, maximum roots, and common solution methods by degree
DegreeGeneral formMaximum rootsPrimary method
1ax + b1Isolate x
2ax² + bx + c2Factoring or quadratic formula
3ax³ + bx² + cx + d3Rational roots or Cardano
4ax⁴ + bx³ + cx² + dx + e4Factoring, biquadratic reduction, or Ferrari

What the Polynomial Discriminant Means

The discriminant is a coefficient expression that detects repeated roots and helps classify the remaining root pattern. For a quadratic it is b² − 4ac. Positive, zero, and negative values correspond respectively to two real roots, a repeated real root, and a non-real conjugate pair.

A cubic discriminant has a similar complete sign interpretation: positive means three distinct real roots, negative means one real root plus a conjugate pair, and zero means repetition. A quartic is subtler. A negative quartic discriminant implies two real roots and one conjugate pair, but a positive value can mean either four real roots or two conjugate pairs. The calculator therefore combines the quartic discriminant with the computed roots instead of making an unsupported conclusion from the sign alone.

Values extremely close to zero require care because rounding can make clustered roots look repeated. The result labels such a value as approximately zero and separately checks the normalized substitution residual of every root.

Real Roots, Complex Roots, and Multiplicity

A real root lies on the horizontal axis of the complex-plane diagram because its imaginary component is zero. A non-real root has both real and imaginary components. Polynomials with real coefficients produce non-real roots in conjugate pairs: if a + bi is a root, a − bi is also a root with the same multiplicity.

Multiplicity records how many times a factor occurs. The polynomial (x − 2)³(x + 1) has two distinct roots but degree four: 2 has multiplicity three and −1 has multiplicity one. Even multiplicity often makes a graph touch the x-axis and turn around, while odd multiplicity usually crosses it.

Decimal answers are rounded for display, but the calculation keeps more precision internally. Newton polishing improves each analytic estimate, and Horner's method evaluates the original polynomial efficiently. A small normalized residual confirms that the displayed approximation behaves like a root at the available floating-point precision.

Polynomial Roots Calculator FAQ

How many roots can a fourth-degree polynomial have?

A fourth-degree polynomial has four complex roots when multiplicity is counted. Depending on its coefficients, those may be four real roots, two real roots and one conjugate pair, two conjugate pairs, or repeated combinations.

Can this calculator find complex polynomial roots?

Yes. It evaluates every solver with complex arithmetic and displays roots in a + bi form. For real coefficients, non-real answers are checked as conjugate pairs.

What does a zero polynomial discriminant mean?

A zero discriminant means at least two roots coincide, so the polynomial has a repeated root. A value that is merely close to zero can also indicate tightly clustered roots, which is why residual verification matters.

How do you solve a cubic equation?

Try factoring and the rational root theorem first. If no rational factor is available, shift the variable to remove the squared term and solve the resulting depressed cubic with Cardano's method or its trigonometric form.

How do you solve a quartic equation?

Check first for factorization, a zero constant, or a biquadratic pattern. General quartics can be depressed by a variable shift and separated into quadratic factors through Ferrari's resolvent cubic.

What is root multiplicity?

Multiplicity is the number of times the same root occurs as a factor. A root r with multiplicity three contributes (x − r)³ to the polynomial and counts three times toward its degree.

Why are polynomial roots sometimes approximate?

Most irrational and complex roots cannot be written as short terminating decimals. The calculator rounds their display while retaining floating-point precision and reports a substitution residual so the approximation can be assessed.

Related Calculators