Math & Algebraic Calculators

Quadratic Equations Explained: Solving Them Step by Step

A quadratic is just an equation with an x-squared in it — and there are only three ways to solve one. Factorising, completing the square, and the formula, each worked through with real numbers.

A hand-drawn parabola on graph paper with its two roots marked on the x-axis.
In short: A quadratic equation has the form ax² + bx + c = 0, and it is solved by factorising, by completing the square, or by the quadratic formula x = (−b ± √(b² − 4ac)) / 2a. The discriminant b² − 4ac tells you in advance how many real answers there are: two if it is positive, one repeated root if it is zero, and none if it is negative.

What makes an equation quadratic

A quadratic equation is an equation that contains an x-squared term and nothing with a higher power. The standard form is ax² + bx + c = 0, where a, b and c are numbers and a is not zero. If a were zero, the x-squared term would vanish and you would be left with an ordinary linear equation, which is a different and much easier problem. The x² is what gives quadratics their character: it means the graph is a curve — a parabola — rather than a straight line, and it means there can be two answers instead of one.

That is the first thing to get comfortable with. A linear equation like 2x + 6 = 0 has exactly one solution, x = −3. A quadratic can have two, one, or none. The equation x² − 5x + 6 = 0 has two solutions, x = 2 and x = 3, because both values make the left-hand side equal to zero. The equation x² − 4x + 4 = 0 has one repeated solution, x = 2. And x² + 1 = 0 has no real solution at all, because a square is never negative, so x² + 1 is always at least 1. All three cases come from the same formula, and knowing which case you are in before you start saves a lot of wasted effort.

Method one: factorising

Factorising is the fastest method when it works, and it works when the numbers are friendly. The idea is to write the quadratic as two brackets multiplied together. For x² − 5x + 6 = 0, you need two numbers that multiply to 6 and add to −5. Those numbers are −2 and −3, so the equation becomes (x − 2)(x − 3) = 0. A product is zero only when one of its factors is zero, so either x − 2 = 0 or x − 3 = 0, giving x = 2 or x = 3. Check them: 2² − 10 + 6 = 0, and 3² − 15 + 6 = 0. Both work.

Try another: x² + 6x + 5 = 0. You need two numbers that multiply to 5 and add to 6: 1 and 5. So (x + 1)(x + 5) = 0, giving x = −1 or x = −5. And one with a negative constant: x² + 3x − 10 = 0. The numbers must multiply to −10 and add to 3, which means one is positive and one is negative: 5 and −2. So (x + 5)(x − 2) = 0, giving x = −5 or x = 2. The sign pattern is the part people get wrong most often. When the constant is positive, both numbers have the same sign as the middle term. When the constant is negative, the numbers have opposite signs, and the larger one takes the sign of the middle term.

Factorising gets harder when a is not 1. For 2x² − 7x + 3 = 0, you need a split of the middle term: 2x² − 6x − x + 3 = 0, which groups as 2x(x − 3) − 1(x − 3) = 0, so (2x − 1)(x − 3) = 0, giving x = 0.5 or x = 3. That works, but it takes a good eye, and when the numbers are not friendly — 3x² + 5x − 7 = 0, say — factorising by inspection is a waste of time. That is when you reach for the formula instead.

Method two: completing the square

Completing the square is the method that explains why the formula works, and it is worth learning even if you usually use the formula. Take x² + 6x + 5 = 0. The first two terms, x² + 6x, are almost a perfect square: (x + 3)² expands to x² + 6x + 9, which is 4 more than we have. So x² + 6x + 5 = (x + 3)² − 4, and the equation becomes (x + 3)² = 4. Taking the square root of both sides gives x + 3 = 2 or x + 3 = −2, so x = −1 or x = −5 — the same answers factorising gave, reached by a different road.

The general move is always the same: halve the coefficient of x, square it, and adjust the constant to compensate. For x² + 8x + 3 = 0, half of 8 is 4, and 4² is 16, so x² + 8x + 3 = (x + 4)² − 13, giving (x + 4)² = 13 and x = −4 ± √13, which is about −0.39 or −7.61. Notice that the answers are not tidy whole numbers here, and that is fine — most quadratics do not have tidy answers, and a method that only works on tidy ones is not a method you can rely on. Completing the square also shows you the vertex of the parabola: for x² + 6x + 5, the vertex is at (−3, −4), the lowest point of the curve, which is the point where the squared term is zero.

Method three: the quadratic formula

The quadratic formula solves every quadratic, tidy or not, and it is simply completing the square done once, in general, for ax² + bx + c = 0. The result is x = (−b ± √(b² − 4ac)) / 2a. The ± sign is doing the work: it produces the two answers, one with the square root added and one with it subtracted. Run the quadratic equation calculator on any values of a, b and c and it applies this formula for you, but knowing what it is doing matters, because the formula is where most exam marks are lost — not in the arithmetic, but in the signs.

Work it through for 2x² − 7x + 3 = 0. Here a = 2, b = −7 and c = 3. The discriminant is b² − 4ac = 49 − 24 = 25, and √25 = 5. So x = (7 ± 5) / 4, giving x = 12/4 = 3 or x = 2/4 = 0.5. Now try one that does not factorise neatly: 3x² + 5x − 7 = 0. The discriminant is 25 + 84 = 109, and √109 is about 10.44. So x = (−5 ± 10.44) / 6, giving x ≈ 0.91 or x ≈ −2.57. Check the first: 3 × 0.91² + 5 × 0.91 − 7 = 2.48 + 4.55 − 7 = 0.03, which is zero to the accuracy of the rounding. A quick check like that catches sign errors before they cost marks.

