Skip to content
Free math tool

Quadratic equation solver

Solve any equation of the form ax² + bx + c = 0 and see the parts that matter: the discriminant, both roots, the vertex and the axis of symmetry. Algebra students and teachers use it to check work.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

Coefficient of x²
Coefficient of x
Constant term

Result

Roots1/2 and -2
x1
1/2 ≈ 0.5
x2
-2
Root type
Two real rational roots
Discriminant
25
Vertex
(-3/4, -25/8) ≈ (-0.75, -3.125)
Axis of symmetry
x = -3/4
Opens
Upward, vertex is a minimum
Equation
2x² + 3x - 2 = 0

The discriminant is b² - 4ac. Decimals are rounded to 12 significant digits.

The short answer

Use the quadratic formula to solve ax^2 + bx + c = 0. The discriminant b^2 - 4ac tells you the kind of roots: positive gives two real roots, zero gives one repeated root, and negative gives two complex roots.

Formulax = (-b +/- sqrt(b^2 - 4ac)) / (2a), with discriminant D = b^2 - 4ac

Worked exampleFor 2x^2 + 3x - 2 = 0 the discriminant is 25, so the roots are 1/2 and -2, and the vertex is (-3/4, -25/8).

Example

Input
a
2
b
3
c
-2
Result
Roots1/2 and -2
x1
1/2 ≈ 0.5
x2
-2
Root type
Two real rational roots
Discriminant
25
Vertex
(-3/4, -25/8) ≈ (-0.75, -3.125)
Axis of symmetry
x = -3/4
Opens
Upward, vertex is a minimum
Equation
2x² + 3x - 2 = 0

The discriminant is b² - 4ac. Decimals are rounded to 12 significant digits.

How to use the quadratic equation solver

  1. Type the coefficients a, b and c for ax² + bx + c = 0.
  2. The roots appear first, then the discriminant, vertex and axis of symmetry. Results update as you type, and Run also works.
  3. Press Copy result or Download to keep the solution.
  4. Press Reset to go back to the example 2x² + 3x - 2 = 0.

How it works

Roots come from the quadratic formula x = (-b ± √(b² - 4ac)) / (2a). The discriminant b² - 4ac decides whether there are two real roots, one repeated root or two complex roots.

Coefficients are scaled to whole numbers first, so rational roots are shown as exact fractions. Other roots get an exact form with a simplified square root, such as (2 ± √6) / 2, plus decimals.

The vertex is (-b / 2a, c - b² / 4a) and the axis of symmetry is x = -b / 2a.

The roots are listed first. If a is 0, the equation is solved as linear. Coefficients may have up to 6 decimal places and a size up to 1e9.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

What does the discriminant tell you?

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

Can this solver give complex roots?

Yes. When the discriminant is negative it shows the roots as p ± qi, in exact form such as (-3 ± i√23) / 4 and as decimals.

What happens if a = 0?

The equation is no longer quadratic. The tool solves bx + c = 0 instead, or tells you if there is no solution or every x works.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools