Skip to content
    Algebra

    Quadratic Formula Explained: Solve Any Quadratic Equation Step by Step

    You throw a ball in the air. When will it be exactly 15 metres high? The answer is hidden in a quadratic equation, and one formula can crack every one of them. In this guide you'll learn the quadratic formula, what the discriminant tells you, and how to use it without the usual sign mistakes.

    Math Solver Academic Editorial Board7 min read

    Key takeaways

    • The quadratic formula is x = (−b ± √(b² − 4ac)) ÷ 2a and solves any ax² + bx + c = 0.
    • The discriminant b² − 4ac tells you how many real solutions there are before you finish.
    • Put the equation in the form ax² + bx + c = 0 first, with 0 on one side.
    • Wrap negative numbers in brackets when you square them: (−5)² = 25.
    In this guide
    1. 01What is a quadratic equation?
    2. 02Why does the quadratic formula matter?
    3. 03The formula
    4. 04How to use the quadratic formula step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Frequently asked questions

    What is a quadratic equation?

    A quadratic equation is an equation where the highest power of x is 2. Its standard form is ax² + bx + c = 0, where a, b and c are numbers and a is not zero.

    When you draw y = ax² + bx + c on a graph, you get a U-shaped curve called a parabola. The solutions of the equation, also called roots, are the points where the curve crosses the x-axis.

    Why does the quadratic formula matter?

    Some quadratics factor neatly, but many do not. The quadratic formula always works, whatever the numbers are, even when the answers are messy decimals.

    Quadratics appear whenever something speeds up, slows down or curves: a thrown ball, the shape of a bridge arch, the area of a garden with a fixed fence, or the profit from pricing a product.

    One formula, any quadratic. That is why it is one of the most famous formulas in school maths.

    The formula

    x = (−b ± √(b² − 4ac)) ÷ 2a
    SymbolWhat it meansExample in 2x² + 3x − 2 = 0
    aNumber in front of x² (not 0)2
    bNumber in front of x3
    cPlain number (constant)−2
    ±Do it twice: once with +, once with −gives two roots
    b² − 4acThe discriminant25

    The discriminant

    The part under the square root, D = b² − 4ac, is called the discriminant. It tells you what kind of answers to expect:

    DiscriminantNumber of real rootsWhat the graph does
    D > 0Two different rootsCrosses the x-axis twice
    D = 0One repeated rootJust touches the x-axis
    D < 0No real roots (two complex roots)Never reaches the x-axis

    How to use the quadratic formula step by step

    1. 1Rearrange to standard form. Get 0 on one side: ax² + bx + c = 0.
    2. 2Write down a, b and c with their signs.
    3. 3Find the discriminant b² − 4ac.
    4. 4Take the square root of the discriminant (if it is 0 or positive).
    5. 5Work out both roots: once with +, once with −, then divide by 2a.
    6. 6Check by putting a root back into the equation.

    Now try it yourself. Enter a, b and c in the calculator below to see the discriminant and both roots worked out.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Algebra
    High School

    Quadratic Formula

    Solve quadratic equations of the form ax² + bx + c = 0

    x = (-b ± √(b² - 4ac)) / 2a

    Δ = 1.0 (2 Roots)
    0.120
    -1520
    120

    💡 Example

    Reference
    Inputs:a=1, b=-5, c=6
    Result:3
    Open the full Quadratic Formula calculator

    The calculator lists both roots in its steps and gives the larger root as the main result. If the discriminant is negative, it shows the complex roots in the form p ± qi instead.

    Common mistakes to avoid

    • Not setting the equation to 0. For x² + 2x = 8, first write x² + 2x − 8 = 0, so c = −8.
    • Dividing only the square root by 2a. The whole top, −b ± √D, is divided by 2a.
    • Using `4ac` with the wrong sign. If a or c is negative, −4ac becomes positive.
    • Forgetting the second root. The ± gives two answers unless D = 0.

    Tips and tricks

    • Complex roots: for x² + 2x + 5 = 0, D = 4 − 20 = −16, so the roots are −1 ± 2i, where i is the square root of −1.
    • Repeated root: x² − 6x + 9 = 0 has D = 0 and the single root x = 3.
    • Quick check: the two roots always add up to −b ÷ a and multiply to c ÷ a. For the example, 0.5 + (−2) = −1.5 = −3 ÷ 2.
    • Related tools: see the linear equation solver when a = 0, or the simultaneous equations calculator for two unknowns.

    Where you'll use it in real life

    • Sport and physics: a ball thrown up at 20 m/s has height about h = 20t − 5t². Setting h = 15 gives 5t² − 20t + 15 = 0, so t = 1 s (going up) or t = 3 s (coming down). The projectile range calculator covers how far it travels.
    • Design: finding the size of a garden or frame with a given area.
    • Business: finding the prices where profit is exactly zero.
    • Graphs: finding where a parabola crosses the x-axis, alongside the slope calculator for straight lines.

    Quick summary

    Put the equation in the form ax² + bx + c = 0, read off a, b and c with their signs, and use x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant tells you whether you get two, one or no real roots. Use the calculator above to check each step of your working.

    Frequently asked questions

    When should I use the quadratic formula?

    Use it for any equation of the form ax² + bx + c = 0, especially when it does not factor easily. It always works.

    What if the discriminant is negative?

    A negative discriminant means there are no real solutions. The two solutions are complex numbers that involve i, the square root of −1.

    What if a is 0?

    Then there is no x² term, so the equation is linear, not quadratic. Solve bx + c = 0 to get x = −c ÷ b.

    How do I know which root is the right one?

    Both roots solve the equation. In a real problem, pick the one that makes sense, for example a positive time or a positive length.

    #quadratic#formula#algebra#equations#discriminant
    Updated

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX