How to Solve a Quadratic Equation: Discriminant and Formula
Updated: October 31, 2026 · AracMerkezi
▶ Open Quadratic Equation Calculator
Solving a quadratic equation is one of the algebra skills met most often, from middle school through university. Projectile motion in physics, area problems in geometry and cost and profit models in economics all rest on this kind of equation. In this guide you will see step by step how the equation ax² + bx + c = 0 is solved with the discriminant (delta) method, what types of roots there are and how the vertex is found. To try your own equations, use the Quadratic Equation Solver.
General form
A quadratic equation is written in this form:
ax² + bx + c = 0, a ≠ 0
Here a, b and c are coefficients. If a is zero, the equation becomes first degree and is solved with x = −c ÷ b.
The solution formula and the discriminant
To find the roots, first compute the discriminant:
Δ = b² − 4ac
Then the roots are found with this formula:
x₁,₂ = (−b ± √Δ) ÷ 2a
The formula comes from the "completing the square" method: divide ax² + bx + c = 0 by a to get x² + (b/a)x = −c/a; add (b/2a)² to both sides and the left side becomes (x + b/2a)², from which you isolate x.
### Root types according to Δ
| Δ | Root type | Parabola and the x-axis |
|---|---|---|
| Δ > 0 | Two distinct real roots | The axis is crossed at two points |
| Δ = 0 | One repeated (double) real root | Touches the axis at the vertex |
| Δ < 0 | No real roots, two conjugate complex roots | The axis is not crossed |
Step-by-step solution method
- Bring the equation to the form ax² + bx + c = 0 (all terms on one side).
- Write down a, b and c together with their signs.
- Compute Δ = b² − 4ac.
- Determine the root type from the sign of Δ.
- Substitute into the formula to find the roots.
- Verify by substituting the roots back into the equation.
Worked examples
### Example 1: Two distinct real roots
2x² − 7x + 3 = 0. a = 2, b = −7, c = 3.
Δ = (−7)² − 4 × 2 × 3 = 49 − 24 = 25, √Δ = 5.
x₁ = (7 − 5) ÷ 4 = 1/2 = 0.5
x₂ = (7 + 5) ÷ 4 = 3
Check: 2 × 3² − 7 × 3 + 3 = 18 − 21 + 3 = 0 ✓.
### Example 2: A repeated root
x² − 6x + 9 = 0. a = 1, b = −6, c = 9.
Δ = 36 − 36 = 0. x = 6 ÷ 2 = 3. This equation can be written as (x − 3)² = 0.
### Example 3: Complex roots
x² + 2x + 5 = 0. a = 1, b = 2, c = 5.
Δ = 4 − 20 = −16. √Δ = 4i.
x = (−2 ± 4i) ÷ 2 = −1 ± 2i
The roots are the conjugate complex numbers −1 + 2i and −1 − 2i.
### Example 4: Δ that is not a perfect square
x² − 2x − 1 = 0. Δ = 4 + 4 = 8, √8 = 2√2 ≈ 2.82842712.
x₁ = (2 − 2.82842712) ÷ 2 ≈ −0.41421356, x₂ = (2 + 2.82842712) ÷ 2 ≈ 2.41421356. In exact form, x = 1 ± √2.
Relationship between roots and coefficients (Vieta)
If the roots are x₁ and x₂:
- Their sum: x₁ + x₂ = −b ÷ a
- Their product: x₁ × x₂ = c ÷ a
For 2x² − 7x + 3 the sum is 7/2 = 3.5 and the product is 3/2 = 1.5; since 0.5 + 3 = 3.5 and 0.5 × 3 = 1.5, the result is confirmed. The equation also factors as a(x − x₁)(x − x₂): 2(x − 0.5)(x − 3).
The vertex and the parabola
The graph of y = ax² + bx + c is a parabola, and its vertex is V(−b ÷ 2a ; f(−b ÷ 2a)). The y-value of the vertex can also be found as c − b² ÷ 4a.
- a > 0: the arms point up, and the vertex gives the minimum value.
- a < 0: the arms point down, and the vertex gives the maximum value.
- The axis of symmetry is the line x = −b ÷ 2a; the two roots are symmetric about this axis.
- The point where it crosses the y-axis is (0 ; c).
Example: For 2x² − 7x + 3, x = 7 ÷ 4 = 1.75 and y = 3 − 49 ÷ 8 = −3.125. The vertex is V(1.75 ; −3.125). It matches 1.75, the midpoint of the roots 0.5 and 3.
Other solution methods
- Factoring: In x² − 5x + 6 = 0, the two numbers whose sum is −5 and product is 6 are −2 and −3. (x − 2)(x − 3) = 0 gives x = 2 or x = 3.
- Completing the square: x² + 6x + 5 = 0 → (x + 3)² = 4 → x = −3 ± 2 → −1 or −5.
- Graphical method: The points where the parabola crosses the x-axis give the roots.
Common mistakes
- Missing the sign of b. If b = −7, then −b = +7.
- Computing −7² instead of (−7)². The correct value is (−7)² = 49.
- Writing 2 instead of 2a in the denominator. If a = 2, the denominator is 4.
- Using the equation without setting it to zero. x² = 5x − 6 must first become x² − 5x + 6 = 0.
- Saying "no solution" when Δ < 0. There are none among the real numbers, but among complex numbers there are two solutions.
- Not verifying the roots. Substituting back catches errors.
Note on currency of information
The formulas in this guide are universal mathematics and do not change from year to year. This guide was prepared on October 31, 2026.
Summary
For ax² + bx + c = 0, first compute Δ = b² − 4ac; Δ > 0 gives two real roots, Δ = 0 one repeated root and Δ < 0 two complex roots. The roots are found with x = (−b ± √Δ) ÷ 2a. In the examples, for 2x² − 7x + 3 = 0 the roots were 0.5 and 3 and the vertex was V(1.75 ; −3.125). Verify the results step by step with our calculator.
Frequently asked questions
How do you solve a quadratic equation?
For ax² + bx + c = 0, first compute Δ = b² − 4ac, then apply x = (−b ± √Δ) ÷ 2a. For example, for 2x² − 7x + 3 = 0 we get Δ = 25 and the roots are 1/2 and 3.
What happens if the discriminant is negative?
If Δ < 0 the equation has no real roots; the roots are conjugate complex numbers of the form p ± qi. On the graph, the parabola does not cross the x-axis. For example, the roots of x² + 2x + 5 = 0 are −1 ± 2i.
How is the vertex found?
The x-coordinate of the vertex is −b ÷ 2a, and the y-coordinate is found by substituting this x into the equation. For 2x² − 7x + 3 the vertex is V(1.75 ; −3.125); since a is positive, this is the minimum value of the function.
Tools mentioned in this guide
More guides
- Quadratic Equation Examples: Parabola and Common Mistakes – Real-life quadratic equation examples: area, consecutive numbers, projectile and best-price problems, reading the parabola and common mistakes.
- How to Calculate Percentages: Six Question Types, Formulas and Examples – Percentage math: percent of a number, what percent one is of another, increase and decrease, percentage points and reverse percentages, with examples.
- How to Calculate VAT: VAT-Inclusive and VAT-Exclusive Formulas and Examples – How do you separate VAT from a VAT-inclusive amount or add it to a VAT-exclusive one? Formulas, a mixed-rate invoice, rounding gaps and shortcuts.
- How to Calculate Loan Payments: Formula, Step-by-Step Example and Interest vs. Principal Split – The monthly loan payment formula, a step-by-step example, the interest-versus-principal split and how to work back to the loan amount you can afford.
- How to Calculate Age From a Date of Birth: Age in Years, Months and Days – Work out your exact age in years, months and days, step by step. Month-end and leap-day edge cases, total days lived and common mistakes.
This article is for general information only and is not legal, financial or medical advice. We are not an official institution.