Quadratic equation · real roots

Calculate quadratic equation · real roots and see the working behind your result.

Inputs

Use the units shown
RESULT
—

Enter your values and select Calculate.

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

Variables & units

Coefficient of x²
Numeric value · minimum -1000000, maximum 1000000
Coefficient of x
Numeric value · minimum -1000000, maximum 1000000
Constant
Numeric value · minimum -1000000, maximum 1000000

Worked example

x²−5x+6=0 has roots 2 and 3.

Assumptions

Numerical evaluation uses an equivalent stable root formula. Repeated roots are displayed twice.

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.