Figuro.net

Quadratic Formula Calculator

Solve any equation in the form ax² + bx + c = 0 for real or complex roots, with the discriminant and every step shown.

Enter values and press Calculate to see the result here.

How this is calculated

The discriminant (b²-4ac) is calculated first to determine the type of roots, then the quadratic formula is applied to find the exact value(s) of x.

The quadratic formula

Any equation in standard form ax² + bx + c = 0 (with a ≠ 0) can be solved using the quadratic formula, regardless of whether it factors nicely.

Formula

x = (-b ± √(b²-4ac)) ÷ 2a
Discriminant = b² - 4ac

Example: for x²-3x-4=0 (a=1, b=-3, c=-4), the discriminant is 9+16=25, giving x = (3±5)/2, so x = 4 or x = -1.

Quick reference table

DiscriminantRoot type
PositiveTwo distinct real roots
ZeroOne repeated real root
NegativeTwo complex conjugate roots

Common pitfalls

Tips

Frequently asked questions

What is the quadratic formula? x = (-b ± √(b²-4ac)) ÷ 2a, used to solve any equation in the form ax² + bx + c = 0.

What is the discriminant and what does it tell you? The discriminant is b²-4ac. If it's positive, the equation has two real roots; if zero, one repeated real root; if negative, two complex roots.

What does it mean for a quadratic to have complex roots? Complex roots occur when the discriminant is negative, meaning the parabola never crosses the x-axis — the solutions involve the imaginary unit i (√-1).

Can the quadratic formula be used for any quadratic equation? Yes, as long as the equation is in standard form ax² + bx + c = 0 with a not equal to zero — the quadratic formula always works, unlike factoring, which only works cleanly for some equations.

What is an example of solving with the quadratic formula? For x²-3x-4=0 (a=1, b=-3, c=-4), the discriminant is 9+16=25, giving x = (3±5)/2, so x = 4 or x = -1.

Worked examples

Example 1 — Two real roots: x²-3x-4=0 → x = 4 or x = -1.

Example 2 — One repeated root: x²-4x+4=0 → discriminant = 0 → x = 2.

Example 3 — Complex roots: x²+2x+5=0 → discriminant = -16 → x = -1 ± 2i.

Where quadratics show up and which method to use

Choosing a solving method

MethodBest when
FactoringThe numbers are small and the equation factors neatly.
Square rootsThere is no middle term, such as x² = 49.
Completing the squareYou also need the vertex form of the parabola.
Quadratic formulaIt always works, including when roots are irrational or complex.

Useful facts about the roots

Real-world uses

Quadratic equations describe the height of a thrown object over time, the area of a rectangle when one side depends on the other, and the profit of a business when price and demand interact. In each case the roots tell you when a value reaches zero, such as when a ball lands, and the vertex tells you the highest or lowest point.

More questions

How can I check my answers? Substitute each root back into ax² + bx + c. If the result is zero, the root is correct.

Why does my equation need to equal zero first? The formula assumes the standard form ax² + bx + c = 0. Move every term to one side before reading off a, b and c.

← Browse all 166 calculators