How big should the corner cuts be to fold the biggest box?

Cut a square of side x from each corner and fold up the sides. The volume is V = x(L − 2x)(W − 2x). Small cuts make a flat tray, and big cuts a narrow tower. The best cut is where the slope V′(x) is zero. For letter paper that's about 4 cm, for a box of about 1,083 cm³.

50 × 50 cm sheetfold up45 × 45 × 2.5 cmVolume: 5063 cm³, 54.7% of the biggestSlope V′ = 1580 cm³ per cm (rising)max 9259 cm³ at 8.33 cm
Box volume
5060 mL
Best corner cut
8.33 cm
Biggest possible volume
9260 mL
Share of the biggest volume
54.7%

Challenge: Get within 1% of the biggest possible volume.

Also the height of the folded box.

Play

Slide the corner cut and watch the box fold up and the dot ride the volume curve. Then change the sheet.

Challenge: Get within 1% of the biggest possible volume. The box under the picture turns green when you get it.

Stuck? Pick one of the examples from the “Try an example” menu, or press “New example.”

Understand

V(x)=x(L−2x)(W−2x)V(x) = x(L - 2x)(W - 2x)

Cut an xx by xx square from each corner of an L×WL \times W sheet and fold up the sides. The box is xx tall, L−2xL - 2x long, and W−2xW - 2x wide:

V(x)=x(L−2x)(W−2x)V(x) = x(L - 2x)(W - 2x)

A tiny cut gives a flat tray with almost no volume. A cut near half the short side leaves almost no bottom. Somewhere between is the biggest box, at the top of the curve, where the slope is zero. Multiply out VV, take the derivative, and set it to zero:

V′(x)=12x2−4(L+W)x+LW=0V'(x) = 12x^2 - 4(L + W)x + LW = 0

That's a quadratic. The quadratic formula gives two roots, and the smaller one is the best cut. The short line through the dot is the tangent, the slope V′V' at your cut. It lies flat at the top.

Use

Every input has a unit menu, so you can type values in the units you already have. Results follow your units.

Show the work

  1. Volume = height × length × width of the folded boxV = 2.5\,(50 - 2 \cdot 2.5)(50 - 2 \cdot 2.5) = 5063\ \text{cm}^3
  2. Multiply out: a cubic in xV(x) = 4x^3 - 200x^2 + 2500x
  3. The top of the curve is where the slope is zeroV'(x) = 12x^2 - 400x + 2500 = 0
  4. Quadratic formula: take the smaller root (the larger one is at or past half the short side, where there’s no box)x = \frac{(L + W) - \sqrt{L^2 - LW + W^2}}{6} = 8.333\ \text{cm}\quad (\text{not } 25)
  5. Biggest volumeV(8.333) = 9259\ \text{cm}^3

Export

Export PDF

Set the corner cut, then the sheet's length and width. The drawings on the left are to scale.

  • The drawing treats the sheet as paper-thin. Thick cardboard makes the inside of the box a little smaller.
  • A cut of half the short side or more leaves no bottom, so there's no box.

For learning and estimation. Verify with applicable codes, standards, and a qualified professional before using in design, construction, or safety-critical work.

Cheat card

V(x)=x(L−2x)(W−2x)V(x) = x(L - 2x)(W - 2x)
V′(x)=12x2−4(L+W)x+LW=0V'(x) = 12x^2 - 4(L + W)x + LW = 0
xbest=(L+W)−L2−LW+W26x_{\text{best}} = \frac{(L + W) - \sqrt{L^2 - LW + W^2}}{6}
SymbolMeaningUnit
LLsheet lengthcm
WWsheet widthcm
xxside of each corner square (the box height)cm
VVbox volumecm³
  • For a square sheet, cut one-sixth of the side.
  • For letter paper (11 × 8.5 in), the best cut is about 1.59 in.
  • The top of the curve is flat, so being a little off costs almost nothing. On letter paper, a 4.0 cm cut gets 99.997% of the best.

Print this card

Where it’s used

  • Mechanical
    Packaging engineers balance material, volume, and shipping size when they design cartons and trays.
  • Art & Design
    Paper-craft box makers pick the fold depth to suit what goes inside, not always the most volume.
  • Hobbies & Crafts
    A classic classroom build: fold boxes with different cuts from the same paper and fill them with rice to compare.
  • Home Projects
    Fold a tray for screws or seedlings from a flattened cereal box.

Questions people ask

Why is the biggest box where the derivative is zero?

Just before the best cut, the volume is still rising, so V′ is positive. Just after, it's falling, so V′ is negative. At the very top the curve is flat for an instant, and V′ = 0.

V′ = 0 has two answers. Why take the smaller one?

The larger one is at or past half the short side, where the corner squares meet and there's no box left. For letter paper the two roots are 4.03 cm and 12.47 cm, but the sheet is only 21.6 cm wide, so cuts must stay under 10.8 cm.

Why is a pizza box so shallow?

It's built to fit a pizza, not to hold the most. On a 60 × 40 cm blank, 4 cm sides hold 6,656 cm³, about 79% of the 8,450 cm³ you'd get from a 7.85 cm cut.