Calculateus

Quadratic Equation Solver

Solve any quadratic equation ax² + bx + c = 0 for its real or complex roots.

Result

x₁
2
x₂
1
20151050y = ax² + bx + c - -1.5: 9y = ax² + bx + c - -0.75: 5y = ax² + bx + c - 0: 2y = ax² + bx + c - 0.75: 0y = ax² + bx + c - 1.5: -0y = ax² + bx + c - 2.25: 0y = ax² + bx + c - 3: 2y = ax² + bx + c - 3.75: 5y = ax² + bx + c - 4.5: 9-1.501.534.5

About the Quadratic Calculator

Solving a quadratic equation by hand means either factoring (which doesn't always work cleanly) or applying the quadratic formula (which handles every case). Our Quadratic Equation Solver applies that formula to find the roots of any equation in the form ax² + bx + c = 0.

How It Works

The calculator computes the discriminant (b² − 4ac) to determine the nature of the roots - two real roots if positive, one repeated real root if exactly zero, or two complex roots if negative - then applies the quadratic formula accordingly.

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

Formula & Methodology

The quadratic formula is derived by completing the square on the general equation ax² + bx + c = 0 - a systematic algebraic process that works for every quadratic equation, unlike factoring, which only produces clean results when the roots happen to be simple rational numbers. The discriminant (the b² − 4ac portion under the square root) determines what kind of roots exist before any further calculation: positive means two distinct real roots, zero means exactly one repeated real root (the parabola just touches the x-axis), and negative means two complex conjugate roots (the parabola never crosses the x-axis at all).

Step-by-Step: Calculating It By Hand

  1. 1Identify coefficients a, b, and c from the equation in the form ax² + bx + c = 0.
  2. 2Calculate the discriminant: b² minus 4ac.
  3. 3If the discriminant is zero or positive, take its square root; if negative, note the imaginary component.
  4. 4Apply the full formula, calculating both the plus and minus versions to find both roots.

Examples

Two real roots

x² − 3x + 2 = 0 has a positive discriminant, producing two real roots: x = 2 and x = 1.

Complex roots

An equation with a negative discriminant, like x² + x + 1 = 0, has no real solutions - the calculator returns the two complex roots instead.

Advantages

  • Handles all three cases - two real roots, one repeated root, or complex roots - automatically
  • Uses the reliable, universal quadratic formula rather than factoring, which doesn't always work cleanly
  • Validates that 'a' isn't zero, since that would make the equation linear, not quadratic
  • Fast, precise results for any coefficient values

Common Mistakes

  • Entering a = 0, which turns the equation linear and makes the quadratic formula inapplicable
  • Sign errors when entering negative coefficients for b or c
  • Expecting only real number solutions when the discriminant is negative - complex roots are a valid, correct answer
  • Confusing the two roots' signs when the discriminant produces a plus-or-minus result

Edge Cases to Watch For

  • If a equals 0, the equation isn't actually quadratic - it becomes linear, and the quadratic formula doesn't apply.
  • A discriminant of exactly zero produces a single repeated root, meaning both root values calculated will be identical.
  • A negative discriminant produces genuinely valid complex roots (involving the imaginary unit i) - this is a correct mathematical answer, not an error.
  • Very large or very small coefficients can introduce floating-point precision issues in the discriminant calculation for edge-case equations.

Common Use Cases

  • Algebra homework and coursework involving quadratic equations
  • Physics and engineering problems modeled by quadratic relationships
  • Verifying manually factored or completed-square solutions
  • Understanding the relationship between the discriminant and root type
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

Why did I get complex (imaginary) roots?

That happens when the discriminant (b² − 4ac) is negative - the parabola never crosses the x-axis, so there's no real solution, only complex ones involving i = √−1.

Conclusion

The quadratic formula works for every quadratic equation, unlike factoring, which only works cleanly for some - this handles all three root-type cases automatically and correctly every time.