# Cubic Equation Solver

Solve cubic equations, classify the root pattern, and show Cardano-style intermediate values

> Canonical page: https://elysiatools.com/en/tools/cubic-equation-solver

- **Category:** Math & Numbers

- **Keywords:** cubic equation, cardano, polynomial roots, discriminant, math

## Overview

The Cubic Equation Solver is a specialized mathematical utility designed to calculate the roots of third-degree polynomials. Whether you input individual coefficients or a complete equation string, it instantly computes real and complex roots, classifies the root pattern based on the discriminant, and provides Cardano-style intermediate values for deeper mathematical analysis.

## Inputs

- **Input Format** (select)
- **Coefficient a / Equation** (text): 1 or x^3 - 6x^2 + 11x - 6 = 0
- **Coefficient b** (number)
- **Coefficient c** (number)
- **Coefficient d** (number)
- **Decimal Places** (number)
- **Show Steps** (checkbox)

## When to use

- When you need to find the exact real and complex roots of a third-degree polynomial equation.
- When verifying manual calculations using Cardano's formula for academic or engineering purposes.
- When analyzing the discriminant to classify the root pattern of a cubic function.

## How it works

- Select your preferred input format: either individual coefficients (a, b, c, d) or a complete equation string.
- Enter the equation or coefficients into the designated input fields.
- Adjust the decimal places for precision and toggle the option to show intermediate calculation steps.
- View the structured JSON output containing the calculated roots, discriminant, and Cardano-style intermediate values.

## Use cases

- Engineering students verifying manual root calculations for control systems or fluid dynamics assignments.
- Mathematics educators generating step-by-step examples of Cardano's method for classroom demonstrations.
- Software developers needing a quick way to validate custom polynomial root-finding algorithms.

## Frequently asked questions

### Can I input the full equation instead of just coefficients?

Yes, you can switch the Input Format to 'Complete Equation' and type the full string, such as x^3 - 6x^2 + 11x - 6 = 0.

### Does this tool calculate complex roots?

Yes, the solver calculates and returns both real and complex roots based on the equation's discriminant.

### What are Cardano-style intermediate values?

These are the intermediate variables (often denoted as p, q, and the discriminant) used in Cardano's formula to solve cubic equations analytically.

### Can I control the precision of the output?

Yes, you can adjust the 'Decimal Places' setting between 0 and 10 to round the calculated roots to your required precision.

### What happens if the coefficient 'a' is zero?

If 'a' is zero, the equation is quadratic, not cubic. You must provide a non-zero value for the 'a' coefficient for a valid cubic equation.

## Related tools

- [Cube Root Calculator](https://elysiatools.com/en/tools/cube-root-calculator): Calculate cube roots for positive or negative numbers and verify the cubed result
- [Linear Equation Solver](https://elysiatools.com/en/tools/linear-equation-solver): Solve linear equations of the form ax + b = 0 using coefficients or a typed equation
- [Poisson's Ratio Calculator](https://elysiatools.com/en/tools/poisson-ratio-calculator): Calculate Poisson's ratio ν = −ε_transverse / ε_longitudinal and solve any of the three unknowns: ratio, lateral strain, or longitudinal strain. Tensile ε_long > 0 produces lateral contraction ε_lat < 0. Typical values: steel ≈ 0.30, aluminum ≈ 0.33, rubber ≈ 0.49, cork ≈ 0. Theoretical isotropic range 0 ≤ ν ≤ 0.5.
- [Proportion Calculator](https://elysiatools.com/en/tools/proportion-calculator): Solve proportion equations of the form a/b = c/d and calculate the missing term
- [Venn Diagram Problem Solver (Set Cardinality)](https://elysiatools.com/en/tools/venn-diagram-problem-solver): 2-set and 3-set inclusion-exclusion solver: every disjoint region, the union, and the outside count, with consistency checks.
- [Antilog Calculator](https://elysiatools.com/en/tools/antilog-calculator): Calculate antilogarithms for any valid base and optionally verify the result by applying the logarithm again
- [Arithmetic Sequence Calculator](https://elysiatools.com/en/tools/arithmetic-sequence-calculator): Calculate the nth term, first terms, and finite sum of an arithmetic sequence
- [Determinant Calculator](https://elysiatools.com/en/tools/determinant-calculator): Compute the determinant of a square matrix and explain the main calculation steps

## Samples

- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion
