Math & Science

Quadratic Formula Calculator

This quadratic formula calculator helps you solve quadratic equations of the form ax² + bx + c = 0. Enter your coefficients below to instantly calculate the discriminant, the real or complex roots, the factored form and key details about the parabola.

quadratic formula calculator showing roots and parabola vertex

Enter your equation coefficients

x² − 3x − 4 = 0

Solution

—
Discriminant (D)–
Factored form–
Vertex (Turning Point)–
Axis of Symmetry–
Y-Intercept–

How to use this quadratic formula calculator

  1. Enter coefficients a, b, and c from your equation in the form ax² + bx + c = 0.
  2. Click “Solve Equation” (or just start typing — the result updates automatically).
  3. Read the solution panel of the quadratic formula calculator for the roots, discriminant, factored form, vertex, axis of symmetry, and y-intercept.

What is the quadratic formula?

The quadratic formula is a universal algebraic method used to solve quadratic equations written in standard form ax² + bx + c = 0, where a is not equal to 0. The quadratic formula calculator applies it for you, using a numerically stable version so that small roots are not lost when b is much larger than a and c.

x = (−b ± √D) / (2a), where D = b² − 4ac

What does the discriminant tell you?

To calculate discriminant D lets you find out how many real roots a quadratic equation has before fully solving it. For a slower walkthrough with more worked examples, Khan Academy’s discriminant review covers the same three cases in detail.

Discriminant conditionSolution type
D > 0Two distinct real solutions
D = 0Exactly one repeated real solution
D < 0No real solutions (two complex solutions)

Finding the vertex of the parabola

The graph of any quadratic equation forms a parabola. The parabola vertex, or turning point, sits on the axis of symmetry x = −b / (2a). If a > 0, the parabola opens upward and the vertex is a minimum; if a < 0, it opens downward and the vertex is a maximum.

Step-by-step example

Solve x² − 3x − 4 = 0: here a = 1, b = −3, and c = −4.

D = (−3)² − 4(1)(−4) = 9 + 16 = 25

Since D > 0, the equation has two real solutions: x = (3 ± 5) / 2, which gives x = 4 or x = −1. The quadratic formula calculator also shows the factored form (x − 4)(x + 1), the vertex (1.5, −6.25) and the y-intercept (0, −4); these are the default values above.

Another example: no real solutions

Solve x² + 2x + 5 = 0: here a = 1, b = 2, and c = 5.

D = (2)² − 4(1)(5) = 4 − 20 = −16

Since D < 0, there are no real solutions — only two complex solutions, x = −1 ± 2i. Enter 1, 2 and 5 in the quadratic formula calculator to see both complex roots and the vertex (−1, 4).

A repeated root and the linear case

For x² − 2x + 1 = 0 the discriminant is 4 − 4 = 0, so there is exactly one repeated root, x = 1, and the factored form is (x − 1)². The vertex (1, 0) sits right on the x-axis. Because computers store decimals approximately, the quadratic formula calculator treats a discriminant that is zero up to rounding noise as exactly zero, so 0.1x² + 0.2x + 0.1 = 0 correctly gives the single root x = −1.

If you enter a = 0, the quadratic formula calculator solves the remaining linear equation bx + c = 0 instead: 2x − 4 = 0 gives x = 2. If a and b are both 0, it tells you whether every x is a solution (0 = 0) or none is.

Related tools: check a square root by hand with the square root calculator, convert fractional coefficients with the fractions calculator, or evaluate the parabola at any x with the scientific calculator.

Quadratic formula calculator accuracy and limits

This quadratic formula calculator rounds decimal results to six decimal places, which keeps the display readable without hiding meaningful precision. Very small or very large values are shown in scientific notation instead of being rounded to 0.

  • The equation preview above the input fields updates as you type, so you can double-check that a, b, and c are being read the way you intended before you rely on the result.
  • Complex roots are shown as (real part) ± (imaginary part)i — this calculator doesn’t simplify or plot complex roots on a graph.
  • If a = 0, the tool tells you the equation is linear and solves it as x = −c / b rather than forcing a quadratic solution.
  • You can type decimals with a point or a comma, and negative values with a normal minus sign.

Frequently Asked Questions

What if coefficient a equals 0?

If a = 0, the expression is no longer quadratic but linear (bx + c = 0), so the quadratic formula doesn’t apply. The quadratic formula calculator then solves bx + c = 0 directly.

What does a negative discriminant imply?

A negative discriminant means the parabola never crosses the real x-axis, so there are no real number solutions — only complex ones.

Can I input decimal values?

Yes. You can enter positive or negative decimal numbers freely for coefficients a, b, and c.

How do I solve a quadratic equation without a calculator?

Identify a, b, and c from the standard form, calculate the discriminant D = b² − 4ac, then substitute D into x = (−b ± √D) / (2a). The quadratic formula calculator does the same steps automatically and shows the discriminant along the way.

This quadratic formula calculator gives exact formulas evaluated in floating point, rounded to six decimals, based on your inputs.

Explore more tools on the CalcSwiftly homepage.

Reviewed by: CalcSwiftly · Last reviewed: