Quadratic Formula Calculator

Solving quadratic equations by hand can be tedious, especially when the numbers get messy. This calculator does the heavy lifting for you. Plug in your coefficients and get the roots instantly, whether they're whole numbers, decimals, or even complex numbers. Below you'll also find a full breakdown of how the quadratic formula works, what the discriminant tells you, and where people commonly go wrong. Whether you're a student working through algebra or just need a quick answer, you're in the right place.

Enter Details

For an equation of the form ax² + bx + c = 0.

Result

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

Note — This result is an estimate. Talk to a healthcare provider for personalized guidance.

How to Use the Quadratic Formula Calculator

Using the calculator is straightforward. Every quadratic equation can be written in the form ax² + bx + c = 0, so all you need to do is identify those three coefficients and enter them.

  • Enter the value of a (the coefficient of x²). This cannot be zero.
  • Enter the value of b (the coefficient of x).
  • Enter the value of c (the constant term).
  • Hit Calculate and the tool will display the roots, the discriminant value, and whether the solutions are real or complex.

If your equation looks like 2x² - 4x + 2 = 0, then a = 2, b = -4, and c = 2. Watch your signs carefully when entering negative values. That's usually where errors sneak in.

Quadratic Formula Explained

The quadratic formula gives you the solutions (also called roots or zeros) of any quadratic equation. It looks like this:

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

That ± symbol is doing a lot of work. It means you calculate two values: one using addition and one using subtraction under the square root. Those two results are your two roots, often called x₁ and x₂.

The formula works for every quadratic equation, no matter how ugly the numbers are. It's derived by completing the square on the general form ax² + bx + c = 0, but you don't need to understand that derivation to use it effectively. What matters is knowing what a, b, and c represent in your specific equation.

Standard Form of a Quadratic Equation

Before applying any formula, your equation needs to be in standard form: ax² + bx + c = 0. That means everything is on one side and the right side equals zero.

Sometimes equations don't come pre-packaged that way. You might see something like 3x² = 6x - 9. To put that in standard form, move all the terms to one side: 3x² - 6x + 9 = 0. Now a = 3, b = -6, and c = 9.

A few things to keep in mind about the coefficients:

  • a must not equal zero. If it does, the equation is linear, not quadratic.
  • b or c can be zero. For example, x² - 9 = 0 has b = 0.
  • All coefficients can be negative, fractional, or decimal values.

Getting the standard form right before you start is honestly half the battle. Misidentifying a, b, or c will throw off every calculation that follows.

Steps to Solve Using the Quadratic Formula

Once your equation is in standard form, solving it is a matter of careful substitution and arithmetic. Here's how to work through it step by step.

  1. Write the equation in standard form (ax² + bx + c = 0) and identify a, b, and c.
  2. Calculate the discriminant: compute b² - 4ac first. This tells you what kind of roots to expect before you finish the full calculation.
  3. Plug into the formula: substitute your values into x = (-b ± √(b² - 4ac)) / 2a.
  4. Simplify the square root: if the discriminant is positive, simplify √(b² - 4ac) as much as possible. If it's negative, you'll have complex roots.
  5. Split into two equations: solve once using + and once using - to get x₁ and x₂.
  6. Simplify each result: reduce fractions or decimals to their simplest form.

Take your time on step 2. Knowing the discriminant ahead of time keeps you from being surprised by the type of answer you get.

Discriminant and Nature of Roots

The discriminant is the expression inside the square root: b² - 4ac. It's a quick diagnostic tool that tells you what the solutions look like before you finish the full calculation.

Discriminant ValueType of RootsNumber of Roots
Greater than 0Two distinct real roots2
Equal to 0One repeated real root1 (a double root)
Less than 0Two complex (imaginary) roots2 (no real solutions)

A positive discriminant means the parabola crosses the x-axis at two points. Zero means it just touches the axis at one point. Negative means the parabola never crosses the x-axis at all, and the solutions involve imaginary numbers.

Checking the discriminant first is a good habit. It lets you set expectations and catch sign errors early if the result isn't what you anticipated.

Real and Complex Roots Explained

Real roots are numbers you can plot on a standard number line. They can be rational (like 3 or -1/2) or irrational (like √5). When the discriminant is positive, you get two of them. When it's zero, both roots are the same value.

Complex roots come into play when the discriminant is negative. You end up taking the square root of a negative number, which isn't defined in the real number system. To handle it, mathematicians use the imaginary unit i, defined as √(-1).

So if your discriminant is -16, then √(-16) = 4i. Your roots would look something like x = 2 + 4i and x = 2 - 4i. These are called complex conjugate pairs, and they always appear together when the coefficients a, b, and c are real numbers.

Complex roots don't mean you made a mistake. They just mean the corresponding parabola doesn't intersect the x-axis. In physics and engineering, complex roots actually carry meaningful information about oscillations and system behavior.

Examples of Quadratic Equation Solutions

Seeing the formula in action makes it a lot easier to internalize. Here are three examples covering the different types of outcomes.

Example 1: Two distinct real roots
Equation: x² - 5x + 6 = 0 (a=1, b=-5, c=6)
Discriminant: (-5)² - 4(1)(6) = 25 - 24 = 1
x = (5 ± √1) / 2 → x₁ = 3, x₂ = 2

Example 2: One repeated real root
Equation: x² - 6x + 9 = 0 (a=1, b=-6, c=9)
Discriminant: 36 - 36 = 0
x = 6 / 2 → x = 3 (double root)

Example 3: Complex roots
Equation: x² + x + 1 = 0 (a=1, b=1, c=1)
Discriminant: 1 - 4 = -3
x = (-1 ± √(-3)) / 2 → x = -1/2 ± (√3/2)i

Notice how each discriminant value predicted exactly the type of solution before the final step was even done. That's the discriminant working as advertised.

Common Mistakes in Quadratic Calculations

Even straightforward problems can go sideways with one small slip. These are the errors that show up most often.

  • Forgetting to set the equation equal to zero. The formula only works on ax² + bx + c = 0. If you have terms on both sides, move them first.
  • Misidentifying signs on b or c. If b is negative and you enter it as positive, your answer will be wrong. Write out the equation clearly before extracting coefficients.
  • Squaring b incorrectly. (-b)² is always positive. Students sometimes write b² as negative when b itself is negative. It's not.
  • Dividing only part of the numerator by 2a. The entire expression (-b ± √(b²-4ac)) gets divided by 2a, not just the square root portion.
  • Rounding the discriminant too early. Rounding intermediate values introduces error. Keep full precision until the final step.
  • Assuming no real roots means no answer. Complex roots are valid answers. They just aren't real numbers.

Most of these come down to rushing. Slowing down, writing out each step, and double-checking your signs will eliminate the majority of errors before they happen.

Other Maths Calculators

Explore all