solving method
Completing the Square Calculator
Solve quadratic equations by completing the square with detailed step-by-step work. See every transformation from standard form to the solution.
Click to show tips
Try an Example
Pick a scenario to see how the calculator works, then adjust the values
Standard Form
Classic quadratic x² − 5x + 6 = 0 with two integer roots (x = 2 and x = 3)
Key values: a = 1 · b = −5 · c = 6
Physics Problem
Projectile height equation −4.9t² + 20t + 1.5 = 0 (when does the ball hit the ground?)
Key values: a = −4.9 · b = 20 · c = 1.5
Complex Roots
Equation x² + 2x + 5 = 0 with no real solutions (discriminant < 0)
Key values: a = 1 · b = 2 · c = 5
Completing the Square
Completing the square transforms a quadratic expression into vertex form by creating a perfect square trinomial. It is the algebraic technique that derives the quadratic formula itself.
Step-by-Step Process
Given :
- Divide by :
- Move constant:
- Add the "magic number": Add to both sides
- Factor the left side:
- Take square root and solve:
Key insight: Step 5 is the quadratic formula. Completing the square on the general equation is exactly how the quadratic formula is derived. Understanding this technique means you never need to memorize the formula — you can re-derive it.
Connection to Vertex Form
Completing the square converts into vertex form:
where the vertex is at . This instantly reveals:
- The axis of symmetry:
- The minimum/maximum value:
- The direction of opening: up if , down if
Worked Example
Solve by completing the square:
Frequently Asked Questions
What is completing the square?
Completing the square is an algebraic technique that transforms a quadratic expression into vertex form by creating a perfect square trinomial. It is the method used to derive the quadratic formula itself.
What is the "magic number" in completing the square?
The magic number is , which you add to both sides of the equation. For (after dividing by and moving the constant), adding to both sides creates a perfect square on the left: .
When should I use completing the square instead of the quadratic formula?
Use completing the square when you need the vertex form for graphing or optimization, when deriving the quadratic formula itself, or when the equation is already close to a perfect square. For just finding roots, the quadratic formula is usually faster.
How does completing the square derive the quadratic formula?
Applying the completing the square steps to the general equation produces . Taking the square root and solving for gives , which is the quadratic formula.
Can completing the square be used with non-integer coefficients?
Yes. The method works for any real coefficients. Divide by first, then add to both sides. Fractions and decimals make the arithmetic more involved but the process is identical. The calculator handles all coefficient types automatically.
Related solving-method Variants
Explore more solving-method options
More Math Calculators
Explore the category