The quadratic formula is usually handed to students as one long line to memorise, and memorised lines are easy to misremember under pressure. It makes far more sense taken apart: one piece of it, the discriminant, tells you what kind of answer to expect before you compute anything, and the rest is arithmetic you can follow and check.
This guide explains the formula term by term through one worked example, x^2 - 5x + 6 = 0, using the free Math Formula Reference and Solver on Ovatly. The solver works the same example with full steps, gives the discriminant, the roots and the vertex, and adds a graph sketch, so every step here can be checked against the tool as you read.
Contents
- Quick answer
- The shape of a quadratic equation
- The discriminant decides first
- The two roots, one at a time
- The vertex and the graph sketch
- How to solve a quadratic, step by step
- Worked example: x^2 - 5x + 6 = 0 in full
- When the discriminant is negative
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
Quick answer
For x^2 - 5x + 6 = 0, the discriminant is 25 - 24 = 1. Because it is positive, the equation has two real roots: x = 3 and x = 2. The vertex is (2.5, -0.25). Run the same equation through the Math Formula Reference and Solver and it returns the discriminant, both roots and the vertex with working steps and a graph sketch. If the discriminant of an equation comes out negative, there are no real roots, and the solver gives the complex roots instead.
The shape of a quadratic equation
A quadratic equation is written as ax^2 + bx + c = 0, and the formula works on the three coefficients. In the worked example, x^2 - 5x + 6 = 0, the coefficient a is 1 (the number multiplying x^2), b is -5, and c is 6. Naming those three correctly, signs included, is the whole setup.
The formula itself reads: x = (-b ± √(b^2 - 4ac)) / 2a. It looks dense, but it has only three moving parts. The term under the root sign, b^2 - 4ac, is the discriminant. The ± sign is why most quadratics have two answers rather than one. And the whole numerator is divided by 2a.
The discriminant decides first
The discriminant is the part under the root: b^2 - 4ac. For the worked example, b^2 is (-5)^2, which is 25, and 4ac is 4 x 1 x 6, which is 24, so the discriminant is 25 - 24 = 1.
That single number settles the shape of the answer before any root is computed. A positive discriminant, like this 1, means the root sign contains a real value and the equation has two real roots. A negative discriminant means the root sign would contain a negative number, so the equation has no real roots at all. Checking it first prevents wasted work: you know what kind of answer you are looking for before you go looking for it.
The two roots, one at a time
With the discriminant known, the rest of the formula is substitution. The -b term is 5, the root of the discriminant is √1, which is 1, and 2a is 2. The ± sign splits the calculation into two passes:
- First pass, with the plus: x = (5 + 1) / 2 = 6 / 2 = 3.
- Second pass, with the minus: x = (5 - 1) / 2 = 4 / 2 = 2.
So the two roots are x = 3 and x = 2. Both are genuine answers: substituting either value back into x^2 - 5x + 6 gives 0, which is exactly what a root means. The solver shows the same steps, so hand work and the tool can be compared line by line.
The vertex and the graph sketch
The solver also returns the vertex, the turning point of the graph: (2.5, -0.25) for this equation. The first coordinate, 2.5, sits exactly halfway between the two roots, 3 and 2, which is a quick sanity check on both numbers at once: roots not centred on it signal an arithmetic slip somewhere.
The solver pairs the vertex with a graph sketch, so the algebra and the picture arrive together. The sketch crosses the axis at the two roots and turns at the vertex, which is often what makes the two-roots result feel obvious rather than mechanical.
How to solve a quadratic, step by step
- Open the Math Formula Reference and Solver and choose the quadratic solver.
- Read the coefficients off your equation: a, b and c, with their signs.
- Enter the coefficients and run the solver.
- Read the discriminant first and note what it predicts: real roots or none.
- Read the roots and the vertex, then compare them with the working steps and the formula reference card before writing the answer down.
Worked example: x^2 - 5x + 6 = 0 in full
Here is the complete run in one place. The equation is x^2 - 5x + 6 = 0, so a = 1, b = -5 and c = 6.
Discriminant: b^2 - 4ac = 25 - 24 = 1. Positive, so expect two real roots.
Roots: x = (5 + 1) / 2 = 3, and x = (5 - 1) / 2 = 2.
Vertex: (2.5, -0.25), centred between the roots, as it should be.
That is the entire method. A harder equation changes the arithmetic, sometimes to roots that are not whole numbers, but the order, discriminant first, roots second, vertex as the check, stays identical.
When the discriminant is negative
Not every quadratic has real roots. When the discriminant comes out negative, the honest answer is that the equation has no real roots, and many students stop there, unsure whether they erred. A negative discriminant is not an error; it is a result, and it is the case the discriminant check exists to catch early.
The solver does not stop there. It gives the complex roots, so the equation still gets a complete answer. A negative discriminant is a signpost to that other form of the answer, not a dead end.
Limitations and honest tradeoffs
The tool does no units handling. If a problem mixes units, convert everything to one unit before you start, because the solver treats the numbers as pure numbers and the answer inherits the single unit you kept throughout.
Results are shown to at most 10 significant digits. That is far beyond school precision, but it is a display limit worth knowing: with a long decimal root, what you copy down is the value as shown, not an infinite expansion.
The solver's scope is also specific: alongside quadratics it covers Pythagoras, slope and distance between two points, and areas and volumes for a circle, triangle, rectangle, sphere, cylinder and cube, each with working steps and formula reference cards. It is not a general algebra system for everything else.
Common mistakes
- Dropping the sign of b. In x^2 - 5x + 6, b is -5, not 5. The -b in the formula then becomes 5. Mixing this up flips both roots.
- Computing 4ac carelessly. Here it is 4 x 1 x 6 = 24. An error in the discriminant poisons every step after it.
- Stopping after one root. The ± sign means two passes. Most quadratics with a positive discriminant have two roots, and an answer with one is half an answer.
- Reading a negative discriminant as a mistake. It is a valid result: no real roots, and the solver gives the complex roots.
FAQs
What does the discriminant tell you before you solve? The discriminant is the part of the formula under the root sign, and its sign decides the kind of answer first. In the worked example it is 1, a positive value, so the equation has two real roots, 3 and 2.
What happens when the discriminant is negative? A negative discriminant means the equation has no real roots. The solver still gives the complex roots instead of stopping at no solution.
Does the solver show its working? Yes. Each solver shows working steps, and the tool also carries formula reference cards, so you can check a hand calculation against the steps rather than trusting a bare answer.
What else can the tool solve besides quadratics? It also solves Pythagoras problems, slope and distance between two points, and areas and volumes for a circle, triangle, rectangle, sphere, cylinder and cube.
How precise are the results? Results are shown to at most 10 significant digits. The tool does no units handling, so keep one unit throughout a problem and the answer comes out in that same unit.
Conclusion
The quadratic formula stops being a memorised line once its parts are separated: the discriminant predicts the kind of answer, the ± sign produces the two roots, and the vertex checks them both. The Math Formula Reference and Solver runs that same sequence with visible steps, making it a checker for hand work, not a replacement for it. For the lookup side of a study session, our guide on how to find an element's atomic number, mass and symbol covers the periodic table card by card. For more guides in this series, see our Education and Research Tools guides.