Quadratic Formula Calculator

Solve a quadratic equation and see its roots, discriminant and vertex.

Last updated 2026-11-26 · How we calculate this

Enter the Three Numbers

Any number except 0, from −1,000,000 to 1,000,000. For x² on its own, type 1; for −x², type −1.
Type 0 if there is no x term. Keep the sign with the number, so −5x is −5.
Type 0 if there is no number on its own. Move everything to one side first, so the equation ends in = 0.

Solutions

Enter a, b and c to solve the equation.

Answers are rounded to four decimal places, so a solution such as 1/3 shows as 0.3333, and roots such as √2 appear as decimals rather than in exact square-root form. The calculator solves one equation with real-number coefficients; it does not factor expressions or solve equations with higher powers of x.

Quick Answer

A quadratic equation ax² + bx + c = 0 is solved with x = (−b ± √(b² − 4ac)) ÷ 2a. For 2x² + 5x − 3 = 0, b² − 4ac = 25 + 24 = 49, whose square root is 7, so x = (−5 + 7) ÷ 4 = 0.5 or x = (−5 − 7) ÷ 4 = −3.

How to Use This Calculator

Write your equation in standard form, ax² + bx + c = 0, and type the three numbers a, b and c. The calculator shows every solution, real or complex, along with the discriminant that decides how many solutions there are and the vertex, the turning point of the parabola. A line in the results repeats the equation it solved, so you can check the signs went into the right boxes.

  1. Rearrange the equation so one side is 0.
  2. Type a, the number in front of x².
  3. Type b, the number in front of x, and c, the number on its own.
  4. Read the solutions, the discriminant and the vertex.

The Formula

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

The part under the square root, b² − 4ac, is the discriminant. If it is positive, its square root is a real number and the ± gives two different solutions. If it is zero, both signs give the same value, so there is one repeated solution. If it is negative, there is no real square root, and the solutions are a pair of complex numbers with an imaginary part. The vertex sits halfway between the two solutions, at x = −b ÷ 2a.

Worked Example

Two solutions: for 2x² + 5x − 3 = 0, the discriminant is 5² − 4 × 2 × (−3) = 49. Its square root is 7, so x = (−5 + 7) ÷ 4 = 0.5 and x = (−5 − 7) ÷ 4 = −3.

One solution: x² − 6x + 9 = 0 has a discriminant of 36 − 36 = 0, so the only solution is x = 6 ÷ 2 = 3. The equation is (x − 3)² = 0 in disguise.

Complex solutions: x² + 2x + 5 = 0 has a discriminant of 4 − 20 = −16. The square root of 16 is 4, so x = (−2 ± 4i) ÷ 2, which is −1 + 2i and −1 − 2i.

A thrown ball: a height of −16t² + 48t + 6 feet after t seconds reaches the ground (height 0) at t = 3.1202 seconds. The other solution, −0.1202, is before the throw, so it is ignored. The vertex shows the ball peaks at 42 feet after 1.5 seconds.

Frequently Asked Questions

What does the discriminant tell me?

It tells you what kind of answers to expect before you finish the working. Positive means two real solutions, zero means one repeated solution, and negative means two complex solutions and no point where the graph crosses the x-axis. A discriminant that is a perfect square, such as 49, also means the equation can be factored with whole numbers or simple fractions.

How do I put my equation into standard form?

Move every term to one side so the other side is 0, then order the terms by power. For 3x² = 7x − 2, subtract 7x and add 2 to both sides to get 3x² − 7x + 2 = 0, so a = 3, b = −7 and c = 2. Keep the signs with the numbers when you type them.

What does "no real solutions" mean?

The parabola never touches the x-axis, so no real number makes the equation true. In algebra classes that introduce imaginary numbers, the answers are written with i, the square root of −1, as in −1 + 2i. In a real-world problem, such as when a ball reaches a given height, no real solution means it never gets there.

What is the vertex of a parabola?

It is the turning point: the lowest point when a is positive, and the highest when a is negative. Its x-value, −b ÷ 2a, is also the line of symmetry, halfway between the two solutions. In projectile and profit problems the vertex gives the maximum height or the maximum profit and when it happens.

Why ignore one of the answers in a word problem?

The equation does not know what the numbers mean, so it can return values that make no sense in context, such as a negative time or a negative length. Check each solution against the situation and keep the ones that fit. In the thrown-ball example, −0.1202 seconds would be before the ball was thrown.

Can I solve it by factoring instead?

Yes, when the numbers allow it. 2x² + 5x − 3 factors as (2x − 1)(x + 3), giving x = 1/2 and x = −3, the same answers as the formula. Factoring is quicker for neat equations, but the formula works every time, including when the solutions are decimals or complex numbers.

Sources: OpenStax, Intermediate Algebra, 9.3 Solve Quadratic Equations Using the Quadratic Formula; OpenStax, College Algebra, 2.5 Quadratic Equations