In elementary algebra, completing the square is a technique for converting a quadratic polynomial of the form to the form for some values of and . In terms of a new quantity , this expression is a quadratic polynomial with no linear term. By subsequently isolating and taking the square root, a quadratic problem can be reduced to a linear problem.
The name completing the square comes from a geometrical picture in which represents an unknown length. Then the quantity represents the area of a square of side and the quantity represents the area of a pair of congruent rectangles with sides and . To this square and pair of rectangles, one more square is added, of side length . This crucial step completes a larger square of side length .