OONNOOO

Quadratic equation solver

Solve ax² + bx + c = 0 over real or complex numbers.

6
Automatic

Enter known values

Fill in the fields below — the result will appear alongside.

Formulas

D=b24acD=b^2-4ac

How it works

The solver handles two, one or complex roots and automatically falls back to a linear equation when a is zero.

It evaluates the discriminant with an epsilon-aware comparison, then selects the appropriate solution path.

Examples

Two roots{"a":1,"b":-3,"c":2}