Quadratic Equation Calculator
A quadratic equation has the form ax² + bx + c = 0, and its solution depends on the discriminant (Δ = b² − 4ac): if Δ > 0 there are two distinct real roots, if Δ = 0 there is a single repeated root, and if Δ < 0 there are no real roots at all — the roots are complex numbers.
This calculator finds the discriminant and the roots, reports the vertex and the axis of symmetry of the parabola, explains the solution step by step in plain English, and plots the graph. When Δ < 0 it also gives the complex roots, which makes it ideal for checking homework and analyzing functions.
Formula
ax² + bx + c = 0 (a ≠ 0) Δ = b² − 4ac x₁,₂ = (−b ∓ √Δ) / (2a) Vertex: x = −b / 2a, y = c − b² / 4a Vieta: x₁ + x₂ = −b/a, x₁ × x₂ = c/a
Most errors come from signs: when b is negative, −b becomes positive, and b² is always positive. For b = −5, for example, Δ = (−5)² − 4ac uses (−5)² = 25, not −25.
How to Calculate
- Rewrite your equation in the form ax² + bx + c = 0 — move every term to the left-hand side.
- Enter the coefficients a, b, and c with their signs (a ≠ 0).
- Read the discriminant, the roots, and the vertex in the results section.
- Copy the step-by-step solution from the interpretation line into your notes, and confirm the roots visually on the graph.
Worked Examples
Two real roots: x² − 5x + 6 = 0
Δ = b² − 4ac = (−5)² − 4 × 1 × 6 = 1. Since Δ > 0 there are two distinct real roots: x₁ = 2 and x₂ = 3. The vertex is (2.50; -0.25) and the axis of symmetry is x = 2.50.
Discriminant (Δ): 1 · Roots: x₁ = 2, x₂ = 3 · Vertex: (2.50; -0.25)
Repeated root: x² + 4x + 4 = 0
Δ = b² − 4ac = 4² − 4 × 1 × 4 = 0; from the identity (x + 2)² = 0 the repeated root is x = -2. The parabola is tangent to the x-axis at the vertex (-2; 0).
Discriminant (Δ): 0 · Repeated (double) root: x₁ = x₂ = -2 · Vertex: (-2; 0)
No real roots: x² + x + 1 = 0
Δ = b² − 4ac = 1² − 4 × 1 × 1 = -3 is negative: the parabola never crosses the x-axis, so there is no real root. The complex roots are x = -0.500 ± 0.866i and the vertex is (-0.50; 0.75).
Discriminant (Δ): -3 · Complex roots: x = -0.500 ± 0.866i · Vertex: (-0.50; 0.75)