Quadratic Equation Calculator: Solve ax² + bx + c with the Quadratic Formula
Solve ax² + bx + c = 0 with real and complex roots
Try the calculator
Math runs in your browser. No sign-up.
Real roots only
x² has discriminant 1; the parabola has vertex at (2.5, -0.25).
This quadratic equation calculator solves ax² + bx + c = 0 using the quadratic formula. It provides both real or complex roots, the discriminant (b² − 4ac), and the parabola's vertex. The discriminant's sign determines the root type: positive for two distinct real roots, zero for one repeated real root, and negative for two complex conjugate roots.
This quadratic equation calculator provides a comprehensive solution for equations in the form ax² + bx + c = 0. By simply entering the coefficients a, b, and c, users can instantly find both real and complex roots, the discriminant (b² − 4ac), and the vertex of the corresponding parabola. The calculator clearly indicates whether there are two distinct real roots, one repeated real root, or two complex conjugate roots based on the discriminant's value. It's an essential tool for students, engineers, and scientists needing quick, accurate results and a clear understanding of quadratic behavior.
What is a quadratic equation?
Use this quadratic equation calculator to solve any equation of the form ax² + bx + c = 0 using the quadratic formula. Enter the three coefficients (a, b, and c) to instantly obtain the discriminant, both roots (whether real or complex conjugate pairs), and the parabola's vertex. This tool provides precise, four-decimal-place results, making it ideal for students tackling homework, engineers solving practical problems, and scientists performing calculations. Our methodology is rigorously aligned with standard college-algebra references and the authoritative definitions found on Wolfram MathWorld for the quadratic formula and discriminant interpretation, ensuring accuracy and reliability for all users.
The formula
- a — leading coefficient (must be non-zero)
- b — coefficient of x
- c — constant term
- Δ — discriminant b² − 4ac (sign determines root type)
Source: Quadratic formula (Bhāskara II, 12th century).
Worked examples
1Two distinct real roots
x² − 5x + 6 = 0. Discriminant = 25 − 24 = 1, positive. Roots: (5 ± 1)/2 = 3 and 2. The parabola y = x² − 5x + 6 crosses the x-axis at x = 2 and x = 3, with its vertex at (2.5, −0.25).
2Repeated real root
x² + 2x + 1 = 0 = (x + 1)². Discriminant = 4 − 4 = 0. Single root at x = −1. The parabola touches the x-axis exactly at its vertex (−1, 0).
3Complex conjugate roots
x² + 4 = 0. Discriminant = 0 − 16 = −16, negative. Roots: x = ±2i. The parabola y = x² + 4 sits entirely above the x-axis, so there are no real solutions — only complex ones.
How to use this calculator
- a (coefficient of x²) — Leading coefficient. Must be non-zero — if a = 0, the equation is linear, not quadratic.
- b (coefficient of x) (default: -5)
- c (constant) (default: 6)
- Read the result. Use the worked examples below to sanity-check against a known scenario.
Discriminant cases
| Discriminant | Roots | Geometric meaning |
|---|---|---|
| Δ > 0 | Two distinct real roots | Parabola crosses x-axis twice |
| Δ = 0 | One repeated real root | Parabola touches x-axis once (at vertex) |
| Δ < 0 | Two complex conjugate roots | Parabola never meets x-axis |
For exact values, factoring or completing the square may be cleaner than the formula.
Frequently asked questions
What is the quadratic formula?
What does the discriminant tell me?
Can a quadratic have only one root?
What are complex roots?
When should I use the quadratic formula vs factoring?
What if a = 0?
What's the vertex of the parabola?
How accurate is this calculator?
Quadratic Equation glossary
How we built this calculator
Methodology
The quadratic formula x = (−b ± √(b² − 4ac)) / 2a is derived from completing the square on the general form. The discriminant b² − 4ac under the square root is the heart of the analysis: positive means the parabola crosses the x-axis at two points, zero means it touches at exactly one point (the vertex), negative means the parabola never touches the x-axis and the roots are complex conjugates.
This calculator was written by Numora math team and reviewed by Numora physics team before publication. Both names link to full bios with verifiable credentials.
Sources & references
Every numeric assumption traces to a primary source.
- Khan Academy: Quadratic equations and the quadratic formulaINT
- Stewart, Calculus: Early Transcendentals (8th ed.) — Algebra ReviewUSA
- MIT OpenCourseWare 18.01 — Algebraic prerequisitesUSA
- Wolfram MathWorld: Quadratic FormulaINT
- Bhāskara II Bījaganita (1150) — historical record of the formulaIND
- Numora Editorial Policy. numora.net/editorial-policy