Home › Math › Quadratic Equation Solver

Quadratic Equation Solver

Solve ax² + bx + c = 0 with the quadratic formula. See the roots, discriminant, vertex and steps.

x² − 3x + 2 = 0

Enter the numbers a, b and c for ax² + bx + c = 0

Solutions

-

Discriminant (b² − 4ac)-
Factored form-
Vertex-
Axis of symmetry-
Parabola opens-
y-intercept-

Steps

What is a quadratic equation?

A quadratic equation is an equation that can be written as ax² + bx + c = 0, where a, b and c are numbers and a is not zero. The graph of a quadratic is a U-shaped curve called a parabola. The solutions, also called roots or zeros, are the values of x where the curve crosses the x-axis.

The quadratic formula

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

The part under the square root, b² − 4ac, is called the discriminant (D). It tells you what kind of roots to expect before you solve.

  • D > 0: two different real roots. The parabola crosses the x-axis twice.
  • D = 0: one repeated real root. The parabola just touches the x-axis.
  • D < 0: two complex roots. The parabola does not reach the x-axis.

Example

Solve x² − 3x + 2 = 0. Here a = 1, b = −3 and c = 2. The discriminant is (−3)² − 4 × 1 × 2 = 1. Then x = (3 ± 1) ÷ 2, so x = 2 or x = 1. The factored form is (x − 1)(x − 2).

Another example: x² + 2x + 5 = 0 has D = 4 − 20 = −16. The roots are complex: x = −1 ± 2i.

Vertex and axis of symmetry

Vertex x = −b ÷ 2a
Vertex y = c − b² ÷ 4a

The vertex is the turning point of the parabola. It is the lowest point when a is positive and the highest point when a is negative. The vertical line through it, x = −b ÷ 2a, is the axis of symmetry.

Other ways to solve

  • Factoring: find two numbers that multiply to c and add to b (when a = 1).
  • Completing the square: rewrite the equation as (x + p)² = q.
  • Graphing: read the x-intercepts from the parabola.

Good to know

  • If a = 0 the equation is not quadratic. It is linear, and the calculator solves it as bx + c = 0.
  • The roots add up to −b ÷ a and multiply to c ÷ a, which is a handy way to check your answer.
  • This calculator uses a numerically stable form of the formula, so answers stay accurate even when b is very large.

Related tools: Square Root Calculator, Exponent Calculator and Scientific Calculator.

Need another calculator?

Browse all calculators
Scroll to Top