Shipping and logistics · Calculator

How many boxes fit in a container: loose or on pallets?

Choose a container (20′, 40′, 40′ HC or your own truck body), enter the box, the pallet and the limits, and the calculator compares loading loose (all orientations + one split) and on pallets (layer pattern, layers, pallet load, pallets on the floor), checks the door and the payload and tells you how many containers the consignment needs.

Planning estimate Formula shown Your data stays in your browser

Your data

1. Container or truck body

Sample options give the internal dimensions, door and payload based on examples from the Hapag-Lloyd fleet (checked 26 September 2026); for your own truck body, fill in the fields below (with a sample option selected, they are not used).

Only for “Your own”.
0 means the door is not checked.
0 means the door is not checked.
0 means no weight limit.
A straight entry with no manoeuvring: the two smaller dimensions of the box (for a pallet, the shorter side and the loaded height) must fit through the door.
2. Box

External dimensions and weight; a weight of 0 means no weight limit. When loading loose, all orientations of the box are tried.

When loading loose, the box can lie on any side; on a pallet, the vertical orientations are also tried.
0 means no weight limit.
For boxes loaded loose and for a layer on a pallet; pallets on the floor are always tried with a split.
3. Pallet

An EPAL sample option or your own; the maximum loaded pallet height is a warehouse or carrier limit (the calculator also caps it at the container height).

Only for “Your own pallet”.
0 means no limit.
A warehouse or carrier limit; the calculator also caps it at the container height.
4. Consignment (optional)

How many boxes need to be shipped. The calculator counts containers for each method.

Optional.

How we calculate

  1. loose: the best of the uniform patterns in 6 box orientations and the patterns with one straight split (on a tie, the uniform one); no more than payload ÷ weight, rounded down; door: the two smaller dimensions of the box ≤ door width × height
  2. on a pallet: for each vertical orientation, boxes per layer (pattern with one split) × (the smaller of the maximum height and the container height − pallet height) ÷ box height, rounded down, no more than load ÷ weight, rounded down; pallets on the floor: a pattern with one split; pallets actually loaded = the smaller of the floor and payload ÷ loaded pallet weight, rounded down; door: shorter pallet side ≤ width, loaded height ≤ door height
  3. containers for the consignment = consignment ÷ boxes, rounded up; volume utilisation = boxes × box volume ÷ container volume; maximum box weight = payload ÷ geometric capacity (loose) or pallet load ÷ pallet geometry

Assumptions

  • When loading loose, boxes can lie on any side; on a pallet, the vertical orientations are tried; in a layer, either a uniform pattern or one straight split.
  • The door check assumes a straight entry with no manoeuvring; the payload is a limit on the total weight, without axle limits. change
  • Loaded pallets stand in a single tier; the loaded pallet height is limited by the smaller of your maximum and the container height. change

Limitations

  • Container dimensions in the sample options are examples from the Hapag-Lloyd fleet (20′: 5,900 × 2,352 × 2,395 mm, door 2,340 × 2,292, 28,130 kg; 40′: 12,032 × 2,352 × 2,395, 28,750 kg; 40′ HC: 12,032 × 2,350 × 2,700, door 2,340 × 2,597, 28,600 kg), not universal; check with your carrier.
  • Axle and legal limits, the centre of gravity, load securing, dangerous goods compatibility, box strength, overhang, separators, ventilation, forklift manoeuvring, floor loading and complex three-dimensional interlocking patterns are not modelled.

Sources

Questions and answers

Why does loading loose almost always fit more?

The pallet itself takes up space (height, floor area, the empty space above it), while boxes loaded loose fill the volume more densely. On the other hand, pallets are quicker to load and unload and easier to secure. The calculator shows both numbers, and the choice is yours.

What does the door check test?

A straight entry: the two smaller dimensions of the box must fit within the width and height of the door; for a pallet, the shorter side within the width and the loaded height within the height. Forklift manoeuvring is not modelled.

Is this a loading plan?

No, it is a planning estimate of capacity by geometry and weight. A plan that takes axle loads, the centre of gravity and load securing into account is made by the carrier or a freight forwarder.

Where do the container dimensions come from?

The sample options are examples from the Hapag-Lloyd fleet for 20′, 40′ and 40′ HC (checked 26 September 2026); containers differ slightly between owners, so there is a “Your own” option.

Related tools

A planning estimate of capacity by geometry and weight, not a loading plan and not a carrier’s permission: axle and legal limits, the centre of gravity, load securing, cargo compatibility, box strength, overhang, separators and forklift manoeuvring are not modelled. Container dimensions are examples from the Hapag-Lloyd fleet, not universal; check with your carrier.

Formula version container-truck-loading@1.1.0 · checked 26 September 2026

Checked by the Calc editorial team: three independent implementations of the formula, test cases and the live page on a phone. Last check: 27 September 2026