This quartic equation solver finds all four roots of a fourth-degree polynomial, ax^4 + bx^3 + cx^2 + dx + e = 0, including complex roots. Enter the five coefficients and read the roots, then use the sum and product checks on this page to confirm them.
Quartic Equation Solver
Solve ax⁴ + bx³ + cx² + dx + e = 0 for all real and complex roots, with the depressed quartic, Ferrari’s resolvent cubic, the discriminant and a root-by-root check.
Starting values: the calculator opens with x^4 – 10x^3 + 35x^2 – 50x + 24 = 0. Its four roots are 1, 2, 3 and 4.
What the solver returns
Every quartic has exactly four roots when you count repeats and complex numbers. They can be four real roots, two real roots and a complex pair, or two complex pairs. Complex roots of a polynomial with real coefficients always come in conjugate pairs, such as 1 + i and 1 – i. If you enter a = 0, the equation is no longer a quartic and the solver treats it as a cubic.
How quartics are solved
The classic method is Ferrari’s. First, the substitution x = y – b/(4a) removes the cubic term and gives a depressed quartic, y^4 + py^2 + qy + r = 0. Then a resolvent cubic is solved, and its root splits the quartic into two quadratics, which are solved in turn. Doing this by hand is long, which is why most people use a calculator for it.
Checks you can do yourself
For any quartic with roots r1 to r4, Vieta’s formulas give two quick tests:
- The sum of the roots is -b / a.
- The product of the roots is e / a.
If the sum or product of the roots from the calculator does not match, recheck the coefficients you entered, especially the signs.
Worked examples
Example 1: the default equation
The roots are 1, 2, 3 and 4, so the polynomial factors as (x – 1)(x – 2)(x – 3)(x – 4). The sum of the roots is 10, which is -(-10) / 1, and the product is 24, which is e / a. Both checks pass.
The substitution y = x – 2.5 shows why this one is easy to solve: the depressed form is y^4 – 2.5y^2 + 0.5625 = 0, which has no linear term. It factors as (y^2 – 2.25)(y^2 – 0.25), so y is 1.5, -1.5, 0.5 or -0.5, and adding 2.5 returns the four roots.
Example 2: x^4 – 1 = 0
The difference of squares gives (x^2 – 1)(x^2 + 1). The real roots are 1 and -1, and the complex roots are i and -i.
Example 3: x^4 + 4 = 0
This one has no real roots, but it factors as (x^2 + 2x + 2)(x^2 – 2x + 2). Solving each quadratic gives the four complex roots -1 + i, -1 – i, 1 + i and 1 – i. As a check, (1 + i) squared is 2i, and 2i squared is -4, which is what x^4 should equal.
Reading real and complex roots
- A real root is a point where the graph of the quartic crosses or touches the x-axis.
- A complex pair does not appear on the x-axis. The quartic can still be above or below the axis everywhere.
- A repeated root shows up as the same value twice, and the graph touches the axis there without crossing it.
Tips and limits
- Roots are numerical, so very large or very small coefficients can reduce the number of accurate digits.
- When two roots are very close together, the calculator may show them as slightly different values, even if they are actually equal.
- Divide through by a common factor first, if you can, so that the numbers are easier to read and check.
- For a cubic or a quadratic, use a calculator that matches the degree, since closed-form formulas are simpler there.
Worked check: a quartic with a repeated root
Take x^4 – 4x^3 + 6x^2 – 4x + 1 = 0. This is (x – 1) to the fourth power, so the calculator should report the root 1 four times, possibly with tiny rounding differences. The sum of the roots is 4, which matches -b / a, and the product is 1, which matches e / a. Repeated roots are a common reason why a numerical solver shows values such as 1.0000001 and 0.9999999 instead of exact repeats.
Where quartics come up
Quartic equations appear in beam deflection formulas, in the intersection of two conic sections, in some optics and lens problems, and in textbook problems that reduce to a quadratic in x squared. When the equation has only even powers, such as x^4 – 5x^2 + 4 = 0, you do not need Ferrari at all. Let u = x^2, solve the quadratic in u, and take square roots. That example gives u = 1 or u = 4, so x = 1, -1, 2 or -2.
Frequently asked questions
How many roots does a quartic equation have?
Four, counting repeated roots and complex roots.
Can a quartic have no real roots?
Yes. For example, x^4 + 4 = 0 has four complex roots and none on the real line.
How do I check the roots?
The sum of the roots equals -b / a and their product equals e / a. You can also substitute a root back into the polynomial.
What is Ferrari’s method?
It is the standard algebraic method for solving quartics. It removes the cubic term, solves a resolvent cubic and then solves two quadratics.
What happens if a is 0?
The equation is no longer a quartic, and the solver treats it as a cubic.
