What would you like to understand?

Popular destinationsCalculatorsCoursesPracticeFormulas

Unlock Premium Help

Explore every tutor and study workspace for seven days, with no daily AI cap during the trial.

Choose a billing period
Ask a parent to pay

Nothing is charged during the first seven days. Unless you cancel, the plan you selected begins when the trial ends and renews on its stated schedule. Manage cancellation from your plan page. Stripe handles the payment details.

Completing the Square Calculator

Rewrite a quadratic in vertex form by completing the square.

Set up the relationship

Completing the Square inputs

Enter only the values that define this relationship. The result is checked against the original setup.

Vertex formEnter the known values

The method, result, and an independent check will appear here.

Method for this result

  1. Complete the inputs and calculate.

Expansion check

  1. The check will use a different relationship or reverse operation where possible.

The relationship behind Completing the Square Calculator

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

Symbols and inputs for Completing the Square Calculator

Symbols and inputs for Completing the Square Calculator
SymbolQuantityMeaning
bCoefficient of xThe number in front of the single x, with its sign. Half of it goes inside the bracket.
b/2Half of bThis exact number appears inside the finished bracket, sign and all.
(b/2)²The completing numberWhat you add and subtract. It is never negative, because it is something squared.
aCoefficient of x²If a is not 1, factor it out of the x² and x terms first. It stays outside the bracket.

Worked example for Completing the Square Calculator

  1. Start with the equation: 3x² − 12x + 5 = 0
  2. Factor the 3 out of the first two terms only: 3(x² − 4x) + 5 = 0
  3. Half of −4 is −2, and (−2)² is 4: 3(x² − 4x + 4 − 4) + 5 = 0
  4. Pull the spare −4 out through the 3, so it becomes −12: 3(x − 2)² − 12 + 5 = 0
  5. Tidy the constants: 3(x − 2)² = 7
  6. Divide by 3, then take both square roots: (x − 2)² = 7/3, so x − 2 = ±1.5275
  7. Write the two answers: x = 3.5275 or x = 0.4725

A second case for Completing the Square Calculator

  1. A different case: the leftover goes negative: x² + 4x + 9 = 0
  2. Move the constant across: x² + 4x = −9
  3. Half of 4 is 2, and 2² is 4, so add 4 to both sides: x² + 4x + 4 = −9 + 4
  4. Fold the left side into one bracket: (x + 2)² = −5
  5. Read the right side: no real number squares to −5, so there is no real solution
  6. Carry on into the complex numbers: x + 2 = ±i√5, so x = −2 ± 2.2361i

The number that completes the square, for each value of b

The number that completes the square, for each value of b
bHalf of b(b/2)²x² + bx + (b/2)²Folded bracket
639x² + 6x + 9(x + 3)²
10525x² + 10x + 25(x + 5)²
−4−24x² − 4x + 4(x − 2)²
52.56.25x² + 5x + 6.25(x + 2.5)²
−7−3.512.25x² − 7x + 12.25(x − 3.5)²
10.50.25x² + x + 0.25(x + 0.5)²
−3−1.52.25x² − 3x + 2.25(x − 1.5)²

Mistakes to catch with Completing the Square Calculator

x² + 6x = 7 becomes (x + 6)² = 7 + 36

The whole b was used instead of half of it, so the bracket is wrong and the answers come out 0.557 and −12.557.

Repair: Halve first: (x + 3)² = 7 + 9 = 16, giving x = 1 and x = −7.

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

The spare −4 is still inside the bracket, so it has to be multiplied by the 3 on the way out.

Repair: Take it out as −12: 3(x − 2)² − 12 + 5 = 3(x − 2)² − 7.

(x − 2)² = 7/3, so x = 2 + 1.5275

Only the positive root was taken, which quietly deletes the second answer.

Repair: Keep both: x = 2 ± 1.5275, so x = 3.5275 and x = 0.4725.

Questions about Completing the Square Calculator

Why do I have to factor a out before halving b?

Because the rule 'half of b, squared' was built for x² + bx, where the x² has nothing in front of it. In 3x² − 12x the b you see is −12, but the b that matters inside the bracket is −4, which only appears after the 3 comes out.

What if b is an odd number?

Nothing breaks, you just get a fraction. For x² + 5x, half of 5 is 2.5 and 2.5² is 6.25, so the bracket is (x + 2.5)². Many people keep it as (x + 5/2)² and add 25/4 instead, which avoids decimals entirely.

Is completing the square the same thing as the quadratic formula?

The formula is what you get if you complete the square on a general ax² + bx + c once and remember the result. That is why the 2a in the formula's denominator exists: it is the b/(2a) from this method, still sitting there.

When is completing the square worth the extra work?

When you want the turning point rather than the roots. 3(x − 2)² − 7 tells you instantly that the lowest point is at (2, −7). The formula would hand you 3.5275 and 0.4725 and leave you to average them.

Understand the result from Completing the Square Calculator

Compare another tool, review the underlying idea, then solve a fresh problem without copying the example.

Calculators related to Completing the Square Calculator

See all calculators →

Algebra calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Quadratic formula calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Graphing calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Understand algebra behind this calculator

A calculator can check the arithmetic; use the algebra subject guide to rebuild the method, algebra practice questions to test selection, and the math formula library to confirm conditions and notation.