CalcUnit Logo

How to Calculate Cubic Equation

Find all roots of a cubic equation ax³ + bx² + cx + d = 0.

The Formula

Cardano's formula

The cubic equation formula uses the mathematical relationship: Cardano's formula. Each variable in the formula represents a measurable quantity that affects the final result.

What Each Variable Means

Every value in the cubic equation formula, what it measures, and the value used in the worked example on this page:

VariableTypeExample value
a (x³ coefficient)Input (you provide)1
b (x² coefficient)Input (you provide)-6
c (x coefficient)Input (you provide)11
d (constant)Input (you provide)-6
Test x valueInput (you provide)1
f(x) at test valueResult (calculated)—
Simplified discriminant partResult (calculated)—
Sum of roots (-b/a)Result (calculated)—
Product of roots (-d/a)Result (calculated)—

Step-by-Step Method

  1. 1Write down the values you know: a (x³ coefficient), b (x² coefficient), c (x coefficient), d (constant), Test x value.
  2. 2Substitute your known values into the formula: Cardano's formula.
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 5Verify your answer with the interactive Cubic Equation Calculator — it solves the same formula instantly.

Worked Example

Take a concrete case: a (x³ coefficient) = 0.5, with the other inputs at the typical values from the variables table above. Substituting into the formula gives f(x) at test value = -0.500000, simplified discriminant part = -169.0000, sum of roots (-b/a) = 12.0000, product of roots (-d/a) = 12.0000. These numbers are solved by the same engine that powers the Cubic Equation calculator, so you can reproduce them exactly by entering the same inputs there.

a (x³ coefficient)f(x) at test valueSimplified discriminant partSum of roots (-b/a)Product of roots (-d/a)
0.3-0.700000-374.280020.000020.0000
0.5-0.500000-169.000012.000012.0000
0.8-0.200000-6.88007.50007.5000
10.0000004.00006.00006.0000
21.000000-1108.00003.00003.0000
32.000000-4164.00002.00002.0000
43.000000-9164.00001.50001.5000

How each result changes as a (x³ coefficient) changes, holding the other inputs constant.

Practice Problems

1. x³ - 6x² + 11x - 6 = 0 (roots: 1,2,3): Plug in a (x³ coefficient) 1, b (x² coefficient) -6, c (x coefficient) 11, d (constant) -6, Test x value 1. What is the answer?

Answer: With a (x³ coefficient) 1, b (x² coefficient) -6, c (x coefficient) 11, d (constant) -6, Test x value 1, the results are f(x) at test value 0.000000, Simplified discriminant part 4.0000, Sum of roots (-b/a) 6.0000, Product of roots (-d/a) 6.0000.

2. Given a (x³ coefficient) 1.25, b (x² coefficient) 0, c (x coefficient) -3, d (constant) 2, Test x value 1, what does it come out to?

Answer: Entering a (x³ coefficient) 1.25, b (x² coefficient) 0, c (x coefficient) -3, d (constant) 2, Test x value 1 gives f(x) at test value 0.250000, Simplified discriminant part -33.7500, Sum of roots (-b/a) -0.0000, Product of roots (-d/a) -1.6000.

Frequently Asked Questions

What is the formula for cubic equation?

The formula is: Cardano's formula. Find all roots of a cubic equation ax³ + bx² + cx + d = 0.

What values do I need to calculate cubic equation?

You need a (x³ coefficient), b (x² coefficient), c (x coefficient), d (constant), test x value. The calculator produces f(x) at test value, simplified discriminant part, sum of roots (-b/a), product of roots (-d/a) from those inputs.

What is the cubic equation when a (x³ coefficient) is 0.5?

With a (x³ coefficient) = 0.5, the result is f(x) at test value = -0.500000, simplified discriminant part = -169.0000, sum of roots (-b/a) = 12.0000, product of roots (-d/a) = 12.0000. This is worked through in full in the example on this page.

Related Topics

cubic equationrootsalgebra

Use the Interactive Calculator

Skip the manual math — get instant results with our free Cubic Equation calculator.

Open Calculator

Related Calculators