A quadratic equation is written in the form ax²+bx+c=0 (a≠0), where the highest power of x is 2. Depending on the sign of the coefficients, this type of equation resolves to two distinct real roots, a single repeated (double) real root, or two complex roots. This tool works in both directions: finding the roots of a given equation, and building an equation from known roots (Vieta's formulas in reverse).
⚙️ Advanced settings — decimal places, step-by-step, graph
What is a quadratic equation, and how do you solve one?
A complete guide — with formulas and examples — to the discriminant, the quadratic formula, Vieta's formulas, the vertex, factoring, and completing the square.
Related calculators: vertex, linear equation & Vieta
The most common related calculations for quadratic equations — all instant.
Reference tables & examples
A citable discriminant/root table, example equations, and a summary of Vieta's formulas.
| Δ condition | Number/type of roots | Graph / x-axis |
|---|---|---|
| Δ > 0 | 2 distinct real roots | Crosses the x-axis at 2 points |
| Δ = 0 | 1 (double) real root | Touches the x-axis at the vertex |
| Δ < 0 | 2 complex (conjugate) roots | Never crosses the x-axis |
| Equation | Δ | Roots |
|---|---|---|
| x² − 5x + 6 = 0 | 1 | x1=3, x2=2 |
| x² − 4x + 4 = 0 | 0 | x=2 (double root) |
| x² + 2x + 5 = 0 | −16 | x=−1±2i |
| 2x² + 3x − 2 = 0 | 25 | x1=0.5, x2=−2 |
| x² − 1 = 0 | 4 | x1=1, x2=−1 |
Try any of these values with one click using the "Examples" chips on the calculator above.
| Quantity | Formula |
|---|---|
| Sum of roots | x1 + x2 = −b/a |
| Product of roots | x1 · x2 = c/a |
| Vertex (x₀) | −b/2a |
| Vertex (y₀) | c − b²/4a = −Δ/4a |
Add this calculator to your site (embed code)
Embed the quadratic equation solver on your own website for free. Copy the code below into your HTML — the tool runs in a simplified view and links back to this page as its source.
The embedded tool has a fixed layout; you can adjust the height value to fit your site. No ads or personal data, runs entirely client-side.
Quadratic equation terms glossary
Short definitions of the core terms used when solving quadratic equations.
In-depth guides
Detailed answers to the questions people ask most about quadratic equations.
How does the discriminant tell you how many roots there are?
To understand how many roots — and of what type — a quadratic equation has, all you need to check is the sign of Δ=b²−4ac. If Δ is positive there are two distinct real roots, if it's zero there is one (double) real root, and if it's negative there are two complex roots — this single step shows you the "shape" of the equation before you finish solving it.
Enter the coefficients in the "Find Roots" tab above and click Solve — the tool calculates Δ automatically and explains which root type it corresponds to, step by step.
What are complex roots used for in real life?
The complex roots that appear when Δ<0 may look abstract, but they're used widely in electrical engineering for analyzing AC circuits, in control systems for stability analysis, and in signal processing. Mathematically, they guarantee that an equation with no real roots still always has two conjugate complex roots.
This tool displays the roots directly in a+bi form when Δ<0, and its graph summary explains why the parabola never touches the x-axis.
How do you build an equation from its roots? (reverse Vieta)
When you know two roots, you can build the equation by using Vieta's formulas in reverse: calculate b = −a(x1+x2) and c = a·x1·x2, then write ax²+bx+c=0. Choosing a=1 gives the simplest form.
Enter two real roots (or p and q for a complex root) in the "Equation from Roots" tab; the tool calculates b and c, builds the equation, and re-solves it to verify the roots.
Frequently asked questions
How do you solve a quadratic equation?
What is the discriminant?
What happens if the discriminant is negative?
What is the quadratic formula?
What are Vieta's formulas?
How do you find the vertex of a parabola?
When is factoring possible?
What is completing the square?
How are the roots shown in exact (radical/fraction) form?
Can I solve an equation without first converting it to ax²+bx+c=0?
How does Practice Mode work?
Methodology & sources
Basis: Classical algebra and analytic geometry (the discriminant/square-root method, Vieta's theorems, completing the square). These rules are evergreen mathematical facts that do not require annual updates. Last updated: July 19, 2026.