Quadratic Formula Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Algebra Hub

The quadratic formula solves any equation of the form ax² + bx + c = 0 in one step: x = (−b ± √(b²−4ac)) / 2a. Enter your three coefficients below and instantly get both roots, the discriminant, vertex coordinates, and axis of symmetry — with every step shown.

The discriminant (b²−4ac) tells you the nature of the roots before you solve: positive → two distinct real roots; zero → one repeated real root; negative → two complex conjugate roots (no real solutions).

Formula

x = (−b ± √(b² − 4ac)) / 2a

a
coefficient of x² (must not be 0)
b
coefficient of x
c
constant term
D
discriminant = b² − 4ac

Solve ax² + bx + c = 0

Enter the three coefficients of your quadratic equation.

Coefficient of x²

Coefficient of x

Constant term

1-5x +6 = 0

Quick examples:

Discriminant Quick Reference

Discriminant DRoot TypeGraphExample
D > 0 (e.g. D = 9)Two distinct real rootsCrosses x-axis twicex²−5x+6: D=1 → x=2, x=3
D = 0One repeated real rootTouches x-axis at vertex2x²−4x+2: D=0 → x=1
D < 0 (e.g. D = −4)Two complex conjugate rootsDoes not touch x-axisx²+2x+5: D=−16 → x=−1±2i
D is perfect squareTwo rational rootsCrosses x-axis at rational ptsx²−7x+12: D=1 → x=3, x=4

Worked Examples

EquationDRootsVertex
x² − 5x + 6 = 01x = 3, x = 2(2.5, −0.25)
x² − 4x + 4 = 00x = 2 (repeated)(2, 0)
x² + x + 1 = 0−3x = −0.5 ± 0.866i(−0.5, 0.75)
2x² − 3x − 2 = 025x = 2, x = −0.5(0.75, −3.125)
x² − 2x − 15 = 064x = 5, x = −3(1, −16)
3x² + 6x + 3 = 00x = −1 (repeated)(−1, 0)

Disclaimer

This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.

Frequently Asked Questions