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.
Your data
How we calculate
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 × heighton 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 heightcontainers 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
- Hapag-Lloyd, 20′ Standard: internal dimensions, door opening, payload, 20′ standard: internal length × width × height; door width × height; maximum payload (sample option “20′ standard”): 5900 × 2352 × 2395 mm; 2340 × 2292 mm; 28 130 kg (checked 2026-10-28)
- Hapag-Lloyd, 40′ Standard: internal dimensions, door opening, payload, 40′ standard: internal length × width × height; door width × height; maximum payload (sample option “40′ standard”): 12032 × 2352 × 2395 mm; 2340 × 2292 mm; 28 750 kg (checked 2026-10-28)
- Hapag-Lloyd, 40′ Standard High Cube: internal dimensions, door opening, payload, 40′ high cube (HC): internal length × width × height; door width × height; maximum payload (sample option “40′ high cube”): 12032 × 2350 × 2700 mm; 2340 × 2597 mm; 28 600 kg (checked 2026-10-28)
- EPAL Euro pallet (EPAL 1): dimensions, height, weight, safe working load, EPAL 1: length × width × height, weight, safe working load (default value of the “EPAL 1” sample option): 1200 × 800 × 144 mm; ≈ 25 kg; 1500 kg (checked 2026-11-22)
- EPAL 2 pallet: dimensions, height, weight, safe working load, EPAL 2: length × width × height, weight, safe working load (default value of the “EPAL 2” sample option): 1200 × 1000 × 162 mm; ≈ 35 kg; 1250 kg (checked 2026-11-22)
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.
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