← All blog posts

How to use the Quadratic Equation Solver — step by step

WhiteUI · A plain-English guide to the Quadratic Equation Solver

The Quadratic Equation Solver takes three numbers — a, b and c — and returns the values of x that make ax² + bx + c equal zero. You type the numbers in and the answer appears as you type. There is nothing to submit and nothing to install.

The three steps

  • Step 1 — Enter a, b and c. a is the number in front of x², b is the number in front of x, and c is the number on its own. The page starts with a = 1, b = −5 and c = 6, which is the equation x² − 5x + 6 = 0.
  • Step 2 — Read the discriminant. It is shown under the roots. The discriminant is b² − 4ac, and it tells you how many real roots there are before the roots themselves are worked out.
  • Step 3 — Read the roots. The big answer at the top gives both roots. Underneath, a short line shows the working, and the bar below it compares the two roots.

Change any number and the answer updates at once, so you can try a few equations without starting over.

Worked example

Take x² − 5x + 6 = 0, the values the page starts with. The discriminant is (−5)² − 4 × 1 × 6 = 25 − 24 = 1, so there are two real roots. The quadratic formula gives (5 ± 1) ÷ 2, which is x = 3 and x = 2.

D = b² − 4ac = (−5)² − 4 × 1 × 6 = 25 − 24 = 1
x = (5 ± 1) ÷ 2 → x = 3 and x = 2

Check both: 3² − 5 × 3 + 6 = 9 − 15 + 6 = 0, and 2² − 5 × 2 + 6 = 4 − 10 + 6 = 0. Both roots work.

y = x² − 5x + 6 crosses the x-axis at 2 and 3012345
The curve crosses the x-axis at x = 2 and x = 3 — those crossings are the roots.

The mistake to avoid

Entering the numbers in the wrong boxes. If you swap b and c and enter a = 1, b = 6, c = −5, you are solving x² + 6x − 5 = 0, a different equation with different roots. Before you trust an answer, check the labels: a sits with x², b sits with x, and c stands on its own.

When to use the solver, and when to factor by hand

Factoring by hand is quick when the numbers are friendly, and the discriminant tells you whether they are. Take x² − 3x − 10 = 0: the discriminant is (−3)² − 4 × 1 × (−10) = 9 + 40 = 49, a perfect square, so the roots are whole numbers — (3 ± 7) ÷ 2 gives x = 5 and x = −2. Two numbers that multiply to −10 and add to −3 are −5 and 2, so the equation factors as (x − 5)(x + 2) = 0, and the roots fall out in a line.

When the discriminant is not a perfect square, factoring by hand turns into guesswork, and the solver is faster and more reliable: type a, b and c, read the discriminant, read the roots. The habit that saves the most time is checking the discriminant first — five seconds of arithmetic that tells you which route to take, instead of starting down one route and finding out halfway that it was the wrong one.

x² − 3x − 10 = 0: D = 9 + 40 = 49, x = (3 ± 7) ÷ 2 → x = 5 and x = −2

What to check before you trust the answer

Three checks, in order. First, are a, b and c in the right boxes? Swapping b and c solves a different equation, and the solver cannot know you meant something else. Second, the sign of b: in x² + 4x + 3 = 0, b is 4, so −b is −4, and the roots are (−4 ± 2) ÷ 2, which is x = −1 and x = −3. Writing −b as 4 instead flips both roots to 1 and 3, and both are wrong.

Third, substitute. With x = −1: (−1)² + 4 × (−1) + 3 = 1 − 4 + 3 = 0. With x = −3: (−3)² + 4 × (−3) + 3 = 9 − 12 + 3 = 0. Both roots check out to exactly 0, so the answer is right. A root that gives anything other than 0 tells you the answer is wrong; a tiny leftover from a rounded root, like 0.0044, is just rounding, not a mistake — the size of the leftover tells you which one it is.

x² + 4x + 3 = 0: D = 16 − 12 = 4, x = (−4 ± 2) ÷ 2 → x = −1 and x = −3

Frequently asked questions

What do a, b and c mean?

a is the coefficient of x², b is the coefficient of x, and c is the constant. In x² − 5x + 6 = 0, a = 1, b = −5 and c = 6.

What if a is 0?

Then the equation is not quadratic; it is bx + c = 0, with one root, x = −c ÷ b. The solver says so and gives that root.

Do I need to simplify the equation first?

No. Type the numbers as they are; the solver handles fractions and negatives.

How do I check the answer?

Put each root back into ax² + bx + c. If you get 0, the root is right.

More guides on the Quadratic Equation Solver

Try it yourself

Solve a quadratic equation, see the discriminant and both roots — free, in your browser.

Open the Quadratic Equation Solver