TOPICS
Search

Three Squares in a Rectangle Problem


The three squares in a rectangle problem asks for the maximum sum of the side lengths of three squares contained in a 1×x rectangle, where x>=1 and the interiors of the squares are pairwise disjoint. The squares may have different sizes and may undergo arbitrary rotation. Yang (2026) determined the maximum to be

 G_3(x)={x+1/2   1<=x<=3/2; 2   3/2<=x<=2; x   2<=x<=3; 3   x>=3.
(1)

In particular, the maximum is 3/2 in a unit square and 2 in a 1×2 rectangle. The latter value is attained by one unit square and two squares of side length 1/2. For x>=3, three unit squares attain the maximum 3. The upper bounds allow all orientations, even though these examples have sides parallel to the boundary.


See also

Rectangle, Square Packing, Unit Square

Explore with Wolfram|Alpha

References

Yang, H. "Three Squares in a Rectangle." 27 Aug 2026. https://arxiv.org/abs/2608.13595.

Cite this as:

Weisstein, Eric W. "Three Squares in a Rectangle Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ThreeSquaresinaRectangleProblem.html

Subject classifications