Algebra & Equations

Quadratic Equation Solver

Solve a·x² + b·x + c = 0.

Formula

Formula
x = −b ± b2−4ac2a

Variables

SymbolDefinitionType & rangeUnitsRole
a quadratic coefficient (≠ 0) real number (ℝ) input
b linear coefficient real number (ℝ) input
c constant real number (ℝ) input

Try it yourself

Interactive calculator
Result

Worked examples

Example 1
Givena = 1, b = -3, c = 2
Result
x1
2
x2
1
Example 2
Givena = 1, b = 0, c = 1
Result
x1
0 + 1i
x2
0 − 1i