QwikCalculator

Quadratic Formula Calculator

Solutions

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

About the Quadratic Formula Calculator

A quadratic equation has the form ax² + bx + c = 0, where a isn’t zero. Its solutions, called roots, are the x-values where the parabola crosses the x-axis. Quadratics appear in physics, engineering, business and geometry, for example when finding the path of a thrown object.

This quadratic formula calculator solves any quadratic equation. Enter the coefficients a, b and c and it shows the roots, whether they are two real solutions, one repeated solution or two complex solutions, along with the discriminant and the vertex of the parabola.

How to use the Quadratic Formula Calculator

  1. Write your equation in the form ax² + bx + c = 0.
  2. Enter a, b and c. Use a negative sign for negative values.
  3. Read the solutions, the discriminant and the vertex.
  4. Check the result by substituting a solution back into the equation.

The quadratic formula

  • x = (−b ± √(b² − 4ac)) ÷ (2a)
  • Discriminant D = b² − 4ac
  • D > 0: two real solutions
  • D = 0: one repeated real solution
  • D < 0: two complex solutions
  • Vertex: x = −b ÷ (2a), then y = a·x² + b·x + c

The expression under the square root, b² − 4ac, is called the discriminant. Its sign tells you what kind of roots to expect before you solve.

Quadratic equation examples

x² − 5x + 6 = 0 has a = 1, b = −5, c = 6. The discriminant is 25 − 24 = 1, so x = (5 ± 1) ÷ 2, which gives x = 2 and x = 3. The vertex is (2.5, −0.25).

x² + 2x + 5 = 0 has a discriminant of 4 − 20 = −16. That is negative, so the solutions are complex: x = −1 ± 2i.

2x² + 4x + 2 = 0 has a discriminant of 0, so there is one repeated solution, x = −1.

Other ways to solve a quadratic

  • Factoring is quickest when the numbers are friendly: x² − 5x + 6 = (x − 2)(x − 3).
  • Completing the square rewrites the equation as a perfect square and is how the quadratic formula is derived.
  • If a = 0, the equation isn’t quadratic. It becomes a straight line, bx + c = 0, with the single solution x = −c ÷ b.
  • Complex solutions come in pairs, a ± bi, and show that the parabola never touches the x-axis.

Frequently asked questions

What is the quadratic formula?

It is x = (−b ± √(b² − 4ac)) ÷ (2a). It gives the solutions of any equation of the form ax² + bx + c = 0.

What does the discriminant tell me?

Its sign tells you how many real solutions there are: two if it is positive, one if it is zero, none (two complex) if it is negative.

What if a is zero?

Then the equation isn’t quadratic. The calculator asks for a non-zero a, because the quadratic formula divides by 2a.

What are complex solutions?

They involve i, the square root of −1. They appear when the discriminant is negative and mean the parabola doesn’t cross the x-axis.

What is the vertex of a parabola?

It’s the turning point: the lowest point if a is positive, the highest if a is negative. Its x-value is −b ÷ (2a).