🔲 Algebra Solver

Completing the Square Calculator - Step-by-Step

Solve quadratic equations by completing the square with clear step-by-step calculations.

Quadratic Equation

Enter values to calculate instant result

ℹ️ Info
💡 Try:
Verified Solution

---

📖

How to Use & Educational Guide

In-depth guide for Completing the Square Calculator

Educational Overview

How to Complete the Square? (Completing the Square Calculator)

Completing the square is an algebraic method used to rewrite a quadratic expression ($ax^2 + bx + c$) in the form of a squared binomial plus a constant, $a(x + h)^2 + k$. Used to solve quadratic equations by completing the square, find exact roots (zeros), and convert parabolas into vertex form, our completing the square calculator shows every step—including the exact intermediate step in completing the square before taking square roots.

Completing the Square Formula

For any quadratic expression $x^2 + bx$ where the leading coefficient of $x^2$ is $1$, take half of $b$, square it, and add $\left(\frac{b}{2}\right)^2$:

$$x^2 + bx + \left(\frac{b}{2}\right)^2 = \left(x + \frac{b}{2}\right)^2$$

$$ax^2 + bx + c = a\left(x + \frac{b}{2a}\right)^2 + \left(c - \frac{b^2}{4a}\right)$$

When solving an equation, whatever value $\left(\frac{b}{2}\right)^2$ you add to the left side must also be added to the right side to keep the equation balanced.

How to Solve a Quadratic Equation by Completing the Square Step-by-Step

Follow these seven steps to solve any quadratic equation using the completing the square method:

  1. Step 1 (Arrange in Standard Form): Write the quadratic equation as $ax^2 + bx + c = 0$.
  2. Step 2 (Make the $x^2$ Coefficient Equal to 1): If $a \ne 1$, divide every term on both sides by $a$.
  3. Step 3 (Isolate the Variable Terms): Move the constant term to the right-hand side so only $x^2 + bx$ remains on the left.
  4. Step 4 (Take Half of $b$ and Square It): Compute $\left(\frac{b}{2}\right)^2$ and add this number to both sides of the equation.
  5. Step 5 (Write the Intermediate Step as a Perfect Square): Factor the left-hand trinomial into $\left(x + \frac{b}{2}\right)^2 = k$—this is the intermediate step in completing the square.
  6. Step 6 (Apply the Square Root Property): Take the square root of both sides, remembering to include $\pm$ on the right-hand side ($x + \frac{b}{2} = \pm\sqrt{k}$).
  7. Step 7 (Isolate $x$): Subtract $\frac{b}{2}$ from both sides and simplify to get both roots.

Completing the Square Examples (Equations, Expressions & Functions)

Work through these four step-by-step examples covering standard quadratic equations, leading coefficients $a \ne 1$, quadratic functions in vertex form, and negative constants:

Example 1 (Standard Quadratic Equation): Solve $x^2 + 6x + 5 = 0$

• Step 1 (Move the constant): $x^2 + 6x = -5$.

• Step 2 (Half of $6$ squared): $\left(\frac{6}{2}\right)^2 = 3^2 = \mathbf{9}$.

• Step 3 (Add $9$ to both sides): $x^2 + 6x + 9 = -5 + 9$.

• Step 4 (Intermediate step — perfect square): $(x + 3)^2 = \mathbf{4}$.

• Step 5 (Take square roots): $x + 3 = \pm\sqrt{4} = \pm 2$.

• Step 6 (Solve for $x$): $x = -3 + 2 = \mathbf{-1}$ or $x = -3 - 2 = \mathbf{-5}$.

👉 Roots: $x = -1, \quad x = -5$

Example 2 (Leading Coefficient $a \ne 1$): Solve $2x^2 + 8x + 6 = 0$

• Step 1 (Divide all terms by $2$): $x^2 + 4x + 3 = 0$.

• Step 2 (Move the constant): $x^2 + 4x = -3$.

• Step 3 (Complete the square): $\left(\frac{4}{2}\right)^2 = 4$, so add $4$ to both sides.

• Step 4 (Intermediate step): $x^2 + 4x + 4 = -3 + 4 \implies (x + 2)^2 = 1$.

• Step 5 (Take square roots & solve): $x + 2 = \pm 1 \implies x = -1$ or $x = -3$.

👉 Roots: $x = -1, \quad x = -3$

Example 3 (Quadratic Function to Vertex Form): Rewrite $y = x^2 - 8x + 12$

