Quadratic Formula
x = (-b ± √(b² - 4ac)) / 2aThe quadratic formula finds the roots of any equation in the form ax² + bx + c = 0.
Where:
a= Coefficient of x² (must not be zero)b= Coefficient of xc= Constant termRoots
3, 2
Discriminant
1.00
Type
2 Real
Vertex
(2.5, -0.3)
x² - 5x + 6 = 0
x₁
3
x₂
2
Two distinct real roots
1.00
Δ > 0 → Two real roots
Vertex
(2.50, -0.25)
Axis of Symmetry
x = 2.50
Y-Intercept
(0, 6)
Opens
↑ Upward
1. Equation: x² - 5x + 6 = 0
2. Using quadratic formula: x = (-b ± √(b²-4ac)) / 2a
3. a = 1, b = -5, c = 6
4. Discriminant: Δ = (-5)² - 4(1)(6) = 1.00
5. x = (-(-5) ± √1.00) / (2 × 1)
6. x₁ = 3, x₂ = 2
x = (-b ± √(b² - 4ac)) / 2aThe quadratic formula finds the roots of any equation in the form ax² + bx + c = 0.
Where:
a= Coefficient of x² (must not be zero)b= Coefficient of xc= Constant termΔ = b² - 4acThe discriminant determines the nature of the roots: Δ > 0 gives two real roots, Δ = 0 gives one repeated root, Δ < 0 gives complex roots.
Where:
a= Coefficient of x²b= Coefficient of xc= Constant termVertex = (-b/(2a), a(-b/(2a))² + b(-b/(2a)) + c)The vertex is the minimum or maximum point of the parabola.
Where:
-b/(2a)= The x-coordinate of the vertex (axis of symmetry)Inputs
Result
Discriminant = (-5)² - 4(1)(6) = 25 - 24 = 1. Since Δ > 0, there are two real roots. x₁ = (5 + √1) / 2 = 3, x₂ = (5 - √1) / 2 = 2. Vertex at x = 5/2 = 2.50, y = -0.25.
Inputs
Result
Discriminant = 4² - 4(2)(-6) = 16 + 48 = 64. x₁ = (-4 + √64) / 4 = (-4 + 8) / 4 = 1. x₂ = (-4 - 8) / 4 = -3. Vertex at x = -4/4 = -1.00, y = 2(1) + 4(-1) - 6 = -8.00.
Inputs
Result
Discriminant = 4² - 4(1)(4) = 16 - 16 = 0. Since Δ = 0, there is one repeated root. x = -4 / (2×1) = -2. The vertex is at (-2, 0), meaning the parabola just touches the x-axis.
Inputs
Result
Discriminant = 1² - 4(1)(1) = 1 - 4 = -3. Since Δ < 0, the roots are complex. Real part = -1/(2×1) = -0.5. Imaginary part = √3/2 ≈ 0.866. The parabola does not cross the x-axis.
The quadratic formula is x = (-b ± √(b² - 4ac)) / 2a. It finds the roots (solutions) of any quadratic equation in the form ax² + bx + c = 0. This universal formula works for all quadratic equations, whether the roots are real or complex.
The discriminant (b² - 4ac) indicates the nature of the roots: positive means two real roots, zero means one real root (repeated), and negative means two complex conjugate roots.
| Discriminant (Δ) | Number of Roots | Root Type | Graph Behavior |
|---|---|---|---|
| Δ > 0 | 2 | Two distinct real roots | Crosses x-axis twice |
| Δ = 0 | 1 | One repeated real root | Touches x-axis at vertex |
| Δ < 0 | 0 real (2 complex) | Complex conjugate pair | Does not cross x-axis |
The vertex is the highest or lowest point of the parabola. For y = ax² + bx + c, the vertex x-coordinate is -b/(2a), and it represents either the maximum (if a < 0) or minimum (if a > 0) value.
If the coefficient "a" is positive, the parabola opens upward (U-shape). If "a" is negative, the parabola opens downward (∩-shape). The magnitude of "a" controls how wide or narrow the parabola is.
Many quadratic equations have clean integer or simple fraction roots. Recognizing common patterns like perfect square trinomials (x²+6x+9=0) and difference of squares (x²-9=0) helps solve equations faster without the full quadratic formula.
| Equation | a, b, c | Discriminant | Roots (x₁, x₂) |
|---|---|---|---|
| x² + 5x + 6 = 0 | 1, 5, 6 | 1 | -2, -3 |
| x² - 4 = 0 | 1, 0, -4 | 16 | 2, -2 |
| 2x² + 3x - 2 = 0 | 2, 3, -2 | 25 | 0.5, -2 |
| x² - 6x + 9 = 0 | 1, -6, 9 | 0 | 3, 3 |
| x² + 1 = 0 | 1, 0, 1 | -4 | i, -i |
| x² - x - 6 = 0 | 1, -1, -6 | 25 | 3, -2 |
There are four main methods: factoring, completing the square, the quadratic formula, and graphing. Factoring is fastest for simple equations. The quadratic formula always works. Completing the square is useful for deriving vertex form.
| Method | Best For | Difficulty | Always Works? |
|---|---|---|---|
| Factoring | Integer roots, simple equations | Easy | No |
| Quadratic Formula | Any quadratic equation | Medium | Yes |
| Completing the Square | Converting to vertex form | Medium-Hard | Yes |
| Graphing | Visualizing roots | Easy (with tools) | Approximate only |
x = (−b ± √(b² − 4ac)) / 2a solves any equation of the form ax² + bx + c = 0 in a single computation. For x² − 5x + 6 = 0: a=1, b=−5, c=6. Discriminant = 25 − 24 = 1. Roots: x = (5 ± 1)/2, giving x₁ = 3 and x₂ = 2. Verification: 3² − 15 + 6 = 0 and 2² − 10 + 6 = 0.
The formula is derived by completing the square on the general form. Starting with ax² + bx + c = 0, divide by a, move c/a to the right, add (b/2a)² to both sides, factor the left as a perfect square, and solve for x. This derivation appears in virtually every algebra textbook and was known to Babylonian mathematicians around 2000 BCE, though they expressed solutions geometrically rather than algebraically.
The ± symbol produces two solutions because every parabola (except at the vertex) intersects a horizontal line at zero or two points. The expression under the square root — the discriminant b² − 4ac — determines whether those intersection points are real, coincident, or complex. The Square Root Calculator can verify the √(b² − 4ac) step for hand calculations.
The discriminant Δ = b² − 4ac classifies roots before computing them. For 2x² + 4x − 6 = 0: Δ = 16 + 48 = 64 > 0, so two distinct real roots exist (x = 1 and x = −3). For x² + 4x + 4 = 0: Δ = 16 − 16 = 0, giving one repeated root (x = −2). For x² + x + 1 = 0: Δ = 1 − 4 = −3 < 0, producing complex roots (−0.5 ± 0.866i).
A perfect square discriminant (1, 4, 9, 16, 25...) means the roots are rational, which means the quadratic can be factored over the integers. Δ = 25 for x² + 5x + 6 = 0 gives roots −2 and −3, and the factored form is (x+2)(x+3). When Δ is positive but not a perfect square, roots are irrational: for x² − 2 = 0, Δ = 8, giving x = ±√2.
The discriminant also determines the parabola’s relationship to the x-axis. Δ > 0: the parabola crosses the axis at two points. Δ = 0: the vertex touches the axis (tangent). Δ < 0: the parabola floats entirely above (a > 0) or below (a < 0) the axis. The Logarithm Calculator can help verify solutions when quadratic equations arise from exponential or logarithmic equations.
| Equation | Δ = b²−4ac | Root Type | Roots |
|---|---|---|---|
| x² − 5x + 6 = 0 | 1 (perfect square) | Two rational | 3, 2 |
| x² − 2 = 0 | 8 (positive) | Two irrational | ±√2 |
| x² − 6x + 9 = 0 | 0 | One repeated | 3 |
| x² + x + 1 = 0 | −3 (negative) | Two complex | −0.5 ± 0.866i |
The vertex of y = ax² + bx + c is at x = −b/(2a), which is the axis of symmetry. The y-coordinate is found by substituting back. For y = 2x² + 4x − 6: vertex x = −4/4 = −1, vertex y = 2(1) + 4(−1) − 6 = −8. This vertex (−1, −8) is the minimum because a = 2 > 0.
Vertex form y = a(x − h)² + k gives the vertex directly as (h, k). Converting from standard form: complete the square. For y = x² − 6x + 5: y = (x² − 6x + 9) − 9 + 5 = (x − 3)² − 4, so vertex = (3, −4). The value a = 1 > 0 confirms this is the minimum.
Real-world optimization problems frequently reduce to finding vertices. A ball thrown at 20 m/s at 45° follows h(t) = −4.9t² + 14.14t + 1.5 (height in meters). Maximum height occurs at t = −14.14/(2 × −4.9) = 1.44 seconds, giving h = 11.7 meters. Revenue models (R = price × quantity, where quantity decreases linearly with price) also produce quadratic functions whose vertex gives the profit-maximizing price.
When a > 0, the vertex is the minimum point. When a < 0, the vertex is the maximum. The axis of symmetry x = −b/(2a) always passes through the vertex and midway between the two roots (if they exist).
Last Updated: Mar 26, 2026
This calculator is provided for informational and educational purposes only. Results are estimates and should not be considered professional financial, medical, legal, or other advice. Always consult a qualified professional before making important decisions. UseCalcPro is not responsible for any actions taken based on calculator results.