Skip to content
Toolcroft

Math Calculators

Quadratic Equation Solver

Solve ax² + bx + c = 0 for real or complex roots. Shows the discriminant, both roots, the vertex of the parabola, and step-by-step solution. Free, runs in your browser.

1x² + -3x + 2 = 0

Solution

Two real roots
x₁
2
x₂
1
Discriminant (b²−4ac)
1
Vertex x (h)
1.5
Vertex y (k)
-0.25
Show step-by-step solution

ax² + bx + c = 0

1x² + -3x + 2 = 0

Discriminant = b² − 4ac = -3² − 4 × 1 × 2 = 1

√discriminant = 1

x = (−-3 ± 1) / (2 × 1)

x₁ = 2

x₂ = 1

Vertex: (1.5, -0.25)

Parabola: 1x² + -3x + 2

Loading chart…
Quadratic parabola
xf(x) = 1x² + -3x + 2
-3.500024.7500
-2.388914.8735
-1.27787.4660
-0.16672.5278
0.94440.0586
2.05560.0586
3.16672.5278
4.27787.4660
5.388914.8735
6.500024.7500

The quadratic formula

For any equation of the form ax² + bx + c = 0, the solutions are:

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

Interpreting the discriminant

Discriminant (b²−4ac)Root type
Positive (> 0)Two distinct real roots
Zero (= 0)One repeated real root (tangent to x-axis)
Negative (< 0)Two complex conjugate roots (no real x-intercepts)

The vertex of the parabola

The vertex (h, k) is the turning point of the parabola y = ax² + bx + c:

h = −b / 2a      k = c − b² / 4a

When a > 0 the parabola opens upward and the vertex is a minimum. When a < 0 it opens downward and the vertex is a maximum.

Completing the square

The quadratic formula is derived by completing the square on ax² + bx + c = 0:

  1. Divide through by a: x² + (b/a)x + c/a = 0
  2. Move the constant: x² + (b/a)x = −c/a
  3. Add (b/2a)² to both sides: (x + b/2a)² = (b² − 4ac) / 4a²
  4. Take the square root and solve for x to get the quadratic formula.

Understanding this derivation helps students connect the formula to the structure of the parabola.

Worked examples

EquationDiscriminantRoots
x² − 5x + 6 = 025 − 24 = 1 > 0x = 2, x = 3 (two real roots)
x² − 4x + 4 = 016 − 16 = 0x = 2 (repeated root)
x² + x + 1 = 01 − 4 = −3 < 0x = (−1 ± i√3) / 2 (complex pair)

Graphing connection

Every part of ax² + bx + c corresponds to a geometric property of the parabola:

  • The roots (solutions) are the x-intercepts — where the parabola crosses the x-axis.
  • The vertex formula (h = −b/2a) gives the turning point and axis of symmetry.
  • The sign of a determines orientation: a > 0 opens upward (minimum); a < 0 opens downward (maximum).