Quadratic Equation Calculator

Solve ax² + bx + c = 0 using the quadratic formula, with the discriminant, vertex, axis of symmetry and complex roots when they occur.

How to use this calculator

  1. 1Rearrange your equation into the form ax² + bx + c = 0 first — everything on one side, zero on the other.
  2. 2Enter the three coefficients, including their signs.
  3. 3The discriminant tells you what kind of answer to expect before you read the roots.

How the calculation works

x = (−b ± √(b² − 4ac)) / 2a
a
Coefficient of x², must not be zero
b
Coefficient of x
c
The constant term
b² − 4ac
The discriminant, which determines how many real roots exist

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

The vertex sits at x = −b/2a, exactly halfway between the two roots when they are real.

Vieta’s formulas provide a quick check: the roots sum to −b/a and multiply to c/a.

Worked example

x² − 3x − 10 = 0

  1. 1.a = 1, b = −3, c = −10.
  2. 2.Discriminant = (−3)² − 4(1)(−10) = 9 + 40 = 49.
  3. 3.√49 = 7, so x = (3 ± 7) ÷ 2.
  4. 4.That gives x = 5 and x = −2. Check: 5 × (−2) = −10 = c/a, and 5 + (−2) = 3 = −b/a. ✓

Result: x = 5 or x = −2

What a quadratic equation describes

A quadratic equation is any equation that can be rearranged into the form ax² + bx + c = 0, where a is not zero. The defining feature is the x² term — it is what makes the graph of the equation a parabola, a symmetric curve that opens either upward or downward, rather than the straight line produced by an equation with only x.

Solving the equation means finding the value or values of x where that curve crosses the horizontal axis — the points where the expression equals exactly zero. Depending on the shape of the parabola, there can be two such crossing points, one, or none at all, and the discriminant is what tells you which case you are in before you finish the calculation.

Where quadratics show up in the real world

The shape of a parabola turns out to describe a surprising number of real, physical and financial situations.

  • Projectile motionthe height of a thrown or launched object over time follows a quadratic curve, because gravity accelerates it downward at a constant rate. This is the math behind "when does the ball hit the ground" questions.
  • Business and profit optimizationwhen raising a price increases revenue per sale but reduces the number of sales, total revenue often follows a curve with a single maximum point — finding it is a quadratic problem.
  • Area problemsquestions like "what dimensions of a rectangular garden give the largest area for a fixed length of fencing" reduce to a quadratic equation.
  • Engineering and designthe shape of satellite dishes, car headlight reflectors and suspension bridge cables are based on parabolic curves, for reasons related to how they focus or distribute force.

Reading the discriminant before you solve

The expression under the square root in the quadratic formula, b² − 4ac, is called the discriminant, and its sign alone tells you what kind of answer to expect. A positive discriminant means the parabola crosses the x-axis twice, giving two distinct real roots. A discriminant of exactly zero means the parabola just touches the axis at a single point — its vertex — giving one repeated root. A negative discriminant means the parabola never reaches the axis at all, and the two roots become a complex conjugate pair rather than real numbers.

For a problem describing something physical, a negative discriminant is usually a meaningful result in itself: it says the scenario in question never actually happens, at least not within the real numbers being modeled — a ball thrown too gently to reach a given height, for instance, rather than a mistake in the calculation.

A quick way to check your answer

Two shortcuts, known as Vieta’s formulas, let you sanity-check a pair of roots without redoing the whole calculation. The two roots always add up to −b/a, and they always multiply to c/a. After solving x² − 3x − 10 = 0 to get roots of 5 and −2, it takes a moment to confirm: 5 + (−2) = 3, which matches −b/a = −(−3)/1 = 3, and 5 × (−2) = −10, which matches c/a = −10/1. If either check fails, an arithmetic slip happened somewhere upstream.

A brief history of solving quadratics

Problems that amount to quadratic equations are far older than the algebraic notation used to solve them today. Babylonian mathematicians were solving problems equivalent to quadratics using geometric methods on clay tablets roughly 4,000 years ago, long before anyone wrote an equation using symbols like x, + or =.

The systematic method taught in schools today — essentially "completing the square" turned into a formula — was formalized much later, and the word "algebra" itself comes from "al-jabr," a term used in the title of a 9th-century mathematical treatise. Modern symbolic notation, with letters standing in for unknown and known quantities, is more recent still, mostly a product of 16th- and 17th-century European mathematics.

What this assumes, and where it stops

Assumptions

  • The equation is written in standard form with all terms moved to one side.

Limitations

  • Only handles second-degree polynomials. Cubics and higher need different methods.
  • For very large or very small coefficients, floating-point subtraction in the discriminant can lose precision. The roots remain accurate to about 12 significant figures for typical inputs.

Common questions

What does the discriminant tell me?

How many times the parabola meets the x-axis. Positive means two crossings, zero means it just touches at the vertex, negative means it never touches and the roots are complex. You can read this off before doing the rest of the calculation.

What do complex roots mean in practice?

That the parabola has no real x-intercepts. For a physical problem — the time a ball hits the ground, say — complex roots usually mean the scenario never happens: the ball never reaches that height. Mathematically the roots are still perfectly valid, just not on the real number line.

Formula and content last reviewed on .

Results are estimates for information only, not professional advice.

Report an error

Tools people commonly use alongside the quadratic equation calculator.

See all math calculators →