← All calculators

Completing The Square Calculator

Use the Completing the Square Calculator to rewrite a quadratic expression in vertex form, solve quadratic equations, find the vertex, and see each algebraic step used to complete the square.

Scroll for the full guide

Completing the square is a useful algebraic method for transforming a quadratic expression such as ax² + bx + c into a form that makes its structure easier to understand. The completed-square form is especially useful for finding the vertex of a parabola, identifying its axis of symmetry, determining its minimum or maximum value, and solving quadratic equations.

For a quadratic with a nonzero leading coefficient, the standard completed-square form is:

a(x − h)² + k

where (h, k) is the vertex of the parabola. The general relationship is:

h = −b / 2a

k = c − b² / 4a

What Does the Completing the Square Calculator Do?

A Completing the Square Calculator takes the coefficients of a quadratic expression or equation and transforms it into completed-square or vertex form. Depending on the calculator’s inputs, it can also provide the solutions of the quadratic equation.

For example, consider:

x² + 6x + 5

Completing the square gives:

(x + 3)² − 4

The transformed expression immediately shows that the vertex is (−3, −4). If the expression represents y = x² + 6x + 5, the parabola opens upward and has a minimum value of −4.

This is one reason completing the square is more than just an algebraic manipulation. It changes the form of the equation so that important features of the quadratic become much easier to read.

Completing the Square Formula

For a quadratic expression:

ax² + bx + c

the completed-square form can be written as:

a(x − h)² + k

where:

  • h = −b / 2a
  • k = c − b² / 4a

Therefore, the direct transformation is:

ax² + bx + c = a(x + b/2a)² + c − b²/4a

The equivalent vertex form is usually written as:

a(x − h)² + k

This formula works for any quadratic where a ≠ 0.

How to Complete the Square by Hand

The process is easiest to understand when the coefficient of x² is 1. Consider:

x² + 8x + 7

First, separate the x² and x terms from the constant:

x² + 8x = −7

Take half of the coefficient of x:

8 ÷ 2 = 4

Square that number:

4² = 16

Add 16 to both sides:

x² + 8x + 16 = −7 + 16

Factor the perfect square:

(x + 4)² = 9

Therefore, the completed-square form of the original expression is:

x² + 8x + 7 = (x + 4)² − 9

The vertex is therefore:

(−4, −9)

Why Do You Take Half of the x Coefficient?

This is the central idea behind completing the square.

When a binomial is squared:

(x + p)² = x² + 2px + p²

The coefficient of x is 2p. To determine p, divide the x coefficient by 2. Once p is known, square it to obtain the constant required to form a perfect-square trinomial.

For example:

x² + 10x

Half of 10 is 5, and 5² is 25. Therefore:

x² + 10x + 25 = (x + 5)²

For a negative coefficient, the same rule applies:

x² − 10x + 25 = (x − 5)²

The sign inside the parentheses follows the sign of the original x term.

Completing the Square When a Is Not 1

If the quadratic begins with a coefficient other than 1, factor that coefficient from the x² and x terms before completing the square.

Consider:

2x² + 8x + 3

Factor 2 from the first two terms:

2(x² + 4x) + 3

Half of 4 is 2, and 2² = 4:

2(x² + 4x + 4 − 4) + 3

Convert the first three terms into a square:

2[(x + 2)² − 4] + 3

Distribute 2:

2(x + 2)² − 8 + 3

So the completed-square form is:

2(x + 2)² − 5

The vertex is:

(−2, −5)

The important point is that the value added inside the parentheses must also be accounted for outside. Forgetting this multiplication is a common source of errors.

Example: Completing the Square Calculator for x² + 6x + 5

Suppose the calculator receives:

a = 1, b = 6, c = 5

Start with:

x² + 6x + 5

Using the vertex formula:

h = −6 / (2 × 1) = −3

Then:

k = 5 − 6² / (4 × 1)

k = 5 − 36/4 = 5 − 9 = −4

Therefore:

x² + 6x + 5 = (x + 3)² − 4

The vertex is (−3, −4), and the axis of symmetry is:

x = −3

Example: Solve a Quadratic by Completing the Square

Completing the square can also be used to solve an equation. Consider:

x² + 6x + 2 = 0

Move the constant to the other side:

x² + 6x = −2

Take half of 6 and square it:

(6/2)² = 9

Add 9 to both sides:

x² + 6x + 9 = 7

Factor:

(x + 3)² = 7

Take the square root:

x + 3 = ±√7

Therefore:

x = −3 ± √7

So the two solutions are approximately:

x ≈ −0.354

and

x ≈ −5.646

Finding the Vertex from a Completed Square

One of the biggest advantages of completing the square is that the vertex can be identified immediately.

If the equation is:

y = a(x − h)² + k

the vertex is:

(h, k)

For example:

y = 3(x − 4)² + 7

has vertex:

(4, 7)

If the expression is:

y = 3(x + 4)² + 7

the vertex is:

(−4, 7)

This sign reversal is important. The expression uses x − h, so an expression containing x + 4 corresponds to h = −4.

Minimum and Maximum Values

The coefficient a tells you whether the quadratic has a minimum or maximum.

Value of a Parabola direction Vertex represents
a > 0 Opens upward Minimum value
a < 0 Opens downward Maximum value

For example:

y = 2(x − 3)² − 8

opens upward because 2 is positive. Its minimum value is −8, occurring at x = 3.

