Skip to content
Calixo

Quadratic Equation Calculator

Solve ax² + bx + c = 0 for its real roots, instantly — using the quadratic formula, one of algebra's most foundational tools.

Inputs

Coefficient of x².

Coefficient of x.

Constant term.

Paste this into any page — the widget stays live and updates automatically as this calculator improves. Using WordPress or Notion? See the embed guide.

Saved Scenarios

— select 2+ to compare
Inputs updated · Results recalculated · Just now

x₁

2.000

x₂

1.000

Discriminant

1.00

Spark says

How it's calculated
A student writes mathematical notes in a notebook using a pen, focus on studying.
Photo by Louis Bauer on Pexels
Close-up view of a blackboard filled with complex mathematical equations and formulas.
Photo by Vitaly Gariev on Pexels

Formula

x=b±b24ac2ax = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}
a, b, c
— Coefficients of ax² + bx + c = 0

What is the Quadratic Equation Calculator?

A quadratic equation has the form ax² + bx + c = 0. The quadratic formula solves it directly using the coefficients a, b and c.

Use this when solving a quadratic equation for coursework or a technical problem, checking a manually worked quadratic formula solution, or exploring how changing coefficients affects the number and value of a quadratic's roots.

How to use it

  1. 1 Enter the coefficient of x² (a).
  2. 2 Enter the coefficient of x (b).
  3. 3 Enter the constant term (c).

Understanding Quadratic Equation Calculator

The quadratic formula is one of the oldest continuously-used problem-solving tools in mathematics, with methods for solving quadratic-type equations tracing back thousands of years to ancient Babylonian mathematicians, long before algebraic notation as we know it today existed — a testament to how fundamental and recurring this specific type of problem is across practical and theoretical mathematics alike.

The formula's structure — particularly the discriminant, the expression under the square root — carries genuinely important information beyond just being a step in the calculation. The discriminant (b² minus 4ac) determines the fundamental character of the equation's solutions before any further calculation is even needed: a positive discriminant guarantees two distinct real roots (since the square root of a positive number is a real, well-defined value, producing two different results when added to and subtracted from -b), a discriminant of exactly zero produces one repeated real root (since adding and subtracting zero from -b gives the identical result both times, meaning the two roots coincide), and a negative discriminant means no real roots exist at all — the square root of a negative number isn't a real number, requiring the complex number system (involving the imaginary unit i) to express the true solutions.

This geometric meaning connects directly to graphing: a quadratic equation's solutions are exactly the x-values where its corresponding parabola (the graph of y = ax² + bx + c) crosses the x-axis. A positive discriminant means the parabola crosses the x-axis at two distinct points — two real roots. A zero discriminant means the parabola's vertex touches the x-axis at exactly one point without crossing through it — one repeated root. A negative discriminant means the parabola never touches the x-axis at all, staying entirely above or entirely below it — no real roots, since there's genuinely no real x-value where the function's output equals zero. Understanding this graphical connection makes the discriminant's three cases far more intuitive than treating them as an abstract algebraic rule to memorize separately from any visual meaning.

Quadratic equations show up constantly in real-world modeling precisely because many important physical and mathematical relationships are naturally quadratic in structure. Projectile motion under gravity follows a quadratic relationship between height and time, which is why solving for when a thrown object hits the ground is a classic quadratic equation application. Area optimization problems (finding the dimensions that maximize or achieve a target area for a rectangular space with a fixed perimeter, for instance) frequently reduce to quadratic equations, since area involves multiplying two related linear dimensions together. Even outside physics and geometry, quadratic relationships appear throughout economics, engineering, and any field involving a relationship where one quantity depends on the square of another — which is exactly why the quadratic formula, despite its ancient origins, remains one of the most consistently useful and widely taught tools in all of algebra.

Worked examples

Advantages

  • Instantly computes both roots (when they exist) directly from the three coefficients.
  • Shows the discriminant explicitly, revealing at a glance how many real roots the equation has.
  • Handles any valid combination of coefficients, avoiding manual arithmetic errors in a formula with several steps.
  • Useful for verifying manually worked solutions or exploring how coefficient changes affect the roots.

Limitations

  • Only real roots are shown — when the discriminant is negative, the true roots are complex numbers.
  • Requires a nonzero coefficient for the x² term (a), since a = 0 makes the equation linear rather than quadratic.

Common mistakes

  • ⚠️ Entering a = 0, which makes the equation linear, not quadratic — division by zero will produce an invalid result.
  • ⚠️ Misreading the discriminant's sign implications, forgetting that a negative discriminant means no real roots exist (only complex ones), not simply 'no solution' in an unqualified sense.
  • ⚠️ Sign errors when identifying b and c from a word problem or application, since a small sign mistake in the original setup propagates through the entire quadratic formula calculation.

Tips

  • 💡 Double-check that a isn't zero before solving — a zero coefficient on the x² term means the equation is actually linear, not quadratic, and this calculator's formula doesn't apply.
  • 💡 Use the discriminant's sign as a quick sanity check before computing the full roots: positive means two real roots, zero means one repeated root, negative means no real roots.
  • 💡 When translating a word problem into coefficients, double-check the sign of each term carefully, since sign errors are a very common source of incorrect quadratic formula results.
  • 💡 For a negative discriminant, remember the true roots exist but are complex numbers — this calculator doesn't display them, but they're mathematically valid solutions in the complex number system.

Real-life uses

  • Solving a quadratic equation for coursework or a technical problem
  • Checking a manually worked quadratic formula solution
  • Exploring how changing coefficients affects the number and value of a quadratic's roots
  • Modeling problems involving projectile motion, area optimization, or other quadratic relationships

Frequently asked questions

What does the discriminant tell you?

Its sign tells you how many real roots exist: positive means two, zero means one repeated root, and negative means none (only complex roots).

How does the discriminant relate to the equation's graph?

A quadratic's solutions are where its parabola crosses the x-axis — a positive discriminant means two crossing points, a zero discriminant means the parabola's vertex just touches the axis at one point, and a negative discriminant means the parabola never touches the axis at all.

What happens if I enter a = 0?

The equation becomes linear rather than quadratic, and the quadratic formula's division by 2a becomes division by zero, producing an invalid result — this calculator is specifically designed for genuinely quadratic equations where a is nonzero.

Why do quadratic equations show up in projectile motion problems?

An object's height under gravity follows a naturally quadratic relationship with time, which is why solving for when a thrown or launched object returns to the ground is a classic real-world application of the quadratic formula.

Are complex roots 'real' solutions in any sense?

Yes — when the discriminant is negative, the equation genuinely has no real-number solutions, but it does have valid complex-number solutions (involving the imaginary unit i), which are mathematically legitimate even though this calculator only displays real roots.