ThisCalculator

Everyday

Online Quadratic Equation Solver: Steps & Examples

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.

Online Quadratic Equation Solver: Steps & Examples

An online quadratic equation solver computes the real or complex roots of any equation in the form ax² + bx + c = 0. You enter the three coefficients a, b, and c, and the solver returns the two solutions using the quadratic formula, often with a step-by-step breakdown. Most free solvers also calculate the discriminant, which tells you whether the roots are real and distinct, real and equal, or complex.

Formula

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

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

  • a = coefficient of x² (must be nonzero)
  • b = coefficient of x
  • c = constant term
  • The expression under the square root, b² − 4ac, is called the discriminant.

Worked Example

Solve x² − 3x − 4 = 0 using the default values a = 1, b = −3, c = −4.

  1. Compute the discriminant: (−3)² − 4(1)(−4) = 9 + 16 = 25.
  2. Take the square root: √25 = 5.
  3. First root: (3 + 5) / 2 = 8 / 2 = 4.
  4. Second root: (3 − 5) / 2 = −2 / 2 = −1.

The solutions are x = 4 and x = −1. You can verify by plugging either value back into the original equation: 4² − 3(4) − 4 = 16 − 12 − 4 = 0.

How an Online Solver Works

Behind the scenes, the solver reads your three inputs, substitutes them into the quadratic formula, and performs the arithmetic. It typically does the following:

  • Checks that a is not zero (if a = 0, the equation is linear, not quadratic).
  • Calculates the discriminant to determine the nature of the roots.
  • Applies the ± sign to produce two roots.
  • If the discriminant is negative, it outputs complex numbers in the form p + qi and p − qi.

Many solvers also show intermediate steps, which helps you check your own hand calculations. The process is identical to what you would do with a pencil and paper, but faster and without arithmetic slips.

Why Use a Quadratic Solver?

Quadratic equations appear in physics (projectile motion), geometry (area problems), economics (profit maximization), and engineering (circuit analysis). A solver is useful when you need a quick answer, want to verify homework, or are dealing with coefficients that are decimals or fractions. It also helps you focus on interpreting the result rather than getting bogged down in arithmetic.

However, a solver does not replace understanding. Knowing how to derive the quadratic formula, complete the square, or factor is still essential for exams and for recognizing when a quadratic is easy to solve by inspection.

Common Mistakes and How to Avoid Them

Even with a solver, errors can creep in. The most frequent issues are:

  • Sign errors: Entering −3 instead of 3 for b completely changes the roots. Double-check that you include the sign as it appears in the equation.
  • Forgetting to move all terms to one side: The equation must be in the form ax² + bx + c = 0. If you have 2x² + 3 = 5x, you must rewrite it as 2x² − 5x + 3 = 0 before entering coefficients.
  • Misreading the discriminant: A negative discriminant does not mean “no solutionâ€� – it means two complex solutions. Many students mistakenly stop at “no real roots.â€�
  • Rounding too early: When roots are irrational, like (1 + √5)/2, rounding to 1.618 is fine for a decimal approximation, but the exact form is more precise. Use the solver’s exact output when available.

Interpreting the Discriminant

The discriminant, often denoted Δ, tells you what kind of roots to expect:

  • Δ > 0: Two distinct real roots. The parabola crosses the x-axis at two points.
  • Δ = 0: Exactly one real root (a repeated root). The parabola touches the x-axis at its vertex.
  • Δ < 0: Two complex conjugate roots. The parabola does not intersect the x-axis.

For example, the equation x² + 2x + 5 = 0 has Δ = 4 − 20 = −16, so the roots are x = −1 ± 2i. A good solver will display these as −1 + 2i and −1 − 2i, not just “no solution.�

Choosing a Reliable Solver

Not all online solvers are equal. Look for these features:

  • Shows steps: A solver that displays the substitution and simplification helps you learn and verify.
  • Handles complex roots: Some basic tools only work with real numbers. If you study advanced math, you need one that outputs imaginary numbers.
  • Allows fractional and decimal coefficients: Real problems often have 0.5 or â…“ as coefficients, so the input should accept them.
  • No hidden requirements: Free, no sign-up, and works on mobile browsers.

Many calculator sites also offer graphing, which lets you see the parabola and the roots visually. That can deepen your intuition about what the numbers mean.

Limitations of the Quadratic Formula

The formula works for every quadratic equation, but it is not always the fastest method. Factoring is quicker when the roots are integers, and completing the square is better when the coefficient of x² is 1 and the middle term is even. The quadratic formula is the universal fallback – it always works, but it can produce messy expressions that are hard to simplify by hand. A solver handles that mess for you, but it may not simplify radicals as much as you would like. For instance, it might output (2 + √12)/2 instead of 1 + √3. Check the solver’s simplification settings or simplify manually if needed.

Frequently Asked Questions

What if the coefficient a is zero?

If a = 0, the equation is linear (bx + c = 0), not quadratic. The quadratic formula would involve division by zero, so it cannot be used. Solve it as a linear equation: x = −c/b. Most solvers will reject a = 0 with an error message.

Can a quadratic equation have only one solution?

Yes, when the discriminant is zero. The two roots coincide, so there is one distinct real solution. For example, x² − 6x + 9 = 0 has Δ = 0 and the only root is x = 3. Graphically, the parabola just touches the x-axis at its vertex.

How do I enter an equation like 2x² + 3x = 5?

First, rearrange it to standard form: 2x² + 3x − 5 = 0. Then enter a = 2, b = 3, c = −5. If you enter c = 5, you are solving a different equation and will get wrong roots.

What does a negative discriminant mean?

It means the equation has two complex (imaginary) roots. They are always conjugates of each other, like 2 + 3i and 2 − 3i. The parabola does not cross the x-axis, so there are no real solutions. Some solvers say “no real roots� but still provide the complex answers if you look for them.

Is the quadratic formula the same as completing the square?

Completing the square is a method to solve quadratics, and the quadratic formula is derived from it. They give the same results. The formula is a shortcut that avoids the algebraic steps of completing the square every time. Both methods are valid, and a solver typically uses the formula because it is direct.

Why does my solver give two answers that look different from my textbook?

Often the answers are mathematically identical but written differently. For example, (2 + √8)/2 simplifies to 1 + √2. The solver may not simplify fully. You can simplify the radical by factoring out perfect squares: √8 = 2√2. Always check whether the two forms are equivalent before assuming an error.

Related

Formula used
in a | Coefficient a | - | 1 | 0
in b | Coefficient b | - | -3 | 0
in c | Coefficient c | - | -4 | 0
out root1 | First root | - | (-b + sqrt(b^2 - 4*a*c)) / (2*a) | 4
out root2 | Second root | - | (-b - sqrt(b^2 - 4*a*c)) / (2*a) | 4
out disc | Discriminant | - | 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.