Skip to content

Quadratic Formula Calculator

This quadratic formula calculator solves ax² + bx + c = 0 for x. It finds real or complex roots, and also the vertex and axis of symmetry of the parabola, so you can see the graph’s turning point.

The equation is ax² + bx + c = 0. a cannot be 0.

Two real roots (x)

1 and 2

The discriminant 1 is positive, so x = (−b ± √Δ) ÷ 2a gives two different real roots.

Discriminant (b² − 4ac)
1
Vertex (x, y)
(1.5, -0.25)
Axis of symmetry
x = 1.5
Parabola opens
Upward

How to use this calculator

  1. 1 Write your equation as ax² + bx + c = 0 and enter a, b and c. The value of a cannot be 0.
  2. 2 Read the roots. The discriminant tells you whether they are two real numbers, one repeated number, or a complex pair.
  3. 3 Use the vertex and axis of symmetry to find the turning point of the graph.
  4. 4 Check the working line to see the discriminant and the sum used.

What is a quadratic equation?

A quadratic equation is an equation where the highest power of x is 2. The standard form is ax² + bx + c = 0. The letters a, b and c are called coefficients, and a must not be zero.

The roots, also called solutions, are the x values that make the equation true. Graphically, they are the points where the parabola crosses the x-axis.

Many real problems give quadratic equations. A ball thrown upwards follows a curved path, and a rectangle with a fixed area and a set perimeter can be described with one. Solving the equation tells you when or where the key value occurs.

How the quadratic formula works

The quadratic formula gives both roots in one step: x = (−b ± √(b² − 4ac)) ÷ 2a. The ± sign means you calculate two answers, one with plus and one with minus.

Most of the work happens under the square root. The expression b² − 4ac is the discriminant. It is written Δ, and it decides what kind of roots you get.

If you want to build a quadratic from its roots, you can reverse the process. Multiply the factors together, and the result is a quadratic with those roots. For a simpler route to the same answer, the factor calculator breaks numbers into their parts.

What the discriminant tells you
Discriminant ΔRootsGraph
PositiveTwo different real rootsCrosses the x-axis twice
ZeroOne repeated real rootTouches the x-axis once
NegativeTwo complex rootsNever crosses the x-axis

Vertex and axis of symmetry

Every parabola has a turning point, called the vertex. The axis of symmetry is the vertical line through the vertex. The graph is a mirror image on either side of it.

The axis sits at x = −b ÷ 2a. The vertex is at that x value, and its y value is −Δ ÷ 4a. If a is positive, the parabola opens upwards and the vertex is the lowest point. If a is negative, it opens downwards and the vertex is the highest point.

The roots are symmetrical around the axis too. When there are two real roots, the axis lies exactly halfway between them. That is a quick way to check your answer. For the slope of a straight line instead of a curve, use the slope calculator.

Tips for solving by hand

Quadratic sums are easy to get wrong with signs. These habits help:

  • Move every term to one side. The equation must equal zero before you read off a, b and c.
  • Keep the sign of b. If the middle term is −3x, then b is −3, not 3.
  • Work out the discriminant first. It tells you whether a real answer exists before you go further.
  • Check the roots. Substitute each one back into the original equation. It should give zero.
  • Try factoring for simple cases. If the numbers are small, the root calculator can help with the square root step.

The formula

Quadratic formula

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

a, b, c
the coefficients of ax² + bx + c = 0
±
gives two roots: one with plus, one with minus

Discriminant

Δ = b² − 4ac. Δ > 0: two real roots. Δ = 0: one repeated root. Δ < 0: complex roots.

Δ
the discriminant, the value under the square root

Vertex and axis of symmetry

Axis: x = −b ÷ 2a. Vertex: (−b ÷ 2a, −Δ ÷ 4a)

x
the x-coordinate of the turning point, which is also the axis of symmetry

Worked example

Solve x² − 3x + 2 = 0

  1. 1.Read the coefficients: a = 1, b = −3, c = 2.
  2. 2.Discriminant: (−3)² − 4 × 1 × 2 = 9 − 8 = 1, which is positive.
  3. 3.Roots: (3 ± √1) ÷ 2 = (3 ± 1) ÷ 2.
  4. 4.So x = (3 + 1) ÷ 2 = 2, or x = (3 − 1) ÷ 2 = 1.
  5. 5.Vertex: the axis is x = 3 ÷ 2 = 1.5, and y = −1 ÷ 4 = −0.25.

The roots are 1 and 2. The vertex is (1.5, −0.25), and the parabola opens upwards.

Frequently asked questions

How do I solve a quadratic equation?

Write the equation as ax² + bx + c = 0, then enter a, b and c. Apply the quadratic formula, which gives the roots for x. The calculator does the arithmetic and shows the discriminant.

What does a negative discriminant mean?

It means the parabola never crosses the x-axis, so there are no real roots. The roots are complex numbers written as p ± qi, where i is the square root of −1.

Why can a not be zero?

If a is 0, the x² term disappears and the equation becomes linear, so the quadratic formula does not apply. The formula also divides by 2a, which would be division by zero.

How do I find the vertex of a parabola?

The x-coordinate of the vertex is −b ÷ 2a. Put that value back into the equation to get the y-coordinate. The axis of symmetry is the vertical line through the vertex.

Is the quadratic formula the only way to solve these?

No. Factoring and completing the square also work, and they can be quicker for simple numbers. The formula works for every quadratic, so it is a safe method when factoring is hard.

Sources

Last reviewed by the GridCalculators team.