CALCULATOR TOOL

Quadratic Formula Calculator

Type the three coefficients of ax² + bx + c = 0 and the calculator applies the quadratic formula to return the roots, whether they are two real numbers, one repeated value or a complex pair, along with the discriminant and the vertex of the parabola. Algebra students use it to check homework, and it also settles physics questions such as when a thrown ball, described by a height equation, comes back down to the ground.

Solve ax² + bx + c = 0

About this tool

Enter the coefficients a, b and c of a quadratic equation ax² + bx + c = 0 and this calculator finds the roots with the quadratic formula. It handles two real roots, one repeated root and complex roots, and also shows the discriminant and the vertex of the parabola. It runs in your browser and nothing is stored.

How to use it

  1. Rearrange your equation so one side is zero, in the form ax² + bx + c = 0.
  2. Type the number in front of x² in the a box, the number in front of x in b, and the constant in c. Use 0 for a missing term and keep any minus signs.
  3. Read the result below the boxes: the roots, labelled x₁ and x₂ when there are two, then the discriminant and the vertex. It updates as you type.

The page opens with x² - 3x + 2 = 0, so a = 1, b = -3 and c = 2, which gives two real roots, x₁ = 2 and x₂ = 1, a discriminant of 1 and a vertex at (1.5, -0.25).

The quadratic formula

The solutions are x = (-b ± √(b² - 4ac)) / (2a). The part under the root, b² - 4ac, is called the discriminant, and it tells you what kind of roots to expect before you solve anything.

What the discriminant tells you

Worked example

Take 2x² + 5x - 3 = 0. Here a = 2, b = 5, c = -3, so the discriminant is 25 + 24 = 49 and its square root is 7. The roots are (-5 + 7) / 4 = 0.5 and (-5 - 7) / 4 = -3. The vertex is at x = -b / 2a = -1.25, where y = -6.125.

Other ways to solve a quadratic

Factoring is fastest when the numbers are small and the equation factors cleanly. Completing the square gives the vertex form and leads to the formula itself. The quadratic formula always works, which is why it is the safe default.

Things to watch out for

If a is zero the equation is linear, not quadratic, so there is only one solution, x = -c / b. If a and b are both zero, the calculator reports No solution, or that every x is a solution when c is also zero. Check the signs when you copy the coefficients, because a missing minus sign changes the answer. Roots shown to six decimals are rounded, so very close roots may look identical.

Frequently asked questions

What is the quadratic formula?

For ax^2 + bx + c = 0, the solutions are x = (-b plus or minus the square root of (b^2 - 4ac)) divided by 2a.

What is the discriminant?

The discriminant is b^2 - 4ac. If it is positive there are two real roots, if zero there is one repeated root, and if negative the roots are complex.

What if a is zero?

Then the equation is not quadratic. It becomes bx + c = 0 and has one solution, x = -c / b.

Can I enter fractions or decimals for a, b and c?

Decimals, yes, including negatives such as -2.75. The boxes are number fields, so a fraction like 1/2 cannot be typed; enter its decimal, 0.5, instead. For a value such as 1/3, type enough decimal places, because 0.33 gives slightly different roots from an exact third.