Skip to content
Explore tools

Algebra

Quadratic Formula Calculator: Solve Any Quadratic Equation With Steps

Last updated: October 2026

A quadratic formula calculator solves equations in the form ax² + bx + c = 0. Enter the values of a, b and c, and it applies x = (−b ± √(b² − 4ac)) / 2a. The result is two real roots, one repeated root, or two complex roots, depending on the discriminant b² − 4ac.

  • Free, no sign-up
  • Shows the working
  • Runs on your device

Algebra

Quadratic Solver

Solves ax² + bx + c = 0.

Result

—

    The quadratic formula works on every quadratic equation, even ones that will not factor. This guide shows how to find a, b and c, how to read the discriminant, how to simplify messy answers and how to check any result in seconds. Every example below was checked with a computer algebra system.

    Note: Calc Solver (calc-solver.co) is an independent guide site and is not affiliated with any calculator mentioned here.

    What The Quadratic Formula Is

    The quadratic formula is a general solution for any equation of degree 2. It gives the values of x that make ax² + bx + c equal to zero.

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

    Here is what each part means:

    The answers are called roots, solutions or zeros. On a graph, real roots are the x-intercepts, the points where the parabola crosses the x-axis. Math is Fun's quadratic equation guide has a clear visual of this.

    How To Find A, b And c

    To find a, b and c, first write the equation in standard form: ax² + bx + c = 0, with everything on one side and 0 on the other. Then read the numbers in order. Most wrong answers from a quadratic formula calculator come from this step, not the formula.

    Equation as givenStandard formabc
    2x² − 7x + 3 = 0Already standard2−73
    3x² = 5x + 23x² − 5x − 2 = 03−5−2
    x² = 16x² + 0x − 16 = 010−16
    5x − x² = 0−x² + 5x + 0 = 0−150
    0.5x² − 1.5x + 1 = 0Already standard0.5−1.51

    Three rules cover almost every case:

    1. Keep the sign with the number. In 2x² − 7x + 3, b is −7, not 7.
    2. A missing term means 0. If there is no x term, b = 0. If there is no constant, c = 0.
    3. A lone x² means a = 1. The same goes for −x², where a = −1.

    Vertex form or factored form? Expand it first. Vertex form is a(x − h)² + k. Factored form is a(x − p)(x − q).

    For example, 2(x − 3)² − 8 expands to 2(x² − 6x + 9) − 8, which is 2x² − 12x + 10. So a = 2, b = −12 and c = 10. The roots are x = 1 and x = 5.

    Factored form is even quicker, because the roots are already visible. In (x − 2)(x + 5) = 0, the roots are 2 and −5. Expanding gives x² + 3x − 10, which is handy when you need to check a solver's result.

    How To Use The Quadratic Formula Calculator

    Using the calculator above takes three steps:

    1. Pick a tab. Use "a, b, c" if you already know the coefficients. Use "Type equation" if your equation is not in standard form. Use "Vertex or factored form" for a(x − h)² + k or a(x − p)(x − q).
    2. Enter your numbers. Negatives need the minus sign. Fractions like 1/3 and decimals like 0.25 both work.
    3. Read the result. You get the discriminant, the roots in exact form and as decimals, the vertex and a graph.

    The steps show how the formula was applied, so you can copy the method onto homework. If a is 0, the tool tells you the equation is linear. For that case, the equation solver handles linear equations, systems and inequalities.

    Solving With The Quadratic Formula Step By Step

    Solving by hand follows the same order every time: find a, b and c, work out the discriminant, then finish the formula with plus and with minus. Here is 2x² − 7x + 3 = 0.

    Step 1: Name the coefficients. a = 2, b = −7, c = 3.

    Step 2: Find the discriminant. b² − 4ac = (−7)² − 4(2)(3) = 49 − 24 = 25.

    Step 3: Take the square root. √25 = 5.

    Step 4: Fill in the formula. x = (−(−7) ± 5) / (2 × 2) = (7 ± 5) / 4.

    Step 5: Split into two answers. x = 12/4 = 3, and x = 2/4 = 1/2.

    Step 6: Check. 2(3)² − 7(3) + 3 = 18 − 21 + 3 = 0. It works.

    The most common slip is Step 4. The formula starts with −b, so when b is negative, −b is positive. Wrap negative numbers in parentheses when squaring too: (−7)² is 49, but typing −7² into many calculators gives −49.

    What The Discriminant Tells You

    The discriminant, b² − 4ac, tells you how many roots there are and what type they are before you finish the problem. Check it first and you will know what kind of answer to expect.

    DiscriminantNumber and type of rootsGraphExampleRoots
    Positive perfect square2 rational rootsCrosses the x-axis twice2x² − 7x + 3 = 0 (D = 25)3 and 1/2
    Positive, not a perfect square2 irrational rootsCrosses the x-axis twicex² + 4x − 1 = 0 (D = 20)−2 ± √5
    Zero1 repeated real rootTouches the x-axis at the vertexx² − 6x + 9 = 0 (D = 0)3
    Negative2 complex rootsNever touches the x-axisx² + 2x + 5 = 0 (D = −16)−1 ± 2i

    A perfect-square discriminant is a useful signal. It means the equation could have been factored, so you can double-check with factoring if you like.

    Solving Quadratics With Complex Roots

    When the discriminant is negative, the roots are complex numbers written as p ± qi, where i = √(−1). The quadratic still has two answers. They just are not on the real number line.

    Take x² + 2x + 5 = 0:

    1. a = 1, b = 2, c = 5.
    2. D = 2² − 4(1)(5) = 4 − 20 = −16.
    3. √(−16) = √16 × √(−1) = 4i.
    4. x = (−2 ± 4i) / 2 = −1 ± 2i.

    Complex roots always come in pairs, called conjugates: −1 + 2i and −1 − 2i. When a, b and c are real, you will never get just one complex root.

    If your class has not covered imaginary numbers yet, the expected answer is usually "no real solution." Read the question carefully.

    Simplifying Your Answer

    A quadratic formula calculator often gives a messy exact answer, and teachers usually want it simplified. Simplifying means pulling perfect squares out of the radical, then reducing the fraction.

    Take 2x² + 4x − 3 = 0. The discriminant is 16 + 24 = 40, so:

    x = (−4 ± √40) / 4

    1. Simplify the radical. √40 = √(4 × 10) = 2√10.
    2. Rewrite. x = (−4 ± 2√10) / 4.
    3. Divide every term by the common factor 2. x = (−2 ± √10) / 2.

    As decimals, the roots are about 0.581 and −2.581.

    One rule trips people up: you can only cancel a factor if it divides every term on top. In (−4 ± 2√10) / 4, you cannot cancel the 4 with just the −4. If you need help reducing the final fraction, the fraction calculator shows each step.

    Finding The Vertex, Axis Of Symmetry And Graph

    The vertex is the highest or lowest point of the parabola. Its x-value is x = −b / 2a, which is also the midpoint between the two roots. Plug that x back in to get the y-value.

    For y = 2x² − 7x + 3:

    Notice that the roots, 1/2 and 3, sit exactly 1.25 units on each side of 1.75. That symmetry is a fast way to spot a wrong root.

    Where The Quadratic Formula Comes From

    The quadratic formula comes from solving ax² + bx + c = 0 by completing the square. Knowing this explains why the formula works on every quadratic, not just ones that factor.

    1. Divide by a: x² + (b/a)x + c/a = 0
    2. Move c/a: x² + (b/a)x = −c/a
    3. Add (b/2a)² to both sides: x² + (b/a)x + (b/2a)² = (b/2a)² − c/a
    4. Write the left side as a square: (x + b/2a)² = (b² − 4ac) / 4a²
    5. Take the square root of both sides: x + b/2a = ±√(b² − 4ac) / 2a
    6. Subtract b/2a: x = (−b ± √(b² − 4ac)) / 2a

    Step 5 is where the ± comes from. Every positive number has two square roots, so there are two answers.

    Quadratic Formula Vs Other Methods

    The quadratic formula always works, but it is not always the fastest. Pick the method that fits the equation in front of you.

    MethodBest whenExample
    Square rootThere is no x term (b = 0)x² = 16 → x = ±4
    FactoringSmall numbers that factor neatlyx² + 3x − 40 = 0 → (x + 8)(x − 5) = 0 → x = −8, 5
    Completing the squarea = 1 and b is even, or you need vertex formx² − 6x + 4 = 0 → (x − 3)² = 5 → x = 3 ± √5
    Quadratic formulaAnything else, especially decimals or no clean factorsx² + 4x − 1 = 0 → x = −2 ± √5
    GraphingYou want a picture or a quick estimateRead the x-intercepts

    A good habit: check the discriminant first. If it is a perfect square, try factoring. If not, go straight to the formula.

    Solving Quadratics On A TI-84 Or Casio Calculator

    Most graphing and scientific calculators have a built-in polynomial solver, so you only need to enter a, b and c.

    TI-84 Plus CE: press the apps key, choose PlySmlt2, then Polynomial Root Finder. Set the order to 2, enter a, b and c, and select Solve. The app can switch the roots between fractions and decimals, as shown in Texas Instruments' Polynomial Root Finder example.

    Casio fx-991EX ClassWiz: press MENU, pick Equation/Func, choose Polynomial, then degree 2. Type each coefficient and press equals after it, then press equals again to solve. Use the arrow keys to move between x1 and x2. The Casio ClassWiz quick start guide covers the same menu.

    Casio fx-991ES PLUS: press MODE, 5 (EQN), then 3 for aX² + bX + c = 0. Enter the coefficients and press equals.

    If your calculator has no solver, type the formula with parentheses: (−b + √(b² − 4ac)) ÷ (2a). The parentheses around 2a matter. Without them, the calculator divides by 2 and then multiplies by a. The scientific calculator on this site handles this format too.

    Real-World Problems The Quadratic Formula Solves

    Quadratics show up whenever something speeds up, slows down or depends on a square. Here are three common setups.

    A thrown ball. A ball is thrown up from 5 feet at 64 feet per second. Its height is h = −16t² + 64t + 5. To find when it lands, solve −16t² + 64t + 5 = 0. The roots are about 4.077 and −0.077. Time cannot be negative, so the ball lands after about 4.08 seconds.

    An area problem. A rectangle is 3 feet longer than it is wide and has an area of 40 square feet. That gives w(w + 3) = 40, or w² + 3w − 40 = 0. The roots are 5 and −8. A width cannot be negative, so the rectangle is 5 feet by 8 feet.

    The golden ratio. The golden ratio is the positive root of x² − x − 1 = 0. The formula gives x = (1 + √5) / 2 ≈ 1.618.

    In word problems, always ask whether both roots make sense. Lengths, times and counts usually rule one out.

    How To Check Your Roots

    You can check any answer from a quadratic formula calculator in two ways, and the second one takes seconds.

    Method 1: Substitute. Plug each root into the original equation. Both sides should be equal, or very close if you rounded.

    Method 2: Use the sum and product of roots. For ax² + bx + c = 0, the two roots always add up to −b/a and multiply to c/a. For 2x² − 7x + 3 = 0, the roots 3 and 1/2 add to 3.5, which is 7/2, and multiply to 1.5, which is 3/2. Both match, so the answer is right.

    The sum-and-product test also works on irrational and complex roots, where substituting gets messy.

    When A Calculator Gives A Wrong Answer

    Even a working calculator can lose accuracy when b is huge compared with a and c. The formula subtracts two numbers that are almost the same, and the small root loses most of its digits.

    Take x² + 100,000,000x + 1 = 0. The true small root is about −0.00000001. Computing the formula directly in standard double-precision numbers gives about −0.0000000075, which is 25% off.

    The fix is a second version of the formula for the small root: x = 2c / (−b − √(b² − 4ac)). It avoids the subtraction and gives −0.00000001. The calculator above uses this stable method automatically. If you code your own solver for a class project, use it too.

    Common Quadratic Formula Mistakes

    Most mistakes come from signs and order of operations, not from the formula itself. This table shows the fix for each one.

    MistakeExampleFix
    Not moving everything to one sideUsing a = 3, b = 5, c = 2 for 3x² = 5x + 2Rewrite as 3x² − 5x − 2 = 0 first
    Dropping the sign of bUsing b = 7 in 2x² − 7x + 3b = −7, so −b = 7
    Squaring a negative wrongTyping −7² and getting −49Use parentheses: (−7)² = 49
    Dividing only part of the top by 2a−b ± √D / 2aDivide the whole top: (−b ± √D) / 2a
    Forgetting the ±Giving only one rootCompute plus and minus every time
    Calling a negative discriminant "an error"x² + 2x + 5 = 0It has two complex roots, −1 ± 2i
    Canceling one term only(−4 ± 2√10)/4 → −1 ± 2√10Divide every term: (−2 ± √10)/2
    Keeping a root that makes no senseA time of −0.077 secondsReject roots that do not fit the problem

    Summary

    Next step: enter your own a, b and c in the quadratic formula calculator at the top of this page. For other equation types, try the math solver, or browse all tools on the Calc Solver homepage.

    Frequently Asked Questions

    What does b ± √(b² − 4ac) over 2a mean?

    It is the quadratic formula, written x = (−b ± √(b² − 4ac)) / 2a. The letters come from an equation in the form ax² + bx + c = 0. The ± sign means you calculate the formula once with plus and once with minus, which gives the two solutions. Some people call it the "ABC formula" because it uses the three coefficients a, b and c.

    Can a quadratic equation have no solution?

    A quadratic always has two solutions if you count complex numbers and count a repeated root twice. It has no real solution when the discriminant b² − 4ac is negative. In that case, the parabola never touches the x-axis. Many algebra 1 classes write "no real solution" as the answer, while algebra 2 classes expect the complex roots.

    Does the quadratic formula work for cubic equations?

    No. The quadratic formula only works when the highest power of x is 2. A cubic like x³ − 6x² + 11x − 6 = 0 needs factoring, the rational root test or a cubic solver. If a cubic has an obvious factor of x, you can factor it out, and the quadratic formula can then solve the quadratic part that remains.

    Can a, b or c be decimals or fractions?

    Yes. The formula works with any real numbers, as long as a is not 0. Enter decimals or fractions straight into the calculator. By hand, it is easier to clear them first. Multiply every term by the lowest common denominator, or by 10 or 100 for decimals. The roots do not change.

    How do I know if my answer should be exact or a decimal?

    Look at the instructions. "Exact form" or "simplest radical form" means keep the square root, like −2 ± √5. "Round to the nearest hundredth" means give decimals, like 0.24 and −4.24. In science and word problems, decimals with units are normal. When unsure, give the exact answer followed by the decimal.

    Is using a quadratic formula calculator cheating?

    It depends on how you use it. Checking homework you already solved, or studying the steps to learn the method, is a smart way to practice. Copying answers without understanding hurts you on tests, where calculators may be limited. Many teachers allow calculators but expect you to show the setup: a, b and c, the discriminant, and the formula.

    Try it with your own numbers

    The calculator at the top of this page uses the same formulas as the examples.

    Use the calculator