Difference of cubes
Solve difference of cubes with your values and follow each calculation step.
Inputs
Use the units shown—
Enter your values and select Calculate.
Formula & explanation
a³−b³ = (a−b)(a²+ab+b²)
Variables & units
- First number · a
- Numeric value · minimum -1000000, maximum 1000000
- Second number · b
- Numeric value · minimum -1000000, maximum 1000000
Worked example
5³−2³ = 3×39 = 117.
Assumptions
Both signs inside the quadratic factor are positive.
Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.
Practice with an example
Use the default input values to find the answer. The reset icon restores those values.
Calculated on your device. Your latest 100 calculations stay in this browser.