Skip to content

Quadratic Equation Solver

Solve any quadratic equation ax² + bx + c = 0 with step-by-step discriminant analysis.

Equation

Updates as you type
Form
Which form is your equation in? ?
Preview
x² − 5x + 6 = 0
Coefficients
a — leading coefficient ? opens up
b — linear term ?
c — constant term ?
Try an example

Parabola

Parabola Vertex Roots

Step-by-step solution

    Formula

    x = −b ± √(b² − 4ac) 2a
    a
    Coefficient of x² (leading term)
    b
    Coefficient of x (linear term)
    c
    Constant term (also the y-intercept)
    D
    Discriminant = b² − 4ac — the sign of D tells you how many real roots there are
    Worked example — your numbers
    1. a, b, c =
    2. D = b² − 4ac =
    3. √D =
    4. 2a =
    5. x =

    The sign of the discriminant classifies the roots: positive yields two distinct real roots (the parabola crosses the x-axis twice), zero yields one repeated real root (the parabola touches the x-axis), negative yields a complex-conjugate pair (the parabola does not touch the x-axis).

    Examples

    How It Works

    Every quadratic equation can be written as ax² + bx + c = 0 where a, b, and c are real numbers and a ≠ 0. The key to solving it is the discriminant, D = b² − 4ac, which determines how many real solutions exist.

    When D > 0, the parabola crosses the x-axis at two distinct points, giving two real roots. When D = 0, the parabola just touches the x-axis at its vertex, producing one repeated root. When D < 0, the parabola never reaches the x-axis, so the solutions are complex conjugates involving the imaginary unit i.

    The quadratic formula x = (−b ± √D) / (2a) handles all three cases. This solver computes the discriminant, applies the formula, finds the vertex at (−b/2a, f(−b/2a)), and graphs the parabola so you can visualize the relationship between the equation and its solutions.

    Tips & Best Practices

    Check with Vieta's formulas: The sum of the roots equals −b/a and their product equals c/a. Use these to verify your solutions without recomputing.
    Try factoring first: If the coefficients are small integers, factoring is often faster than the quadratic formula. Look for two numbers that multiply to a·c and add to b.
    Use the vertex for graphing: The vertex (−b/2a, f(−b/2a)) and the direction of opening (up if a > 0, down if a < 0) give you the key shape of the parabola.
    Coefficient a cannot be zero: If a = 0, the equation becomes linear (bx + c = 0) and has at most one solution, not two. Always check that a ≠ 0 before applying the quadratic formula.

    Frequently Asked Questions

    What is a quadratic equation?

    A quadratic equation is a second-degree polynomial equation in the form ax² + bx + c = 0, where a ≠ 0. The 'quadratic' name comes from 'quad' meaning square, since the variable is squared.

    The discriminant (b² − 4ac) reveals the nature of the roots. If positive, there are two distinct real solutions. If zero, there is exactly one real solution (a repeated root). If negative, there are two complex conjugate solutions.

    A quadratic has no real solutions when the discriminant (b² − 4ac) is negative. Graphically, this means the parabola does not cross the x-axis. The solutions exist as complex numbers involving the imaginary unit i.

    You can solve using the quadratic formula, factoring, completing the square, or graphing. The quadratic formula works for all cases, while factoring is quickest when the equation has simple integer roots.

    The vertex is the highest or lowest point on the parabola. For y = ax² + bx + c, the vertex x-coordinate is −b/(2a) and the y-coordinate is found by substituting back. If a > 0 the vertex is a minimum; if a < 0 it is a maximum.

    To factor ax² + bx + c, find two numbers that multiply to a·c and add to b. Rewrite the middle term using those numbers, then factor by grouping. For example, x² − 5x + 6 factors as (x − 2)(x − 3) because −2 × −3 = 6 and −2 + −3 = −5.

    Completing the square rewrites ax² + bx + c into the form a(x − h)² + k. Move c to the other side, add (b/2a)² to both sides, then factor the left as a perfect square. This method is how the quadratic formula itself is derived.

    Yes. When the discriminant equals zero, the quadratic has exactly one repeated real root. Graphically, the parabola just touches the x-axis at one point (the vertex). Examples include x² − 6x + 9 = 0, which has the single root x = 3.

    Vieta's formulas relate the roots of a quadratic to its coefficients. For ax² + bx + c = 0 with roots r₁ and r₂: the sum r₁ + r₂ = −b/a and the product r₁ · r₂ = c/a. These are useful for checking answers without computing the roots directly.

    Quadratics model projectile motion (throwing a ball), calculate areas for optimization problems, describe the shape of satellite dishes and parabolic mirrors, and appear in physics, engineering, economics (profit maximization), and computer graphics.