Quadratic Equation Calculator

Solve any quadratic equation of the form ax² + bx + c = 0 and instantly see the roots, discriminant, and whether the roots are real or complex.

What is a Quadratic Equation Calculator?

A quadratic equation calculator solves equations of the form ax² + bx + c = 0, where a, b, and c are known numbers (with a not equal to zero) and x is the unknown value you're solving for. This type of equation is called "quadratic" because the highest power of the variable is two (from the Latin quadratus, meaning square).

Quadratic equations appear throughout algebra, physics, engineering, and economics — from calculating the trajectory of a thrown ball to finding the break-even point of a business, or determining the dimensions of a rectangular plot given its area. Solving one by hand involves factoring, completing the square, or applying the quadratic formula, all of which take time and are easy to get wrong with a sign error. This calculator applies the quadratic formula directly and returns the exact roots — real or complex — in a fraction of a second.

Formula Used in the Quadratic Equation Calculator

Every quadratic equation ax² + bx + c = 0 is solved using the quadratic formula:

x = (−b ± √(b² − 4ac)) ÷ 2a

The expression under the square root, b² − 4ac, is called the discriminant and it tells you what kind of roots the equation has before you even calculate them:

  • If the discriminant is greater than 0, the equation has two distinct real roots.
  • If the discriminant is exactly 0, the equation has one repeated real root (the parabola touches the x-axis at a single point).
  • If the discriminant is less than 0, the equation has two complex conjugate roots (the parabola never crosses the x-axis).

Detailed How to Use the Calculator (Step-by-Step)

  1. Identify the coefficients a, b, and c from your equation written in the standard form ax² + bx + c = 0.
  2. Enter the value of a in the first field. This cannot be zero, since an equation with a = 0 is linear, not quadratic.
  3. Enter the values of b and c in the remaining fields, including negative signs where relevant.
  4. Click "Solve" to instantly view the roots, the discriminant, and the nature of the roots.
  5. Click "Reset" to clear all fields and solve a new equation.

Detailed Example Calculation

Example — Solve x² − 3x + 2 = 0

Here a = 1, b = −3, c = 2.

Discriminant: d = b² − 4ac = (−3)² − 4(1)(2) = 9 − 8 = 1 (positive, so two real roots).

Roots: x = (−(−3) ± √1) ÷ 2(1) = (3 ± 1) ÷ 2

x₁ = (3 + 1)/2 = 2, and x₂ = (3 − 1)/2 = 1.

So the equation x² − 3x + 2 = 0 has roots x = 2 and x = 1, which matches the factored form (x−1)(x−2) = 0.

Detailed Benefits of Using This Calculator

  • Handles all three root types: Real distinct roots, repeated roots, and complex roots are all calculated correctly — something manual factoring often can't handle for the complex case.
  • Removes arithmetic errors: Sign mistakes under the square root or in the ± step are one of the most common student errors; the calculator eliminates them.
  • Shows the discriminant separately: This helps you understand not just the answer but why the equation behaves the way it does, which is valuable for exam preparation.
  • Saves time on repetitive problem sets: Students working through many practice problems can check answers instantly instead of re-deriving each one by hand.

Detailed Real Life Use Cases

  • Physics and projectile motion: The height of a thrown or launched object over time follows a quadratic equation, and finding when it hits the ground means solving for when height equals zero.
  • Business and economics: Revenue and profit functions are often quadratic in terms of price or quantity, and finding the break-even point or maximum profit involves solving a quadratic equation.
  • Engineering and construction: Calculating dimensions of a plot or structure given a fixed area and a relationship between length and width often reduces to a quadratic equation.
  • Computer graphics and game development: Collision detection between circular or parabolic paths frequently relies on solving quadratic equations in real time.

Detailed Tips for Accurate Calculations

  • Always write your equation in standard form (ax² + bx + c = 0) first, moving all terms to one side, before identifying a, b, and c.
  • Keep track of negative signs carefully — a wrong sign on b or c is the most common source of an incorrect discriminant.
  • If a = 0, the equation is linear, not quadratic, and should be solved as bx + c = 0 instead.
  • When the discriminant is negative, remember the roots are complex numbers, not "no solution" — the equation still has two valid mathematical roots.
  • For verification, you can substitute a calculated root back into the original equation; the left-hand side should evaluate to zero (or very close to it, accounting for rounding).

Frequently Asked Questions

Q.What is the standard form of a quadratic equation?

The standard form is ax² + bx + c = 0, where a, b and c are constants and a is not equal to zero.

Q.What happens if I enter a = 0?

The calculator shows a validation error because an equation with a = 0 is linear, not quadratic, and the quadratic formula cannot be applied.

Q.What does a negative discriminant mean?

A negative discriminant means the equation has no real roots — instead, it has two complex conjugate roots involving the imaginary unit i.

Q.Can this calculator solve equations with decimal coefficients?

Yes, the calculator accepts decimal values for a, b and c, not just whole numbers.

Q.What is the difference between roots and solutions of a quadratic equation?

They mean the same thing — the values of x that make the equation equal to zero are called both the roots and the solutions.

Q.Why do some quadratic equations have only one root?

When the discriminant equals zero, the two roots given by the quadratic formula are identical, so the equation is said to have one repeated (or 'double') root.

Q.Can the quadratic formula be used for any quadratic equation?

Yes, the quadratic formula works for every quadratic equation, regardless of whether it can be factored easily, which is why it's considered the most reliable solving method.

Q.How accurate are the results from this calculator?

Results are calculated using standard double-precision floating-point arithmetic and are rounded to four decimal places for readability.

Q.Is factoring faster than using this calculator?

Factoring can be faster for simple equations with whole-number roots, but it does not work for every equation, whereas the quadratic formula (and this calculator) always works.

Q.What is the vertex of a quadratic equation and does this calculator show it?

The vertex is the highest or lowest point of the parabola represented by the equation; this calculator focuses on finding the roots rather than the vertex.

Q.Does this tool work for equations with complex roots?

Yes. When the discriminant is negative, the calculator correctly returns the two complex roots in the form real ± imaginary i.

Related Calculators