Skip to content
CalculatorBuddy

Quadratic Formula Calculator

Solve ax² + bx + c = 0 with the quadratic formula. Enter decimals or fractions; get real or complex roots and optional worked steps.

ExampleSample values — edit any field to see your result.

Coefficient of x². Fractions such as 1/4 are allowed. 0 falls back to a linear equation.

Coefficient of x. Fractions such as 3/4 are allowed.

Constant term. Fractions such as 1/4 are allowed.

Include a worked substitution of the quadratic formula (or the linear fallback).

Results update as you type.

Solution

One real root

x = -0.5

Estimated result

Equation
x² + x + 1/4 = 0
Discriminant Δ
0
x₁
-0.5

Steps

Worked solution
Δ = b² − 4ac = 1² − 4 × 1 × 1/4 = 0
x = (−b ± √Δ) / (2a)
x = (−1 ± √(0)) / (2 × 1)
x = -1 / 2
x = -0.5

Solve any quadratic equation ax² + bx + c = 0. Enter decimals or fractions for a, b, and c; the calculator returns the real root, the pair of real roots, or the complex conjugate pair, plus the discriminant and optional worked steps.

Formula

A quadratic equation is a second-degree polynomial

ax² + bx + c = 0

with a ≠ 0. Completing the square yields the quadratic formula:

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

The discriminant Δ = b² − 4ac classifies the solutions:

DiscriminantRoots
Δ > 0Two distinct real roots
Δ = 0One real root (repeated), x = −b / (2a)
Δ < 0Two complex roots, α ± βi

When a = 0 the equation is linear. If b ≠ 0 then x = −c / b.

Fractional values such as 1/4 and 3/4 can be typed directly. The default example a = 1, b = 1, c = 1/4 has Δ = 0, so there is a single real root x = −0.5.

Examples

Repeated root (default)

a = 1, b = 1, c = 1/4. Δ = 1 − 4 × 1 × 1/4 = 0, so x = −1 / 2 = −0.5.

Two real roots

a = 1, b = −3, c = 2. Δ = 9 − 8 = 1, so x = (3 ± 1) / 2, which is 2 or 1. The same pair appears for a = 1/2, b = −3/2, c = 1.

Complex roots

a = 1, b = 2, c = 5. Δ = 4 − 20 = −16, so x = −1 ± 2i. For a = 1, b = 1, c = 1 the pair is −0.5 ± 0.86602540378444i.

Linear fallback

a = 0, b = 1, c = 1 is the line x + 1 = 0, so x = −1.

Frequently asked questions

What is the quadratic formula?
For ax² + bx + c = 0 with a ≠ 0, the roots are x = (−b ± √(b² − 4ac)) / (2a). The value Δ = b² − 4ac is the discriminant. This calculator also accepts fractions such as 1/4 for a, b, and c.
What does the discriminant tell you?
If Δ > 0 there are two distinct real roots. If Δ = 0 there is one real root (a repeated root, x = −b / (2a)). If Δ < 0 the roots are a complex conjugate pair α ± βi, with α = −b / (2a) and β = √(−Δ) / |2a|.
What if a is zero?
Then the equation is linear, bx + c = 0, and the solution is x = −c / b when b ≠ 0. If a and b are both zero there is no equation to solve — enter a non-zero a or b.
Can I enter fractions?
Yes. Coefficients accept decimals (1.5) and simple fractions (1/4, 3/4, −3/2). Spaces around the slash are fine. Mixed numbers such as 1 1/2 are not parsed as mixed — use 3/2 or 1.5 instead.
What are complex roots?
When the parabola does not cross the x-axis, Δ is negative and the solutions live on the complex plane. They are written α ± βi. For x² + 2x + 5 = 0 the solutions are −1 ± 2i.

Related calculators