• Step 1 (Group the $x$ terms): $y = (x^2 - 8x) + 12$.

• Step 2 (Half of $-8$ squared): $\left(\frac{-8}{2}\right)^2 = (-4)^2 = 16$.

• Step 3 (Add and subtract $16$ on the same side): $y = (x^2 - 8x + 16) + 12 - 16$.

• Step 4 (Write in vertex form $y = a(x - h)^2 + k$): $y = (x - 4)^2 - 4$.

👉 Vertex: $(h, k) = (4, -4)$

Example 4 (Negative Middle & Constant Terms): Solve $x^2 - 4x - 5 = 0$

• Step 1 (Move $-5$ to right side): $x^2 - 4x = 5$.

• Step 2 (Half of $-4$ squared): $\left(\frac{-4}{2}\right)^2 = (-2)^2 = 4$.

• Step 3 (Add $4$ to both sides): $x^2 - 4x + 4 = 5 + 4$.

• Step 4 (Intermediate step): $(x - 2)^2 = 9$.

• Step 5 (Take square roots & solve): $x - 2 = \pm 3 \implies x = 5$ or $x = -1$.

👉 Roots: $x = 5, \quad x = -1$

What Is the Intermediate Step in Completing the Square?

In algebra coursework, the intermediate step in completing the square refers to the equation right after you factor the perfect-square trinomial and simplify the constant on the right side—written in the form $(x + h)^2 = k$. For example, solving $x^2 + 6x + 5 = 0$ reaches the intermediate step $(x + 3)^2 = 4$ before taking square roots to find the zeros $x = -1$ and $x = -5$. (If $k < 0$, the equation has complex roots involving $i = \sqrt{-1}$.)

Why Is Completing the Square Important?

📐 Parabola Vertex & Maximum/Minimum Values

Converting $y = ax^2 + bx + c$ into vertex form $y = a(x - h)^2 + k$ immediately reveals the parabola's vertex $(h, k)$, axis of symmetry $x = h$, and maximum or minimum height/profit.

⭕ Circle & Conic Section Equations

Completing the square simultaneously on $x$ and $y$ terms converts general conic equations into standard center-radius circle form: $(x - h)^2 + (y - k)^2 = r^2$.

Common Mistakes to Avoid

  • Forgetting to Add $\left(\frac{b}{2}\right)^2$ to Both Sides: When solving an equation, add the squared half-term to both sides; when rewriting a single expression $f(x)$, add and subtract it inside the same expression so its value stays unchanged.
  • Squaring $b$ Instead of $\frac{b}{2}$: For $x^2 + 6x$, add $(6/2)^2 = 9$, never $6^2 = 36$.
  • Dropping the $\pm$ Sign When Taking Square Roots: From $(x + 3)^2 = 4$, always write $x + 3 = \pm 2$ to capture both roots.
  • Forgetting to Divide by $a$ First: Always divide through by the leading coefficient $a$ (when $a \ne 1$) before taking half of $b$.

Mathematical accuracy verified by AptCalc Engine

Frequently Asked Questions (FAQs)

Answers to common questions about this calculator

What is completing the square?
Completing the square is an algebraic technique that rewrites a quadratic expression ax² + bx + c as a squared binomial plus a constant, a(x + h)² + k. It is used to solve quadratic equations, find zeros, and convert quadratic functions into vertex form.
How do you solve a quadratic equation by completing the square?
Divide all terms by a if a ≠ 1, move the constant term to the right side, take half of the x-coefficient and square it, add (b/2)² to both sides, factor the left side into (x + b/2)², take the ± square root of both sides, and solve for x.
What is the formula for completing the square?
For a monic quadratic x² + bx, add (b/2)² to form the perfect square trinomial: x² + bx + (b/2)² = (x + b/2)².
What is the intermediate step in completing the square?
The intermediate step is the simplified perfect-square equation (x + h)² = k right before taking the square root of both sides—for example, rewriting x² + 6x + 5 = 0 as (x + 3)² = 4.
How do you complete the square for a quadratic expression or function (vertex form)?
When converting y = x² + bx + c into vertex form without an equals-zero equation, add and subtract (b/2)² on the same side: y = (x² + bx + (b/2)²) + c - (b/2)², which simplifies to y = (x - h)² + k with vertex (h, k).
Explore More Tools

Discover Other Calculation Suites

Browse our full ecosystem of precision calculation and conversion tools