Loading…

Cubic and Quartic Equation Solver

Math Algebra • Equations

View all topics

Solve cubic and quartic equations with rational-root testing and a numerical fallback for all real and complex roots. The tool also shows depressed-form substitutions, multiplicity grouping, and an interactive polynomial graph with root markers.

Cubic: \(a_3x^3+a_2x^2+a_1x+a_0=0\) Quartic: \(a_4x^4+a_3x^3+a_2x^2+a_1x+a_0=0\) Rational roots: \(x=\frac{p}{q}\) Sample: \(x^3-6x^2+11x-6=0\)

Input mode

Polynomial equation

You can type x^3 - 6x^2 + 11x - 6 = 0, (x - 1)(x - 2)(x - 3) = 0, x⁴ - 5x² + 4 = 0, decimals, fractions, and implicit multiplication.

Coefficients

Enter coefficients for \(a_4x^4+a_3x^3+a_2x^2+a_1x+a_0=0\). For a cubic equation, set \(a_4=0\).

Graph settings

Drag the graph left/right to pan. Use the mouse wheel or trackpad to zoom. On touch screens, pinch to zoom.

Quick examples

Ready
Enter a cubic or quartic equation, then click “Solve equation”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What does the Cubic and Quartic Equation Solver do?

It solves degree 3 and degree 4 polynomial equations and returns all real and complex roots, counting multiplicity.

How do I enter a cubic equation?

You can enter a full equation such as x^3 - 6x^2 + 11x - 6 = 0, or use coefficient mode and set a4 = 0.

How do I enter a quartic equation?

Use full equation input such as x^4 - 5x^2 + 4 = 0, or enter coefficients a4 through a0 in coefficient mode.

What are the roots of x^3 - 6x^2 + 11x - 6 = 0?

The roots are x = 1, x = 2, and x = 3.

What is the Rational Root Theorem?

For a polynomial with integer coefficients, any rational root p/q must have p dividing the constant term and q dividing the leading coefficient.

What happens if no rational roots are found?

The solver uses numerical complex root-finding to approximate all roots, including irrational and complex roots.

Can cubic and quartic equations have complex roots?

Yes. Cubics and quartics always have all roots in the complex plane, and complex roots appear when there are fewer real roots than the degree.

Why do complex roots not appear on the graph?

The graph is drawn on the real x-y plane. Only real roots appear as x-intercepts. Complex roots are listed in the root table.

What is a depressed cubic?

A depressed cubic is obtained by shifting x so that the quadratic term disappears, producing y^3 + py + q = 0.

What is a depressed quartic?

A depressed quartic is obtained by shifting x so that the cubic term disappears, producing y^4 + py^2 + qy + r = 0.

What does multiplicity mean?

Multiplicity tells how many times a root is repeated as a factor. For example, (x - 2)^2 has root 2 with multiplicity 2.

Can I zoom and pan the graph?

Yes. You can drag to pan, use the mouse wheel or trackpad to zoom, pinch on touch screens, or use the graph control buttons.