Skip to content

How do you solve a quadratic equation?

Find the roots of ax² + bx + c = 0 and see the parabola behind them.

Roots

x = −1 or x = 3

x² − 2x − 3 = 0: the discriminant 16 is positive, so the parabola crosses the x-axis twice.

Key values as a table
Pointxy
Root−10
Root30
Vertex1−4
y-intercept0−3
Discriminant
b² − 4ac = 16
Vertex
(1, −4)
Axis of symmetry
x = 1
Vertex form
y = (x − 1)² − 4
Factored form
y = (x + 1)(x − 3)

Find the roots of ax² + bx + c = 0 and see the parabola behind them.

How to use

  1. Write your equation as ax² + bx + c = 0 and type a, b and c. A missing term has the coefficient 0, and x² alone has a = 1.
  2. Read the roots, the discriminant, the vertex and the factored form at once.
  3. Drag the vertex to move the parabola anywhere, and the point on the curve to make it wider or narrower. The roots and forms follow.

How it works

A quadratic equation asks where the parabola y = ax² + bx + c meets the x-axis. It can cross the axis twice, touch it once at its turning point, or miss it altogether, and that is why a quadratic has two, one or no real solutions.

The quadratic formula gives them all: x = (−b ± √(b² − 4ac)) / 2a. The part under the root, the discriminant D = b² − 4ac, decides which case you have: positive means two real roots, zero one double root, and negative two complex roots with an imaginary part. For x² − 2x − 3 = 0, D = 4 + 12 = 16, so x = (2 ± 4) / 2, which is −1 or 3.

The turning point, the vertex, lies halfway between the roots at x = −b / 2a, and the parabola is mirror-symmetric about that vertical line. Writing y = a(x − h)² + k (vertex form) or y = a(x − x₁)(x − x₂) (factored form) shows the same curve in another light. Results are rounded to six significant digits; whole-number coefficients also get the exact roots with square roots. Sources: OpenStax College Algebra 2e, sections 2.5 and 5.1.

Worked example

Solve 1x² − 2x − 3 = 0.

  1. Discriminant: D = b² − 4ac = (−2)² − 4 × 1 × (−3) = 16.
  2. Roots: x = (−b ± √D) ÷ 2a = (2 ± 4) ÷ (2 × 1), so x = −1 and x = 3.
  3. Vertex: x = −b ÷ 2a = 1, where y = −4.

x = −1 or x = 3; the parabola's lowest point is (1, −4).

Frequently asked questions

Can I enter an equation with terms on both sides?

Move all terms to one side first. For x² = 5x − 6, enter a = 1, b = −5 and c = 6.

What should I enter for a missing term?

Enter zero for its coefficient. For x² − 2 = 0, use a = 1, b = 0 and c = −2.

Can coefficients be fractions?

Enter their decimal values, or multiply the whole equation by a common denominator to get integer coefficients. Multiplying every term by the same nonzero number preserves the roots.

Why do I get complex roots when the graph has no x-intercepts?

Complex roots solve the equation but do not lie on the real x-axis. The graph shows only real x and y coordinates.

How can I check a root?

Substitute it for x in the original equation. The two sides should agree; a rounded decimal root may leave a small difference.

Send feedback