Bench:Ratio

Quadratic formula calculator

Solve a quadratic equation and see its roots, vertex and discriminant.

Discriminant (b² − 4ac)
1
Roots
x₁ = 1, x₂ = 2
Type
Two real roots
Vertex
(1.5, -0.25)
Axis of symmetry
x = 1.5
y-intercept
2
Opens
Upward (minimum at vertex)

Formula

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

The expression under the square root, Δ = b² − 4ac, is the discriminant. Its sign tells you how many real roots the equation has.

Diagram

Quadratic equationx = −b / 2ax₁x₂Vertexx = (−b ± √Δ) / 2aΔ = b² − 4acΔ > 0: two real rootsΔ = 0: one repeated rootΔ < 0: two complex roots
The roots are where the parabola crosses the x-axis. The discriminant tells you how many real crossings there are.

How it is calculated

  1. Write the equation as ax² + bx + c = 0 and read off a, b and c.
  2. Compute the discriminant Δ = b² − 4ac.
  3. If Δ is 0 or more, x = (−b ± √Δ) / 2a. If it is negative, the roots are complex: −b / 2a ± (√−Δ / 2a) i.
  4. The vertex is at x = −b / 2a.

Worked examples

  1. Two real roots

    x² − 3x + 2 = 0: Δ = 9 − 8 = 1, so x = (3 ± 1) / 2, which gives 1 and 2. The vertex is (1.5, −0.25).

  2. One repeated root

    x² − 2x + 1 = 0: Δ = 0, so x = 1 only. The parabola just touches the x-axis.

  3. Complex roots

    x² + 2x + 5 = 0: Δ = −16, so x = −1 ± 2i. The parabola never crosses the x-axis.

Key terms

Quadratic equation
An equation where the highest power of x is 2.
Root (solution)
A value of x that makes the equation true. It is where the graph crosses the x-axis.
Discriminant (Δ)
b² − 4ac. It decides how many real roots there are.
Vertex
The turning point of the parabola, its lowest or highest point.
Complex root
A root that includes i, where i² = −1.

Assumptions and limits

Solves one quadratic equation with real coefficients. Rearrange the equation to the form ax² + bx + c = 0 first. Complex roots are shown as a ± bi. See the disclaimer.

Learn more

Related calculators