Skip to main content
Skip to main content
DigiCalcs
Back to Guides
6 min read4 Steps

How to Solve Quadratic Equations by Completing the Square: Step-by-Step Guide

Learn to solve quadratic equations by completing the square. Manual step-by-step guide with formulas, worked examples, and common pitfalls.

Skip the math — use the calculator

Step-by-Step Instructions

1

Prepare the Quadratic Equation

Ensure the quadratic equation is in the standard form $ax^2 + bx + c = 0$. If $a \neq 1$, divide every term in the equation by $a$. Then, isolate the $x^2$ and $x$ terms by moving the constant term ($c/a$ or $c$) to the right side of the equation. The equation should now be in the form $x^2 + bx = -c$ (assuming $a=1$ from the start or after division).

2

Identify the Completion Term

Identify the coefficient of the $x$ term, which is $b$. Calculate the value $(b/2)^2$. This is the specific term required to transform the expression $x^2 + bx$ into a perfect square trinomial.

3

Complete the Square and Factor

Add the calculated completion term, $(b/2)^2$, to *both* sides of the equation to maintain balance. The left side of the equation will now be a perfect square trinomial. Factor this trinomial into the form $(x + b/2)^2$. Simplify the constant terms on the right side of the equation.

4

Extract Roots and Solve

Take the square root of both sides of the equation. Remember to include both the positive and negative roots on the right side, typically denoted by $\pm$. This will result in an equation of the form $x + b/2 = \pm\sqrt{\text{constant}}$. Finally, algebraically isolate $x$ by subtracting $b/2$ from both sides to find the two solutions for the quadratic equation.

How to Solve Quadratic Equations by Completing the Square: Step-by-Step Guide

Completing the square is a fundamental algebraic technique used to solve quadratic equations, derive the quadratic formula, and transform quadratic functions into vertex form. This method converts a standard quadratic expression, $ax^2 + bx + c$, into a perfect square trinomial, making it amenable to solving by taking the square root.

Prerequisites

Before proceeding, ensure you have a solid understanding of the following:

  • Basic algebraic manipulation, including addition, subtraction, multiplication, and division.
  • Factoring perfect square trinomials, e.g., $(x+k)^2 = x^2 + 2kx + k^2$.
  • Solving linear equations.
  • Taking square roots, including understanding of positive and negative roots.
  • The standard form of a quadratic equation: $ax^2 + bx + c = 0$.

Understanding the Concept and Formula

The core idea behind completing the square is to transform an expression of the form $x^2 + bx$ into a perfect square trinomial $(x+k)^2$. A perfect square trinomial is always in the form $x^2 + 2kx + k^2$. By comparing this to $x^2 + bx$, we can deduce that $b = 2k$, which implies $k = b/2$. Therefore, the term needed to complete the square is $k^2 = (b/2)^2$.

Geometrically, consider a square with side length $x$. Its area is $x^2$. If we add two rectangles of dimensions $x$ by $b/2$ (total area $bx$), we have an L-shaped region. To "complete" this into a larger square, we must add a small square in the corner with side length $b/2$. The area of this small square is $(b/2)^2$. Thus, $x^2 + bx + (b/2)^2$ forms a perfect square with side length $x + b/2$, and its area is $(x + b/2)^2$.

The Completion Formula

To complete the square for an expression $x^2 + bx$, you must add $(b/2)^2$. This results in:

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

When solving a quadratic equation $ax^2 + bx + c = 0$, the goal is to manipulate it into the form $(x+h)^2 = k$, from which $x+h = \pm\sqrt{k}$ and $x = -h \pm\sqrt{k}$.

Worked Example: Solving $x^2 + 6x + 5 = 0$

Let's apply the steps to solve the quadratic equation $x^2 + 6x + 5 = 0$.

Step 1: Prepare the Quadratic Equation

The first step is to ensure the coefficient of the $x^2$ term is 1. If $a \neq 1$, divide the entire equation by $a$. Then, move the constant term to the right side of the equation.

Given: $x^2 + 6x + 5 = 0$

Since the coefficient of $x^2$ is already 1, we proceed to move the constant term:

$x^2 + 6x = -5$

Step 2: Identify the Completion Term

Now, identify the coefficient of the $x$ term, which is $b$. Calculate $(b/2)^2$.

In our equation, $b = 6$.

Calculate $(b/2)^2 = (6/2)^2 = (3)^2 = 9$.

This value, 9, is what we need to add to both sides to complete the square on the left.

Step 3: Complete the Square and Factor

Add the completion term, $(b/2)^2$, to both sides of the equation. This ensures the equation remains balanced. Then, factor the left side, which is now a perfect square trinomial, into the form $(x + b/2)^2$.

From Step 1: $x^2 + 6x = -5$

Add 9 to both sides:

$x^2 + 6x + 9 = -5 + 9$

Factor the left side and simplify the right side:

$(x + 3)^2 = 4$

Step 4: Extract Roots and Solve

The equation is now in the form $(x+h)^2 = k$. To solve for $x$, take the square root of both sides, remembering to include both the positive and negative roots. Finally, isolate $x$.

From Step 3: $(x + 3)^2 = 4$

Take the square root of both sides:

$\sqrt{(x + 3)^2} = \pm\sqrt{4}$

$x + 3 = \pm 2$

Now, solve for $x$ by subtracting 3 from both sides:

$x = -3 \pm 2$

This yields two possible solutions:

$x_1 = -3 + 2 = -1$

$x_2 = -3 - 2 = -5$

Thus, the solutions to the equation $x^2 + 6x + 5 = 0$ are $x = -1$ and $x = -5$.

Common Pitfalls to Avoid

  • Coefficient of $x^2$ not equal to 1: Always divide the entire equation by $a$ if $a \neq 1$ before proceeding. Failure to do so will lead to incorrect results.
  • Forgetting to add to both sides: When you add $(b/2)^2$ to the left side to complete the square, you must add the same value to the right side to maintain the equality of the equation.
  • Incorrectly calculating $(b/2)^2$: Be careful with signs and fractions. For instance, if $b = -7$, then $(b/2)^2 = (-7/2)^2 = 49/4$.
  • Omitting the $\pm$ sign: When taking the square root of both sides, remember that there are generally two roots (a positive and a negative one). Forgetting the $\pm$ sign will result in losing one of the solutions.
  • Algebraic errors: Double-check your arithmetic, especially when combining constants on the right side of the equation.

When to Use a Calculator for Convenience

While this guide emphasizes manual calculation, a calculator can be advantageous in specific scenarios:

  • Large or Decimal Coefficients: When $b$ is a large number or a decimal, calculating $(b/2)^2$ manually can be tedious and prone to error. A calculator ensures precision.
  • Irrational Roots: If the constant on the right side after completing the square is not a perfect square (e.g., $(x+h)^2 = 7$), you will end up with $\sqrt{7}$. A calculator can provide a decimal approximation if required, though exact radical form is often preferred in mathematics.
  • Verification: After completing the calculation manually, use a calculator or an online quadratic solver to verify your solutions. This helps catch any arithmetic mistakes.

Completing the square is a powerful algebraic tool that not only solves quadratic equations but also underpins many other mathematical concepts. Mastering this method by hand provides a deeper understanding of quadratic functions.

Ready to Calculate?

Skip the manual work and get instant results.

Open Calculator

Settings

PrivacyTermsAbout© 2026 DigiCalcs