Quadratic Formula Calculator

Solve ax² + bx + c = 0 with the quadratic formula. See the discriminant worked out step by step, get real or complex roots, and find the vertex of the parabola. Everything runs in the browser.

  • Discriminant steps
  • Real and complex roots
  • Vertex and axis
  • Stays on your device

ax² + bx + c = 0

Step by step

  1. Start with ax² + bx + c = 0, where a = 1, b = -3, c = 2.
  2. Discriminant: D = b² − 4ac = (-3)² − 4 × 1 × 2 = 9 − 8 = 1.
  3. D > 0, so there are two distinct real roots.
  4. x = (−b ± √D) / 2a = (3 ± √1) / 2.
  5. Roots: 1 and 2.
  6. Vertex: x = −b / 2a = 1.5, y = c − b² / 4a = -0.25, so the vertex is (1.5, -0.25).

Numbers stay on this device. Nothing is uploaded, and there is no account.

The quadratic formula, x = (−b ± √(b² − 4ac)) / 2a, solves every quadratic equation. The discriminant b² − 4ac tells you what kind of answer to expect before you finish: two real roots, one repeated root, or a pair of complex roots.

Example: x² − 3x + 2 = 0 has a = 1, b = −3, c = 2. The discriminant is 9 − 8 = 1, so x = (3 ± 1) / 2, which gives x = 1 and x = 2. The vertex is at (1.5, −0.25), halfway between the roots.

To break a whole number into primes, use the factoring calculator. Simplify the radical in your answer with the square root calculator. Solve two or three linear equations at once with the system of equations calculator. Find the slope of a line between two points with the slope calculator, find the greatest common factor with the GCF calculator, or browse more tools in the Math hub.

How to use the quadratic formula calculator

  1. Write your equation as ax² + bx + c = 0.
  2. Enter a, b, and c. Negative numbers and decimals are fine; a cannot be 0.
  3. Follow the steps to see the discriminant and the formula worked out.
  4. Read the roots, the root type, and the vertex in the result panel.

Frequently asked questions

What is the quadratic formula?

For any equation ax² + bx + c = 0 with a not equal to 0, the solutions are x = (−b ± √(b² − 4ac)) / 2a. The ± gives the two roots: one using plus and one using minus.

What is the discriminant?

The discriminant is D = b² − 4ac, the part under the square root. If D is positive there are two different real roots, if D is 0 there is one repeated real root, and if D is negative there are two complex roots that are conjugates of each other.

How do complex roots work?

When D is negative, √D is imaginary: √D = i√|D|. The roots become −b/2a ± (√|D| / 2a)i. For x² + 2x + 5 = 0, D = 4 − 20 = −16, so x = (−2 ± 4i) / 2 = −1 ± 2i.

How do I find the vertex of a parabola?

The vertex of y = ax² + bx + c sits at x = −b / 2a. Plug that x back in to get y, which simplifies to c − b² / 4a. The vertical line x = −b / 2a is the axis of symmetry, and the parabola opens up when a > 0 and down when a < 0.

Why can't a be 0?

If a = 0 the x² term disappears and the equation becomes bx + c = 0, which is linear. A linear equation has at most one solution, x = −c / b, and the quadratic formula would divide by zero.

Should I use the quadratic formula or factoring?

Factoring is quicker when the roots are whole numbers or simple fractions, like x² − 3x + 2 = (x − 1)(x − 2). The quadratic formula always works, including irrational and complex roots. To factor a whole number into primes instead, use the factoring calculator.

Can you walk through an example?

Solve 2x² + 4x − 6 = 0. Here a = 2, b = 4, c = −6. D = 16 − 4 × 2 × (−6) = 16 + 48 = 64, and √64 = 8. So x = (−4 ± 8) / 4, giving x = 1 and x = −3. The vertex is at x = −4 / 4 = −1, y = −6 − 16 / 8 = −8.

Is my information saved or uploaded?

No. The quadratic formula calculator runs entirely in your browser. Numbers are not sent to a server or stored, and there is no account.