Quadratic and Cubic Equation Solver: Roots, Discriminant, Vertex and Factorised Form
Solve quadratic and cubic equations and see the working.
Engineering student calculators
Free textbook calculators with every step shown, so you can check your own working. Pick one, type in your numbers and see the formulas worked out. Or switch to Ask a question for an explained answer. No account needed.
Calculated from standard textbook formulas, with every step shown. The formulas are fixed, so the working does not need checking: what matters is the numbers you type in. Use these calculators only if you are competent to choose the inputs (loads, material strength, dimensions, supports) and check your units and assumptions. For learning and checking your own working: design and sign-off are for a qualified engineer. Drafting Central does not store the numbers you type.
How this calculator works
Choose quadratic or cubic and enter the coefficients a, b, c (and d for a cubic).
For a quadratic you get the discriminant, the roots, the factorised form, the vertex and the sum and product of the roots.
For a cubic you get the three roots, real or complex, with a check.
Formulas used
- x = \frac{-b\pm\sqrt{b^2 - 4ac}}{2a}
- \Delta = b^2 - 4ac
- x_v = -\frac{b}{2a}
- r_1 + r_2 = -\frac{b}{a},\ r_1r_2 = \frac{c}{a}
Worked example
With the default numbers in the calculator above:
- Discriminant: 1.00 (positive: two different real roots)
- Roots by the quadratic formula: x = 3.00 and x = 2.00
- Factorised form: 1 (x - 3) (x - 2)
- Vertex (the turning point) and axis of symmetry: (2.50, -0.25), axis x = 2.50, the curve opens upward (minimum)
- Sum and product of the roots: 5.00 and 6.00
- Vertex form: 1 (x - 2.5)^2 - 0.25
Change the numbers in the calculator to see the full working, every step, for your own case.
A second worked example
A different case, with these numbers: Equation Cubic: ax^3 + bx^2 + cx + d = 0; a 1; b -6; c 11; d (cubic only) -6.
- Depressed cubic t^3 + pt + q = 0 with x = t - b/(3a): p = -1.00, q = 0.00
- Discriminant of the cubic: 4.00 (three different real roots)
- The three roots: 3.00; 2.00; 1.00
- Check: the equation evaluated at each real root: The largest value is 8.8818e-16 (it should be zero)
- Sum and product of the roots: 6.00 and 6.00
Common questions
What is the quadratic formula?
x = (-b plus or minus the square root of b squared minus 4ac) all over 2a.
What does the discriminant tell me?
If b squared minus 4ac is positive there are two real roots, if zero one repeated root, if negative two complex roots.
How many roots does a cubic have?
Three, counting complex ones. At least one is always real.
Related calculators
Got a question about this? Ask an engineering question and get a plain-language answer with references.
Further reading: Any school or first-year mathematics text (quadratic and cubic equations).
Need a calculator we do not have?
Embed this calculator on your own page
Copy this code into your page. The calculator runs inside the frame and links back to Drafting Central.
Need this drawn, designed or checked?
Drafting Central is a mechanical engineering and drafting business working with customers across Australia and around the world. A calculator gives you the numbers; we can turn them into drawings and designs.
Need help with a real project?
Talk to Drafting Central →