ThisCalculator

Everyday

Quadratic Equation Calculator Solver: Steps & Formula

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Quadratic Equation Calculator Solver: Steps & Formula

This quadratic equation calculator solves equations of the form ax² + bx + c = 0 and returns the real or complex roots. You enter the coefficients a, b, and c, and the calculator applies the quadratic formula to give you the two solutions, along with the discriminant to show whether the roots are real, repeated, or complex.

Formula

The standard quadratic formula gives the solutions to ax² + bx + c = 0:

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

Where:

  • a – coefficient of x² (must not be zero)
  • b – coefficient of x
  • c – constant term
  • Δ = b² − 4ac – the discriminant, which determines the nature of the roots

The ± symbol means you calculate two values: one with addition and one with subtraction.

Worked Example

Using the default values: a = 1, b = −3, c = 2.

  1. Compute the discriminant: Δ = (−3)² − 4(1)(2) = 9 − 8 = 1
  2. First root: x� = (3 + √1) / (2·1) = (3 + 1) / 2 = 2
  3. Second root: x₂ = (3 − √1) / 2 = (3 − 1) / 2 = 1

The calculator returns x� = 2 and x₂ = 1, matching the manual calculation. You can verify by plugging either value back into the original equation: 1² − 3(1) + 2 = 0 and 2² − 3(2) + 2 = 0.

What the Discriminant Tells You

The discriminant (Δ = b² − 4ac) is the key to understanding the roots without solving fully:

  • Δ > 0 – two distinct real roots (the parabola crosses the x-axis twice)
  • Δ = 0 – exactly one real root (the parabola touches the x-axis at its vertex)
  • Δ < 0 – two complex conjugate roots (the parabola does not cross the x-axis)

For example, x² + 2x + 5 = 0 has Δ = 4 − 20 = −16, so the roots are complex: x = −1 ± 2i. Many calculators will show the complex form, but this one gives the discriminant so you can interpret the result yourself.

How to Use the Calculator Correctly

  1. Make sure the equation is in standard form: ax² + bx + c = 0. If it’s not, rearrange it first.
  2. Identify a, b, and c as numbers, including their signs. For example, 2x² − 5x + 3 = 0 gives a = 2, b = −5, c = 3.
  3. Enter the values, then read the two roots. If the discriminant is negative, the roots are complex and the calculator will still compute them using square roots of negative numbers (shown as imaginary units).

If your equation has a missing term, treat its coefficient as zero. For instance, 4x² − 9 = 0 has b = 0.

Common Mistakes and How to Avoid Them

  • Switching signs: Forgetting that b is negative leads to wrong roots. Always copy the sign exactly.
  • Dividing by 2a incorrectly: The entire numerator (−b ± √Δ) is divided by 2a, not just the square root.
  • Using a = 0: If a = 0, the equation is linear, not quadratic. The formula would involve division by zero.
  • Rounding too early: Keep full precision until the final answer to avoid rounding errors, especially when the discriminant is not a perfect square.

For example, solving 2x² + 3x − 5 = 0: Δ = 9 + 40 = 49, so x = (−3 ± 7)/4 gives x = 1 or x = −2.5. A common error is writing x = −3/4 ± 7/4, which is actually correct but often mis-simplified.

Why Use a Calculator Instead of Factoring?

Factoring works only when the roots are rational numbers. Many quadratic equations have irrational or complex roots, such as x² − 2x − 4 = 0, where the roots are 1 ± √5. The quadratic formula always works, regardless of the coefficients, as long as a ≠ 0. A calculator saves time on tedious arithmetic and reduces sign errors, making it useful for homework, engineering, physics, and any field that involves parabolic motion or optimization problems.

Quadratic equations appear in projectile motion (height vs. time), area problems, and break-even analysis. For instance, if you throw a ball upward with an initial velocity, the equation h(t) = −4.9t² + 20t + 1.5 gives its height in meters after t seconds. Solving for when h = 0 tells you when it hits the ground.

Limitations of the Quadratic Formula

The formula only works for equations of degree 2. For cubic or higher-degree polynomials, you need other methods. Also, when coefficients are extremely large or small, numerical precision can be an issue; using the alternate form x = 2c / (−b ∓ √Δ) can reduce rounding errors for one root. Additionally, the formula assumes real coefficients; if you work with complex coefficients, the same formula still applies but the arithmetic becomes more involved.

Frequently Asked Questions

Can I use this calculator for equations like 3x² = 12?

Yes. First, rewrite it as 3x² − 12 = 0, so a = 3, b = 0, c = −12. The calculator will give x = 2 and x = −2. Make sure to include the zero coefficient for b.

What if the discriminant is negative?

The calculator will output complex numbers using the imaginary unit i (where i² = −1). For example, x² + 4 = 0 gives x = 2i and x = −2i. The discriminant will be negative, indicating no real solutions.

How do I enter a fraction like 1/2 for a coefficient?

Enter the decimal equivalent (0.5) or the fraction as a division (1/2). The calculator accepts standard arithmetic expressions, so you can type 1/2 directly.

Why does the calculator show two roots when I only need one?

Quadratic equations always have two roots (possibly equal or complex). If you only need the positive root (e.g., for a physical length), ignore the negative one or check which makes sense in context. The calculator shows both for completeness.

Can I solve a quadratic equation by completing the square instead?

Yes, completing the square is an alternative method that also works for any quadratic. It involves rewriting ax² + bx + c as a(x − h)² + k, then solving. The quadratic formula is essentially the result of completing the square on the general equation.

What if my equation has a coefficient of x² that is 0?

Then it is not a quadratic equation; it is linear (bx + c = 0). The quadratic formula would involve division by zero, so it cannot be used. Solve it as a simple linear equation instead.

Related

Formula used
in a | Coefficient a | - | 1 | 0
in b | Coefficient b | - | -3 | 0
in c | Coefficient c | - | 2 | 0
out x1 | First root (x�) | - | (-b + sqrt(b^2 - 4*a*c)) / (2*a) | 4
out x2 | Second root (x₂) | - | (-b - sqrt(b^2 - 4*a*c)) / (2*a) | 4
out disc | Discriminant (b² - 4ac) | - | b^2 - 4*a*c | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.