Container loading calculator: how many cartons fit
Enter one carton size and weight to see how many cartons fit in a 20ft, 40ft or high cube container. The calculator tests each allowed orientation, then caps the count by payload and, if you choose, a road weight limit. Container sizes are Hapag-Lloyd's published example units.
Cartons that fit in one 40ft high cube (40HC)
–
Loading pattern
All container types compared
| Type | Inside L × W × H | Space-limited | Weight-limited | Fits | Volume used | Payload used |
|---|
How it works
The calculator converts every size to millimetres. For each allowed orientation it divides the container length, width and height by the matching carton side and rounds down. It multiplies the three results and keeps the orientation with the most cartons. Orientations that cannot pass the door opening are skipped.
"Keep upright" tests only two orientations, with the carton height always vertical. "Any side down" tests all six. A stacking limit caps the layers or the stack height.
Next comes weight. The calculator divides the payload, or the road limit if lower, by the carton gross weight and rounds down. The smaller of the two counts is the result, and the panel shows which one binds.
For pallets, it first fills one pallet with cartons up to the loaded height. It then places pallets on the floor in two lanes, one turned crosswise and one lengthwise, and stacks tiers if height allows. Pallet weight is added to the cargo weight.
For the order quantity, it applies your safety margin to each type, then finds the smallest number of containers. If two splits tie, it picks the one with less total space.
Example: a 60.00 × 40.00 × 40.00 cm carton gives 20 × 5 × 6 = 600 cartons in a 40HC, as in our container dimensions guide. That is 57.60 CBM, or 75.49% of 76.30 CBM.
FAQ
How many cartons fit in a 40ft container?
It depends on the carton size. A 60.00 × 40.00 × 40.00 cm carton gives 500 in a 40GP and 600 in a 40HC on paper. Enter your own size and plan with a 5.00% to 10.00% margin.
Why does the calculator show fewer cartons than the CBM suggests?
Cartons never match the walls exactly. The spare length, width and height cannot hold a whole carton. Loads of 65.00% to 80.00% of nominal volume are common for a single carton size.
When does weight limit the load before space?
When cargo density is above the payload divided by the volume. For a 20GP that is 28,130.00 kg ÷ 33.20 CBM, or 847.29 kg per CBM. Road limits lower that line.
Should I allow cartons to be turned on their side?
Only if the goods allow it. Turning can add cartons, but "this side up" cartons, liquids and fragile goods must stay upright. Choose "Keep upright" for those.
What does the US road limit preset use?
Swire Shipping's US guidelines: 37,500.00 lb of cargo standard for a 20ft and 43,500.00 lb for a 40ft. A 20ft can go to 43,500.00 lb with a surcharge. Some states differ.
Do pallets reduce how many cartons fit?
Usually, yes. Pallet sizes do not divide the container width evenly, and the base takes height. You gain faster, safer handling. Compare both methods in the tool.
Is this a load plan I can give my supplier?
No. It is an indicative estimate for one carton size. A real load plan also spreads weight evenly and secures the cargo. Ask your forwarder for one before loading.
Sources
- Hapag-Lloyd: 20' Standard container, inside sizes and payload (checked 17/11/2026)
- Hapag-Lloyd: 40' Standard container specifications (checked 17/11/2026)
- Hapag-Lloyd: 40' Standard High Cube specifications (checked 17/11/2026)
- Hapag-Lloyd: 45' Standard High Cube specifications (checked 17/11/2026)
- Swire Shipping: US over-the-road cargo weight guidelines (checked 17/11/2026)
- EPAL: Euro pallet dimensions and weight (checked 17/11/2026)
- iContainers: how many pallets fit in a container (checked 17/11/2026)