Home › Calculators › Quadratic Equation Solver

Quadratic Equation Solver

Solve an equation of the form ax² + bx + c = 0 in seconds. Enter a, b and c and this free quadratic equation solver finds the real or complex roots, showing the discriminant so you understand exactly how it arrived at the answer — all privately in your browser.

x = 2, x = 1

What is a quadratic equation solver?

A quadratic equation solver finds the values of x that make an equation of the form ax² + bx + c = 0 true. It uses the quadratic formula x = (−b ± √(b² − 4ac)) / 2a, where a, b and c are the coefficients of the quadratic, linear and constant terms. The calculator evaluates the discriminant — b² − 4ac — which tells you whether the roots are real, repeated or complex.

The formula's behaviour depends entirely on the discriminant. If it is positive, there are two distinct real roots; if it is zero, there is one repeated real root; and if it is negative, the roots are complex numbers with an imaginary part. For example, x² − 3x + 2 has a discriminant of 1, giving the roots 2 and 1.

This tool runs locally in your browser, showing the discriminant and the roots for any equation you type.

How to use the quadratic equation solver

  1. Enter the coefficient a of the x² term.
  2. Enter the coefficient b of the x term.
  3. Enter the constant c.
  4. Click Solve to see the discriminant and the roots.

Example

Enter a = 1, b = −3 and c = 2. The discriminant is (−3)² − 4(1)(2) = 1, which is positive, so there are two real roots: 2 and 1. Enter a = 1, b = 2, c = 5 and the discriminant becomes −16, so the roots are complex.

Who is this quadratic equation solver for?

A quadratic equation solver finds the roots of any equation in the form ax² + bx + c = 0 using the quadratic formula. It is a staple in classrooms and coursework.

Quadratic equation table

Using the quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a, these are the roots for a few common equations:

EquationabcDiscriminantRoots
x² − 5x + 6 = 01−561.002.00, 3.00
x² − 7x + 10 = 01−7109.002.00, 5.00
x² + 2x + 1 = 01210.00−1.00 (one root)
2x² − 3x + 1 = 02−311.000.50, 1.00
3x² − 10x + 3 = 03−10364.000.33, 3.00

Common use cases

Pro tips

FAQ

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) / 2a, used to find the roots of any equation of the form ax² + bx + c = 0.

What do the three discriminant cases mean?

A positive discriminant gives two real roots, zero gives one repeated real root, and a negative discriminant gives two complex roots.

What if a is zero?

The equation is no longer quadratic — it becomes linear. The calculator tells you to enter a non-zero value for a.

What is the discriminant?

It is b² − 4ac, the part of the quadratic formula under the square root that determines the nature of the roots.

Can it solve complex roots?

Yes. When the discriminant is negative, the calculator returns complex roots with an imaginary part.

Is this calculator free?

Yes, it is completely free with no signup, and it runs entirely in your browser.

Does it show the working?

It shows the discriminant so you can see how the nature of the roots was determined.

What are the roots used for?

Roots are the x-intercepts of the parabola, where the function crosses or touches the x-axis.

How accurate are the results?

Roots are shown to four decimal places, which is plenty precise for most problems.

Related searches

quadratic equation solver, quadratic equation solver for students, quadratic equation solver for teachers, quadratic equation solver for college, what is quadratic equation, how to calculate quadratic equation, quadratic equation formula, quadratic equation chart, quadratic equation table, quadratic formula, discriminant, find roots of quadratic, solve quadratic equation, parabola

Related tools