Quick reference
What a quadratic equation is
A quadratic equation is a polynomial equation of degree 2. The general form is ax2 + bx + c = 0, where a, b, and c are real numbers and a is not equal to zero. If a were zero, the x2 term would vanish and the equation would be linear, not quadratic.
The graph of a quadratic function y = ax2 + bx + c is a parabola. When a is positive the parabola opens upward. When a is negative it opens downward. The solutions to ax2 + bx + c = 0 are the x-coordinates of the points where the parabola crosses the x-axis (where y = 0). The number of such crossings — zero, one, or two — determines how many real solutions exist.
Examples of quadratic equations: x2 - 5x + 6 = 0, 2x2 + 3x - 2 = 0, x2 - 4 = 0, x2 + 1 = 0. The last example has no real solutions because no real number squared produces a negative result.
The discriminant — predicting solutions before solving
The discriminant D = b2 - 4ac tells you how many real solutions exist before you do any further calculation.
If D > 0: the equation has two distinct real roots. The parabola crosses the x-axis at two different points. If D = 0: the equation has exactly one real root (a repeated root). The parabola touches the x-axis at exactly one point, its vertex. If D < 0: the equation has no real roots. The solutions are complex (involve the square root of a negative number). The parabola does not cross the x-axis at all.
Example: for x2 - 5x + 6 = 0, a = 1, b = -5, c = 6. D = (-5)2 - 4(1)(6) = 25 - 24 = 1. Since D = 1 > 0, there are two distinct real roots.
Example: for x2 - 2x + 1 = 0, D = 4 - 4 = 0. One repeated root.
Example: for x2 + x + 1 = 0, D = 1 - 4 = -3 < 0. No real roots.
The quadratic formula
Worked examples — all methods
Find two numbers that multiply to c = 6 and add to b = -5. Those numbers are -3 and -2: (-3) x (-2) = 6 and (-3) + (-2) = -5. So: x2 - 5x + 6 = (x - 3)(x - 2) = 0. Setting each factor to zero: x - 3 = 0 gives x = 3. x - 2 = 0 gives x = 2. Verification: (3)2 - 5(3) + 6 = 9 - 15 + 6 = 0. Correct.
D = b2 - 4ac = 9 - 4(2)(-2) = 9 + 16 = 25. Square root of D = 5. x = (-3 + 5) / (2 x 2) = 2 / 4 = 0,5. x = (-3 - 5) / 4 = -8 / 4 = -2. Verification: 2(0,5)2 + 3(0,5) - 2 = 0,5 + 1,5 - 2 = 0. Correct.
D = 12 - 4(1)(1) = 1 - 4 = -3. Since D < 0, the square root of D is not real. The two complex solutions are x = (-1 + i*sqrt(3)) / 2 and x = (-1 - i*sqrt(3)) / 2, where i is the imaginary unit. The parabola y = x2 + x + 1 lies entirely above the x-axis and never crosses it.
Solve any quadratic equation
Enter a, b and c coefficients to get both roots, the discriminant, and step-by-step working.
Method 2: Completing the square
Completing the square converts ax2 + bx + c = 0 into the form (x + p)2 = q, which can then be solved by taking the square root of both sides.
For x2 + 6x + 5 = 0: Step 1: Move constant to right side: x2 + 6x = -5. Step 2: Add (b/2)2 = (6/2)2 = 9 to both sides: x2 + 6x + 9 = 4. Step 3: Factor the left side: (x + 3)2 = 4. Step 4: Square root both sides: x + 3 = +2 or x + 3 = -2. Step 5: Solve: x = -1 or x = -5.
Completing the square is more work than factoring or the quadratic formula for most equations, but it is important because it is the algebraic technique used to derive the quadratic formula itself, and it appears directly in calculus and in converting conic sections to standard form.
Choosing the right method
| Situation | Best method | Reason |
|---|---|---|
| Equation can be factored easily | Factoring | Fastest when factors are obvious |
| Cannot identify factors quickly | Quadratic formula | Always works, guaranteed solution |
| Need to derive the vertex of a parabola | Completing the square | Gives vertex form directly |
| Graphing calculator available | Graphical method | Visual — shows nature of roots clearly |
| a = 1 and b is even | Completing the square | Clean arithmetic, easy to execute |
Common mistakes
Methodology
All solutions verified by substitution back into the original equation. The quadratic formula is derived by completing the square on the general form ax2 + bx + c = 0. The discriminant D = b2 - 4ac determines the nature of roots: D > 0 (two real), D = 0 (one real repeated), D < 0 (two complex conjugate roots).
Formula source: standard algebra. The quadratic formula has been known in various forms since Babylonian mathematics circa 2000 BCE.
Solve any quadratic equation now
Enter a, b and c to get both roots, the discriminant, vertex, and full step-by-step solution.
Frequently asked questions
Formula based on standard mathematical and financial methods. Results are for informational purposes. Last reviewed May 2026. Version 1.