Quadratic Formula Calculator

Solve ax² + bx + c = 0 using the quadratic formula. Finds real and complex roots, discriminant, vertex, and axis of symmetry.

Coefficients

Enter coefficients for ax² + bx + c = 0

Equation: 1x² − 5x + 6 = 0
Discriminant Δ = b² − 4ac
Δ = 1  → Two distinct real roots
FormulaExpression
Rootsx = (−b ± √(b²−4ac)) / 2a
DiscriminantΔ = b² − 4ac
Vertex x (h)h = −b / 2a
Vertex y (k)k = c − b²/4a
Sum of rootsx₁ + x₂ = −b/a
Product of rootsx₁ · x₂ = c/a

Solutions

Root x₁
3
Root x₂
2
PropertyValue
x₁3
x₂2
Discriminant (Δ)1
Vertex (h, k)(2.5, -0.25)
Axis of symmetryx = 2.5
y-intercept(0, 6)
Parabola opensUpward ↑ (minimum at vertex)

Discriminant Guide

ΔRootsGraph
Δ > 0Two distinct real rootsCrosses x-axis twice
Δ = 0One repeated real rootTouches x-axis once
Δ < 0Two complex conjugate rootsNever crosses x-axis

x² + 2x + 5 = 0 has two solutions, yet its parabola never touches the x-axis: the lowest point is (−1, 4), four units above it. The calculator reports the roots as −1 + 2i and −1 − 2i, and that −1 is exactly the x-coordinate of the vertex. This is no coincidence, and seeing roots, vertex and discriminant side by side makes the pattern easy to spot.

Quadratic formula, vertex and a full worked solution

For ax² + bx + c = 0 with a ≠ 0, the roots are x = (−b ± √(b² − 4ac)) ÷ 2a. The quantity under the root, Δ = b² − 4ac, is the discriminant. Positive gives two real roots, zero gives one repeated root, and negative gives a complex pair written (−b ÷ 2a) ± (√(−Δ) ÷ 2a)i. The page treats any Δ within 1e-10 of zero as zero, to absorb floating-point noise.

The vertex sits at h = −b ÷ 2a and k = c − b² ÷ 4a, and the axis of symmetry is the line x = h. The two roots are mirror images across that line, so their average is h, which is why the real part of a complex pair equals h. Two quick checks apply to any answer: the roots add to −b ÷ a and multiply to c ÷ a. Outputs are rounded to 8 decimals.

Worked example: 2x² − 3x − 5 = 0, so a = 2, b = −3, c = −5. Δ = (−3)² − 4 × 2 × (−5) = 9 + 40 = 49 and √49 = 7. Then x₁ = (3 + 7) ÷ 4 = 2.5 and x₂ = (3 − 7) ÷ 4 = −1. The check passes: 2.5 + (−1) = 1.5 = −b ÷ a, and 2.5 × (−1) = −2.5 = c ÷ a. The vertex is h = 3 ÷ 4 = 0.75 and k = −5 − 9 ÷ 8 = −6.125. Because a is positive, the parabola opens upward with its minimum at (0.75, −6.125) and crosses the y-axis at (0, −5).

How to Use This Calculator

  1. Enter a, the x² coefficient. If it is 0 the page tells you the equation is linear and stops.
  2. Enter b and c. Negative numbers work, so type the minus sign when the coefficient is negative.
  3. Check the coloured discriminant box: green for two real roots, yellow for a repeated root, red for complex roots.
  4. Read the roots in the cards and in the Solutions table, along with the vertex, axis of symmetry, y-intercept and whether the parabola opens up or down.

Frequently Asked Questions

My equation is not in standard form. What do I enter?

Move everything to one side first. 3x² = 12 − x becomes 3x² + x − 12 = 0, so a = 3, b = 1, c = −12, which gives Δ = 145.

What do I enter when a term is missing?

Use 0 for that coefficient. For x² − 9 = 0, set b = 0 and c = −9, and the roots come out as 3 and −3.

Why does a negative a show roots like 0 + -1i?

The page divides the imaginary part by 2a, so when a is negative the sign sits inside the number and a line can read 0 + -1i. The pair is still correct, just awkwardly written, and the second root reads 0 − -1i.

Are irrational roots exact?

No. x² − 2 = 0 returns 1.41421356 and −1.41421356, rounded to 8 decimals. The exact values are ±√2.

What if a is 0?

Then there is no x² term and the equation is linear. Solve bx + c = 0 directly as x = −c ÷ b.

How do I use it for a ball thrown upward?

Set height to zero in h = −4.9t² + 20t + 1.5, so a = −4.9, b = 20, c = 1.5. Δ = 429.4 and the roots are t = −0.07367031 and t = 4.15530296. Discard the negative time; the ball lands after about 4.16 seconds.