How we calculate

Every plan is built in your browser by the same engine, checked independently before it is shown, and based on figures we can link to.

The method

Load planning — fitting boxes into a larger box — is a hard optimisation problem with no fast method that is always optimal. We use block building, a well-studied heuristic for container loading (Eley, M. (2002) “Solving container loading problems by block arrangement”, European Journal of Operational Research 141; Fanslau, T. and Bortfeldt, A. (2010) “A tree search algorithm for solving the container loading problem”, INFORMS Journal on Computing 22). The container is filled from the back wall, one block of identical boxes at a time, with a look-ahead that scores each block by how well the space left over can still be filled. Many variants are run and the plan that loads the most volume is kept.

Because it is a heuristic, a plan may occasionally fit a few boxes fewer than the best possible arrangement. It will never show an arrangement that is physically impossible: the checks below make sure of that.

Checks on every plan

  • No two boxes overlap, and every box is inside the load space.
  • Each box is stowed in one of its allowed orientations; “this side up” boxes keep their height vertical.
  • In a container, each box fits through the door opening in the way it is stowed.
  • Every box stands fully on the floor or on boxes below it, and nothing stands on a box marked as not stackable.
  • The total weight is within the limit you entered, and no more boxes are placed than you entered.

The engine's test suite also checks hand-calculated cases (for example, 8 cubes of 500 mm in a 1 m cube, and 660 cartons of 600 × 400 × 400 mm in a 40' high cube) and 40 random cases on every change.

Units

Everything is calculated in millimetres and kilograms. Inches and pounds use the exact definitions 1 in = 25.4 mm and 1 lb = 0.45359237 kg.

Sources

FigureSourceChecked
20' Standard: inside size, door, tare, payload, grossHapag-Lloyd2026-10-18
40' Standard: inside size, door, tare, payload, grossHapag-Lloyd2026-10-18
40' High Cube: inside size, door, tare, payload, grossHapag-Lloyd2026-10-18
45' High Cube: inside size, door, tare, payload, grossHapag-Lloyd2026-10-18
Packing, securing and weight distribution guidanceIMO/ILO/UNECE CTU Code2026-10-18

Found an error? Tell us — we check and correct the figures regularly.