Quadratic equations are the first equations most students meet that cannot be solved by simply moving terms around. They appear whenever something is squared: the area of a rectangle, the path of a thrown object, break-even points where revenue and cost curves meet. And they can have two answers, one answer or no real answer at all.
This guide covers the three standard solving methods, explains when each is the fastest, shows how the discriminant predicts what kind of answers you will get before you do any work, and explains the vertex and graph. All results were checked with our solver.
The standard form
A quadratic equation can always be rearranged to:
ax² + bx + c = 0, with a ≠ 0
a, b and c are the coefficients. If a = 0 there is no x² term and the equation is linear. A missing term just has a coefficient of 0: x² − 9 = 0 has a = 1, b = 0, c = −9.
The solutions are called roots. On a graph of y = ax² + bx + c, a U-shaped curve called a parabola, the real roots are where the curve crosses the x-axis.
Method 1: factoring
If you can write the left side as a product of two brackets, each bracket gives a root, because a product is zero only if one of its factors is zero.
Example: x² + 3x − 70 = 0. You need two numbers that multiply to −70 and add to 3: 10 and −7.
(x + 10)(x − 7) = 0
x = −10 or x = 7
Factoring is the fastest method when it works. It only works neatly when the roots are rational numbers.
Method 2: completing the square
Rewrite the equation so that one side is a perfect square.
Example: x² − 2x − 1 = 0
x² − 2x = 1
x² − 2x + 1 = 2 (add (b/2)² = 1 to both sides)
(x − 1)² = 2
x − 1 = ±√2
x = 1 + √2 or 1 − √2 (≈ 2.414 and −0.414)
This method is how the quadratic formula is derived, and it gives the vertex form of the parabola directly.
Method 3: the quadratic formula
Completing the square on the general equation gives a formula that always works:
x = (−b ± √(b² − 4ac)) ÷ 2a
Example: 2x² − 4x − 6 = 0
a = 2, b = −4, c = −6
b² − 4ac = 16 + 48 = 64
x = (4 ± 8) ÷ 4
x = 3 or x = −1
The same equation factors as 2(x − 3)(x + 1) = 0, which is a good cross-check.
The discriminant: know the answer type first
The expression under the square root, Δ = b² − 4ac, is called the discriminant. Its sign tells you what kind of roots to expect.
| Discriminant | Roots | Graph | Example |
|---|---|---|---|
| Δ > 0, perfect square | Two rational roots | Crosses the x-axis twice | 2x² − 4x − 6 (Δ = 64) |
| Δ > 0, not a perfect square | Two irrational roots | Crosses twice | x² − 2x − 1 (Δ = 8) |
| Δ = 0 | One repeated root | Touches the axis once | x² − 6x + 9 (Δ = 0), x = 3 |
| Δ < 0 | Two complex roots | Never touches the axis | x² + 2x + 5 (Δ = −16) |
When Δ is negative, the formula needs the square root of a negative number. For x² + 2x + 5 = 0:
x = (−2 ± √(−16)) ÷ 2 = (−2 ± 4i) ÷ 2 = −1 ± 2i
These are complex conjugate roots. In a physical problem, a negative discriminant usually means "this never happens", such as a thrown ball that never reaches a certain height.
The vertex and axis of symmetry
The turning point of the parabola, the vertex, is at:
h = −b ÷ 2a, k = value of ax² + bx + c at x = h
For 2x² − 4x − 6: h = 4 ÷ 4 = 1, and k = 2 − 4 − 6 = −8, so the vertex is (1, −8). The axis of symmetry is the line x = 1, exactly halfway between the roots 3 and −1.
If a > 0 the parabola opens upwards and the vertex is a minimum. If a < 0 it opens downwards and the vertex is a maximum. That makes the vertex the answer to optimisation questions such as "what price gives the highest revenue?".
Two quick checks come from Vieta's formulas: the roots add up to −b/a and multiply to c/a. For 2x² − 4x − 6, the sum is 3 + (−1) = 2 = 4/2 and the product is −3 = −6/2.
A worked word problem
A rectangular storage area has a length 3 m longer than its width, and an area of 70 m². Find the width.
w(w + 3) = 70
w² + 3w − 70 = 0
(w + 10)(w − 7) = 0
w = 7 (reject −10, a length cannot be negative)
The area is 7 m by 10 m. Always check that each root makes sense in context.
How to use the Quadratic Equation Solver
- Open the Quadratic Equation Solver.
- Enter a, b and c. Integers, decimals and fractions such as 1/2 are accepted. Enter 0 for a missing term.
- The equation you entered is displayed in standard form, with a graph of the parabola marking the vertex and any x-intercepts.
- Read the Solutions. Roots are shown exactly: as whole numbers, fractions, surds such as 1 + √2, or complex numbers such as −1 + 2i, with Decimal roots when they are not whole numbers.
- The rows list the Discriminant Δ = b² − 4ac, the Nature of roots, the Factored form when it exists, the Vertex (h, k), the Axis of symmetry, the y-intercept, the Sum / product of roots and whether the parabola Opens upward or downward.
- Open the steps to follow the quadratic formula with your numbers substituted.
If you enter a = 0, the tool solves the linear equation instead and says so.
Other ways to solve quadratics
- Graphing: plot the curve and read off where it crosses the x-axis. Good for intuition, limited in precision.
- Spreadsheets: type the quadratic formula into two cells, or use Goal Seek (Excel) to find where the expression equals zero. Neither gives exact surd or complex answers.
- Graphing and CAS calculators: many have a polynomial solver that returns roots, sometimes including complex ones.
The square roots that appear in answers can be simplified with the Square Root Calculator, and fractions checked with the Fraction Calculator. For straight lines rather than curves, see the Slope Calculator.
Common mistakes
Not setting the equation to zero first
x² + 3x = 70 must become x² + 3x − 70 = 0 before you read off c.
Sign errors with −b
If b = −4, then −b = +4. Put negative values in brackets when substituting.
Dividing only part of the numerator by 2a
The whole of −b ± √Δ is divided by 2a, not just the square root.
Dividing by x
Dividing both sides of x² = 5x by x loses the root x = 0. Factor instead: x(x − 5) = 0.
Frequently asked questions
What does the discriminant tell you?
Its sign tells you the type of roots. Positive means two real roots, zero means one repeated root, and negative means two complex roots with no x-intercepts.
Which method should I use to solve a quadratic?
Try factoring first if the numbers are small. If it does not factor quickly, use the quadratic formula, which always works. Completing the square is best when you also need the vertex form.
Can a quadratic equation have no solution?
It has no real solution when the discriminant is negative, but it always has two complex solutions, which may be equal.
How do I find the vertex of a parabola?
The x-coordinate is −b ÷ 2a. Substitute it back into the equation to get the y-coordinate. For 2x² − 4x − 6, that gives (1, −8).
What if a = 0?
Then there is no x² term and the equation is linear, bx + c = 0, with the single solution x = −c/b when b is not zero.