CalcUnit Logo

How to Calculate Completing the Square

Convert a quadratic to vertex form by completing the square.

The Formula

ax² + bx + c → a(x+h)² + k

The completing the square formula uses the mathematical relationship: ax² + bx + c → a(x+h)² + k. Each variable in the formula represents a measurable quantity that affects the final result.

What Each Variable Means

Every value in the completing the square formula, what it measures, and the value used in the worked example on this page:

VariableTypeExample value
a (coefficient of x²)Input (you provide)1
b (coefficient of x)Input (you provide)-6
c (constant)Input (you provide)5
h (x of vertex)Result (calculated)—
k (y of vertex)Result (calculated)—
(b/2a)²Result (calculated)—

Step-by-Step Method

  1. 1Write down the values you know: a (coefficient of x²), b (coefficient of x), c (constant).
  2. 2Substitute your known values into the formula: ax² + bx + c → a(x+h)² + k.
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 5Verify your answer with the interactive Completing the Square — it solves the same formula instantly.

Worked Example

Take a concrete case: a (coefficient of x²) = 0.5, with the other inputs at the typical values from the variables table above. Substituting into the formula gives h (x of vertex) = 6.0000, k (y of vertex) = -13.0000, (b/2a)² = 36.0000. These numbers are solved by the same engine that powers the Completing the Square calculator, so you can reproduce them exactly by entering the same inputs there.

a (coefficient of x²)h (x of vertex)k (y of vertex)(b/2a)²
0.310.0000-25.0000100.0000
0.56.0000-13.000036.0000
0.83.7500-6.250014.0625
13.0000-4.00009.0000
21.50000.50002.2500
31.00002.00001.0000
40.75002.75000.5625

How each result changes as a (coefficient of x²) changes, holding the other inputs constant.

Practice Problems

1. x² - 6x + 5: Plug in a (coefficient of x²) 1, b (coefficient of x) -6, c (constant) 5. What is the answer?

Answer: With a (coefficient of x²) 1, b (coefficient of x) -6, c (constant) 5, the results are h (x of vertex) 3.0000, k (y of vertex) -4.0000, (b/2a)² 9.0000.

2. Given a (coefficient of x²) 2.5, b (coefficient of x) 8, c (constant) 3, what does it come out to?

Answer: Entering a (coefficient of x²) 2.5, b (coefficient of x) 8, c (constant) 3 gives h (x of vertex) -1.6000, k (y of vertex) -3.4000, (b/2a)² 2.5600.

Frequently Asked Questions

What is the formula for completing the square?

The formula is: ax² + bx + c → a(x+h)² + k. Convert a quadratic to vertex form by completing the square.

What values do I need to calculate completing the square?

You need a (coefficient of x²), b (coefficient of x), c (constant). The calculator produces h (x of vertex), k (y of vertex), (b/2a)² from those inputs.

What is the completing the square when a (coefficient of x²) is 0.5?

With a (coefficient of x²) = 0.5, the result is h (x of vertex) = 6.0000, k (y of vertex) = -13.0000, (b/2a)² = 36.0000. This is worked through in full in the example on this page.

Related Topics

completing squarequadraticalgebra

Use the Interactive Calculator

Skip the manual math — get instant results with our free Completing the Square calculator.

Open Calculator

Related Calculators