Category

Quadratic Formula Calculator

Formula

Enter your values

Enter your values and press Calculate — your answer, visual and step-by-step solution appear here.

What Is the Quadratic Formula?

The quadratic formula solves any equation of the form ax² + bx + c = 0 for x. It gives you the roots directly — no guessing, no factoring trial and error.

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

The ± symbol means there are two calculations: one with addition and one with subtraction. That's why most quadratic equations have two solutions.

VariableRole in ax² + bx + c = 0Example: 2x² + 5x − 3 = 0
aCoefficient of x²a = 2
bCoefficient of xb = 5
cConstant termc = −3

How to Use This Calculator

  1. Enter a — the coefficient in front of x².
  2. Enter b — the coefficient in front of x. Include the sign (negative b is common).
  3. Enter c — the constant term. Use 0 if there is no constant.
  4. Click Calculate — you get both roots, the discriminant, a graph, and a full step-by-step solution. No login required.
Tip: Use the Hint button to work through the problem yourself before revealing the full solution — great for exam prep.

Understanding the Discriminant (b² − 4ac)

The discriminant is the expression under the square root: b² − 4ac. Before you even finish solving, it tells you how many real solutions the equation has.

Discriminant ValueNumber of SolutionsWhat It Means
b² − 4ac > 02 real solutionsThe parabola crosses the x-axis at two points
b² − 4ac = 01 real solution (repeated)The parabola just touches the x-axis at one point
b² − 4ac < 0No real solutionsThe parabola sits entirely above or below the x-axis

When the discriminant is negative, the solutions are complex numbers in the form a + bi. They are mathematically valid — just not visible on the real number line.

Step-by-Step Worked Examples

Example 1 — Two Real Solutions: 2x² + 5x − 3 = 0

  1. Identify a, b, c. a = 2, b = 5, c = −3.
  2. Calculate the discriminant. b² − 4ac = 25 − 4(2)(−3) = 25 + 24 = 49.
  3. Take the square root. √49 = 7.
  4. Apply the ± formula. x = (−5 + 7) / 4 = 0.5 and x = (−5 − 7) / 4 = −3.
  5. Solutions: x = 0.5 and x = −3.
Watch out: b = 5, so −b = −5. If b had been negative (say b = −5), then −b = +5. Always write out −b explicitly to avoid sign errors.

Example 2 — One Repeated Solution: x² − 6x + 9 = 0

  1. Identify a, b, c. a = 1, b = −6, c = 9.
  2. Discriminant. (−6)² − 4(1)(9) = 36 − 36 = 0.
  3. Single solution. x = −(−6) / (2 × 1) = 6/2 = 3.
  4. The parabola touches the x-axis exactly once at x = 3.

Example 3 — No Real Solutions (Complex Roots): x² + 2x + 5 = 0

  1. Identify a, b, c. a = 1, b = 2, c = 5.
  2. Discriminant. 4 − 20 = −16. Negative — no real solutions.
  3. Complex solutions. x = (−2 ± √(−16)) / 2 = (−2 ± 4i) / 2.
  4. Simplified: x = −1 + 2i and x = −1 − 2i.
Writing complex roots: √(−16) = 4i because i = √(−1). Always write the answer in a + bi form: separate the real part (−1) from the imaginary part (±2i).

When to Use the Quadratic Formula

There are three methods for solving quadratic equations. Here's when to use each:

MethodUse WhenAlways Works?
FactoringThe equation factors to nice integers easilyNo
Completing the squareYou need vertex form or are deriving a formulaYes, but slow
Quadratic formulaFactoring isn't obvious; coefficients are decimals or fractionsYes
Rule of thumb: If you can spot factors quickly, factor first. When in doubt, the quadratic formula always works — for any a, b, and c (as long as a ≠ 0).

Common Mistakes to Avoid

Mistake 1 — Forgetting the ±The formula produces two answers: one with + and one with −. Writing only one means you've missed half the solution.
Mistake 2 — Sign error on −bIf b = −5, then −b = +5. Always substitute −b, not b. Writing it out explicitly prevents this error.
Mistake 3 — Dividing only part of the numerator by 2aThe entire expression (−b ± √(b² − 4ac)) must be divided by 2a. Use parentheses to keep it grouped.
Mistake 4 — Not simplifying the square rootIf the discriminant is a perfect square (e.g. 49), simplify √49 = 7 before continuing. Leaving it as √49 in the final answer is not fully simplified.
Mistake 5 — Using a = 0If a = 0, the equation is linear, not quadratic. The quadratic formula requires a ≠ 0 — division by 2a would be division by zero.

Frequently Asked Questions

Not sure whether to factor or use the formula? Read quadratic formula vs factoring for a quick way to decide.