Discover
Random

Cubic Equation Solver

Find all three roots of ax³ + bx² + cx + d = 0 using Cardano's formula, with steps.

Free Cubic Equation Solver

Cubic equations don't factor as neatly as quadratics. Our free cubic equation solver finds all three roots of any ax³ + bx² + cx + d = 0, using Cardano's formula, with the full derivation shown — not just the final answer.

Enter your four coefficients and the calculator depresses the cubic, computes the discriminant, and applies Cardano's formula step by step. The discriminant tells you what to expect: three distinct real roots, a repeated real root, or one real root paired with two complex conjugate roots — each case labelled clearly, with complex roots shown in standard a ± bi form.

A graph of the cubic is plotted alongside the algebra, with real roots marked where the curve crosses the x-axis. No sign-up, no downloads, no limits.

About the Cubic Equation Solver

How It Works & Methodology

The Cubic Equation Solver finds all three roots of ax³ + bx² + cx + d = 0 using Cardano's classical formula. It depresses the cubic to remove the squared term, computes the discriminant to classify the roots, then applies the appropriate real or complex root formula — showing every step of the derivation.

Features

Cardano's formula

The classical depression-and-substitution method shown step by step.

Discriminant classification

Automatically identifies three real roots, a repeated root, or a complex pair.

Complex root display

Complex roots shown in standard a ± bi form.

Graph

The cubic curve plotted with real roots marked at the x-axis crossings.

Mathematical Basis & Practical Verification

The Cubic Equation Solver is built on symbolic algebraic manipulation, polynomial root-finding theorems, matrix row-reduction, and exact rational arithmetic. Solves cubic equations ax³+bx²+cx+d=0 for all three roots (real and complex), using Cardano's formula, with step-by-step working and a graph. Key capabilities built into this tool include cardano's formula, discriminant-based root classification, complex root display, and graph.

All computations for the Cubic Equation Solver follow the definitions established in NIST Digital Library of Mathematical Functions (DLMF) — Elementary & Algebraic Functions (National Institute of Standards and Technology (NIST)) and Abramowitz and Stegun: Handbook of Mathematical Functions (National Bureau of Standards (NBS)). Because the solver evaluates inputs locally in IEEE 754 double-precision arithmetic (53-bit significand, ~15–17 significant decimal digits) and is regression-tested against deterministic reference fixtures in tests/cubic-solver.spec.ts, you can inspect boundary conditions, verify dimensional consistency across algebra units, and cross-check each intermediate step against textbook solutions.

Authoritative Sources & Standards

  1. NIST Digital Library of Mathematical Functions (DLMF) — Elementary & Algebraic Functions — National Institute of Standards and Technology (NIST)
  2. Abramowitz and Stegun: Handbook of Mathematical Functions — National Bureau of Standards (NBS)

Frequently Asked Questions

How does the cubic equation solver work?

Enter the four coefficients of your cubic and it finds all three roots using Cardano's formula, with the full working shown.

Does it find complex roots?

Yes, when the discriminant is negative, one real root and a complex conjugate pair are shown in a ± bi form.

What is the discriminant used for?

It classifies the roots: three distinct real roots, a repeated real root, or one real root plus a complex pair.

What is Cardano's formula?

A classical method for solving cubic equations algebraically by first depressing the cubic to remove the squared term, then applying a formula involving the discriminant.

Does it show a graph?

Yes, the cubic curve is plotted with real roots marked where it crosses the x-axis.

Can it handle non-integer coefficients?

Yes, any real coefficients are accepted.

Are results exact or rounded?

Clean rational roots are shown exactly; irrational or complex roots are rounded to a sensible precision.

Embed Cubic Equation Solver

Copy and paste this HTML snippet to embed this interactive calculator on your website or blog:

Discover more tools

Surprise me