For:

y = −2(x − 3)² + 8

the parabola opens downward, so its maximum value is 8 at x = 3.

Completing the Square and the Discriminant

The discriminant of a quadratic equation is:

Δ = b² − 4ac

It helps determine the type of roots before solving the equation.

Discriminant Result
Δ > 0 Two distinct real roots
Δ = 0 One repeated real root
Δ < 0 Two complex conjugate roots

Completing the square and the discriminant are closely connected. When the completed equation produces a negative value on the right side of a squared term, the quadratic has no real solutions.

Completing the Square vs. Quadratic Formula

Both methods can solve quadratic equations, but they are useful for slightly different reasons.

Method Best used for
Completing the square Finding vertex form, understanding parabola structure, and solving equations step by step
Quadratic formula Quickly finding roots of a general quadratic equation
Factoring Fast solutions when the quadratic factors easily

There is also an important mathematical connection: the quadratic formula can actually be derived by completing the square on the general equation ax² + bx + c = 0.

How to Use the Completing the Square Calculator

  1. Enter the coefficient a for x².
  2. Enter the coefficient b for x.
  3. Enter the constant c.
  4. Choose whether you want the quadratic converted to completed-square form or solved as an equation, if your calculator provides both options.
  5. Click Calculate.
  6. Review the completed-square form, vertex, axis of symmetry, and roots when applicable.

For a quadratic equation written as ax² + bx + c = 0, make sure the coefficients are entered with their correct signs. For example, in 3x² − 7x + 2, the values are a = 3, b = −7, and c = 2.

Common Mistakes When Completing the Square

Forgetting to Divide by a

When the coefficient of x² is not 1, the x² and x terms generally need to be handled by factoring out the leading coefficient before completing the square.

Squaring the Wrong Number

The number that must be squared is half of the x coefficient after the expression has been normalized. For x² + 12x, use:

(12/2)² = 36

Do not use 12².

Adding the Square Without Balancing the Equation

If you add a number to one side of an equation, you must add the same number to the other side. When rewriting an expression, the added value must also be subtracted so that the expression remains unchanged.

Missing the Sign of the Vertex

In (x + 5)², the vertex x-coordinate is −5, not 5.

Forgetting the ± Symbol

When solving:

(x − 4)² = 9

the square root step gives:

x − 4 = ±3

Therefore, there are two solutions: x = 7 and x = 1.

Where Is Completing the Square Used?

Completing the square appears throughout algebra, geometry, calculus, physics, and other areas of mathematics.

  • Quadratic equations: finding exact solutions.
  • Parabola graphing: identifying the vertex and axis of symmetry.
  • Optimization: finding maximum or minimum values.
  • Analytic geometry: converting equations into useful geometric forms.
  • Calculus: simplifying certain quadratic expressions and integrals.
  • Physics: analyzing equations involving projectile motion and other quadratic relationships.
  • Algebra courses: understanding the relationship between standard and vertex forms.

Quick Reference: Completing the Square

Task Formula or rule
Standard quadratic ax² + bx + c
Vertex form a(x − h)² + k
Vertex x-coordinate h = −b/(2a)
Vertex y-coordinate k = c − b²/(4a)
Axis of symmetry x = h
Discriminant Δ = b² − 4ac
Quadratic formula x = (−b ± √(b² − 4ac))/(2a)

Frequently Asked Questions

What is a Completing the Square Calculator?

A Completing the Square Calculator is a tool that transforms a quadratic expression into completed-square or vertex form. It can also solve quadratic equations and identify features such as the vertex and axis of symmetry.

What is the formula for completing the square?

For ax² + bx + c, the completed form is a(x − h)² + k, where h = −b/(2a) and k = c − b²/(4a).

How do you complete the square when a = 1?

Move the constant, take half of the coefficient of x, square that result, and add it to both sides. The left side can then be written as a perfect square.

How do you complete the square when a is not 1?

First factor the leading coefficient from the x² and x terms. Then complete the square inside the parentheses and account for the factor outside the parentheses.

What does completed-square form tell you?

Completed-square form makes the vertex, axis of symmetry, and minimum or maximum value easy to identify. It is particularly useful when graphing a quadratic.

Can completing the square solve every quadratic?

Yes. Every quadratic equation with a nonzero x² coefficient can be solved using completing the square. The resulting roots may be real or complex.

Is completing the square the same as the quadratic formula?

No, they are different methods, but they are closely related. The quadratic formula is derived by completing the square on the general quadratic equation.

What happens if the discriminant is negative?

A negative discriminant means the quadratic has no real roots. The equation instead has two complex conjugate roots. The completed-square form remains valid even when the roots are not real.

Why is completing the square useful for graphing?

It converts the quadratic into vertex form, y = a(x − h)² + k. From this form, the vertex is immediately visible as (h, k), and the sign of a shows whether the parabola opens upward or downward.

Final Takeaway

Completing the square provides a direct way to turn a quadratic expression into a form that reveals its structure. For ax² + bx + c, the completed form a(x − h)² + k makes the vertex and axis of symmetry easy to identify and can also be used to solve the corresponding quadratic equation.

The key step to remember is simple: after normalizing the quadratic, take half of the x coefficient and square it. That value creates the perfect square. A Completing the Square Calculator automates these algebraic steps while making the resulting vertex form, roots, and other quadratic properties easier to check.