EquationDiscriminant b² − 4acRoots
x² − 5x + 6 = 025 − 24 = 1x = 2, x = 3
x² − 4x + 4 = 016 − 16 = 0x = 2 (repeated)
x² + x + 1 = 01 − 4 = −3No real roots
2x² − 7x + 3 = 049 − 24 = 25x = 3, x = 0.5
3x² + 5x − 7 = 025 + 84 = 109x ≈ 0.91, x ≈ −2.57

The discriminant: knowing the answer before you start

The part under the square root in the formula, b² − 4ac, is called the discriminant, and it tells you how many real roots there are before you do any more work. If it is positive, there are two distinct real roots. If it is zero, there is one repeated root, and the parabola just touches the x-axis at its vertex. If it is negative, there are no real roots: the parabola sits entirely above or entirely below the axis, and the equation has only complex solutions, which most school courses do not require. Checking the discriminant first takes ten seconds and stops you from hunting for roots that do not exist.

It also tells you something about the graph. A positive discriminant means the parabola crosses the x-axis twice. A zero discriminant means it touches once. A negative discriminant means it never meets the axis at all. The vertex of the parabola sits at x = −b / 2a, which is the midpoint of the two roots when they exist, and the lowest or highest point of the curve depending on whether a is positive or negative. If a is positive, the parabola opens upwards and the vertex is a minimum; if a is negative, it opens downwards and the vertex is a maximum.

Where quadratics actually turn up

Quadratics are not an exam invention. A ball thrown into the air follows a parabola: its height after t seconds is something like h = 20t − 5t², and solving h = 0 tells you when it lands, while the vertex tells you the highest point. A farmer fencing a rectangular field with a fixed length of fence finds that the area is a quadratic in the length of one side, and the vertex gives the dimensions with the largest area. A business modelling profit against price finds the same shape: raise the price and each sale earns more, but fewer sales happen, so profit rises, peaks, and falls — and the peak is the vertex.

That is the reason quadratics are taught at all: they are the simplest curve that goes up and then comes down, or down and then up, and a surprising amount of the real world has that shape. The three methods are not three different subjects. Factorising is the quick route when the numbers cooperate, completing the square shows you the shape of the curve, and the formula is the route that always works. Learn the formula first, because it never lets you down, and learn factorising second, because it is faster when it works.

Mistakes worth not making

  • Forgetting the minus sign in −b. In 2x² − 7x + 3 = 0, b is −7, so −b is +7. Getting this one sign wrong flips both answers.
  • Dividing by 2 instead of 2a. The denominator is the whole of 2a — for a = 2, that is 4, not 2. A surprising number of wrong answers come from this alone.
  • Only taking the positive square root. The ± gives two answers, and dropping one of them loses half the marks.
  • Trying to factorise when the numbers are not friendly. If no two numbers jump out within a few seconds, use the formula instead of guessing brackets.
  • Writing the roots without checking them. Substitute each answer back into the original equation: if it does not give zero, something went wrong, and the check takes less time than the calculation.
  • Confusing the discriminant with the answer. The discriminant tells you how many roots there are; it is not a root itself.

One last habit that pays off: sketch the parabola, even roughly. If a is positive it opens upwards, the vertex is at x = −b / 2a, and the roots are where it crosses the axis. A sketch that disagrees with your answers — roots on the wrong side of the vertex, or a curve that should cross the axis but does not — is telling you the arithmetic went wrong somewhere, and it is usually right.

Authoritative Clarifications

Frequently Asked Questions

How do I know whether to factorise or use the quadratic formula?

Try factorising first: if two numbers that multiply to ac and add to b jump out within a few seconds, factorising is fastest. If they do not, use the quadratic formula — it works on every quadratic, tidy or not, and costs nothing extra.

What does a negative discriminant mean?

It means the equation has no real roots. The parabola never crosses the x-axis, so no real value of x makes the equation equal zero. The equation still has two complex roots, but most school and college courses do not require them.

Why is the formula x = (−b ± √(b² − 4ac)) / 2a?

It is the result of completing the square on the general equation ax² + bx + c = 0. The ± produces the two roots, the 2a in the denominator comes from halving the coefficient of x twice, and the discriminant b² − 4ac decides how many real roots there are.

What is the vertex of a parabola and how do I find it?

The vertex is the lowest point (if a is positive) or the highest point (if a is negative) of the parabola, and it sits at x = −b / 2a. Substitute that x value back into the equation to get the y-coordinate. It is also the midpoint between the two roots when they exist.

Can a quadratic equation have only one answer?

Yes, when the discriminant is exactly zero. Then both roots coincide: for x² − 4x + 4 = 0, the discriminant is 16 − 16 = 0 and the only root is x = 2, repeated. Graphically the parabola just touches the x-axis at its vertex.

Sources

This guide is general information only and is not regulated financial or medical advice. For decisions about your own money or health, speak to a qualified professional.

Dr. Alistair Bennett, Ph.D.

Dr. Alistair Bennett, Ph.D.

Fellow of the Royal Statistical Society | Senior Computational Modeler

Dr. Alistair Bennett holds a doctorate in Applied Mathematics from the University of Cambridge and has over fifteen years of specialized research experience in stochastic modeling, actuarial mathematics, and computational decision engines. At XCal UK, he oversees algorithmic integrity, verification formulas, and mathematical validation to ensure precision and regulatory alignment.

🎓 Ph.D. Applied Mathematics (Cantab), F.R.S.S., B.Sc. First Class Hons 📍 Cambridge / London, United Kingdom ✓ Mathematically Audited: December 2026