Quadratic Equation Solver: Quadratic Formula, Roots and Discriminant With Steps

Solve ax² + bx + c = 0 in seconds. Enter a, b and c, or type the whole equation, and Mathvelo returns both roots, real or complex, with the discriminant and every step of the quadratic formula, so the working can be checked on paper.

What Is a Quadratic Equation?

A quadratic equation is a polynomial equation of degree two, written ax² + bx + c = 0 with a ≠ 0. If a were 0 the x² term would vanish and the equation would be linear. Its graph is a parabola, and the solutions are called roots or zeros. Geometrically they are the x-intercepts, the places where the curve crosses the x-axis.

Equations rarely arrive in that tidy shape. x² = 5x − 6 and (x + 3)(x − 1) = 5 are both quadratics, and the calculator expands and rearranges them into standard form first, so you never have to do it by hand.

How to Use the Quadratic Equation Calculator

  1. Pick an input mode (a · b · c, a full equation, three points or known roots) and enter, for example, 2x^2 + 4x = 6.
  2. Read the roots first, then open the steps to see the discriminant and the formula applied.
  3. Check them: the roots should add up to −b/a and multiply to c/a.

Equations with no real roots are not an error. When Δ is negative, the answer is a pair of complex numbers, and the parabola simply floats above the x-axis.

Which Method Should You Use?

If the numbers look like…Reach forWhy
Small integers, Δ a perfect squareFactoringFastest by eye
Anything, or you want a guaranteeQuadratic formulaNever fails
b is even, or you need the vertexCompleting the squareGives (x − h)² + k directly
Δ < 0Formula, then conjugatesRoots come as p ± qi

An honest opinion: factoring is overrated as a first move. It is quick when it works, but students burn minutes hunting for factor pairs that do not exist. Completing the square is underrated, because it is the only method that explains where the formula comes from. And the old advice to “just use the formula every time” is wrong for exams without a calculator, where Δ = 49 should send you to factoring.

The Quadratic Formula and the Discriminant

The formula is x = (−b ± √(b² − 4ac)) ÷ 2a. The expression under the root, Δ = b² − 4ac, is the discriminant. Positive means two real roots, zero means one repeated root, and negative means a complex conjugate pair.

Example: 2x² − 4x − 6 = 0

2x² − 4x − 6 = 0

  1. Divide by 2: x² − 2x − 3 = 0, so a = 1, b = −2, c = −3.
  2. Δ = 4 + 12 = 16, and √16 = 4.
  3. x = (2 ± 4) ÷ 2, so x = 3 or x = −1.
  4. Check: 3 + (−1) = 2 = −b/a and 3 × (−1) = −3 = c/a.

Answer: x = 3 or x = −1

For x² + 2x + 5 = 0, Δ = −16, so x = −1 ± 2i. The parabola never touches the axis, and its vertex (−1, 4) sits above it.

What 6,498 Equations Reveal

To see how often each case really occurs, we solved every equation ax² + bx + c = 0 with whole-number coefficients from −9 to 9 and a ≠ 0, 6,498 in all, using exact arithmetic.

OutcomeCountShare
Two complex roots2,45437.8%
Two real roots3,98661.3%
…of which Δ is a perfect square99015.2%
One repeated root580.9%

Only 1,048 of the 6,498 (16.1%) factor over the integers. Textbook problems are chosen from that small slice, which is why factoring feels easy in class and fails on real data.

A Real Example: Projectile Height

A ball is thrown upward at 20 m/s from 1.5 m. Its height is h = −4.9t² + 20t + 1.5. Setting h = 0 gives Δ = 429.4, so t ≈ 4.1553 s and t ≈ −0.0737 s. The negative root is a valid solution of the equation but not of the situation, so it is discarded. The vertex gives the peak: t ≈ 2.04 s at about 21.9 m.

Our Take: What Is Overrated, Underrated and Plain Wrong

Overrated: factoring by trial and error. Only about 16% of random integer quadratics have a perfect-square discriminant and factor neatly, so guessing fails most of the time.

Underrated: the discriminant b² − 4ac. One subtraction tells you two roots, one root or none before you do any real work.

Plain wrong: the idea that a negative discriminant means “no solution”. There are no real roots, but there are two complex ones, and the calculator shows both.

Common Mistakes and a Numerical Trap

  • Forgetting that ± gives two roots, or dropping the 2 in 2a.
  • Not moving everything to one side first, so c is wrong.
  • Subtracting nearly equal numbers. In x² − 10⁸x + 1 = 0 the naive formula in double precision returns 7.45 × 10⁻⁹ for the small root, when the true value is 1 × 10⁻⁸, a 25% error.

The fix is to compute the large root first, then use x₁ × x₂ = c/a for the small one. This calculator works in exact fractions and radicals, so it avoids the trap entirely.

Why Students Get Stuck on Quadratic Equations, and What a Good Calculator Should Do

Searching for help with quadratic equations usually starts late at night with one problem that will not work out. There are three methods, and choosing one is the first problem. A good calculator fixes that by showing each step, checking its own answer and explaining the idea in plain words. This section covers what students struggle with, what they want, and how this page responds.

In short: students need to choose a method, solve, and verify the roots, not just see a final number, and a calculator earns trust only when its steps can be checked.

Understand the frustrations and desires

What they feel, and what they want

Each frustration points to a wish: a clearer step, a built-in check, an explanation in plain words.

  • Wants the method chosen and explained
  • Wants the discriminant interpreted
  • Wants the roots checked by substitution

Build the page around their intent

Each intent has a place on this page

The page follows intent, not features, so each need has a clear starting point.

  • I need an answer now: type the problem into the calculator at the top of this page.Solve x^2 - 5x + 6 = 0
  • I need to understand: the sections below explain the idea in plain words and list the common mistakes.
  • I need to check my work: every step is shown, so the first line that differs from yours is the one to study.
  • I need practice: open the solver, tap + and choose Create Practice Test.
  • I need it explained aloud: in the solver, tap + and choose Create Video.

Quadratic Equation: Questions People Ask

How do you solve a quadratic equation?

Write it as ax² + bx + c = 0, compute Δ = b² − 4ac, then use x = (−b ± √Δ) ÷ 2a. Factoring or completing the square give the same roots.

Can a quadratic equation have no real solution?

Yes. When Δ is negative the parabola never meets the x-axis, and the solutions are two complex numbers, p + qi and p − qi.

What does a = 0 mean?

Then there is no x² term and the equation is linear, so it has one solution, not two. The calculator tells you when this happens.

Why does the answer show a square root instead of a decimal?

An exact radical such as (3 ± √5) ÷ 2 is precise. The decimal beside it is rounded to the precision you pick.

How do I use the quadratic formula?

Write the equation as ax² + bx + c = 0, then x = (−b ± √(b² − 4ac)) ÷ 2a. The ± gives the two roots.

What does the discriminant tell me?

Above 0: two real roots. Exactly 0: one repeated root. Below 0: two complex roots and the parabola never touches the x-axis.

Which is better: factoring or the quadratic formula?

Factoring is quicker when it works, but the formula always works. If you are unsure, check whether the discriminant is a perfect square first.

↑