Container Loading Calculator
Calculate optimal cargo loading for shipping containers. Supports 20ft, 40ft, 40ft HC, 45ft HC with 3D visualization and weight limits.
About
Miscalculating container loads costs real money. An underloaded 40ft container wastes 30m3 of paid volume. Overloading past the rated payload of 26,680 kg triggers port rejections, fines, and structural risk to the chassis. This calculator solves the 3D bin-packing problem for standard ISO 668 intermodal containers. It applies a First Fit Decreasing Height algorithm to determine how many uniform cartons fit inside a given container, respecting dimensional constraints, stacking limits, and maximum gross mass. Volumetric utilization and floor coverage are reported as percentages.
The tool assumes rigid rectangular cargo with uniform dimensions. It does not account for palletization, internal bracing, or irregular load shapes. Weight distribution across the container floor is assumed uniform. For refrigerated (reefer) containers, subtract approximately 10cm from internal length for the cooling unit. Pro tip: always verify the tare weight stamped on the container door - it varies by manufacturer and age.
Formulas
The calculator determines the maximum number of cargo units that fit inside a container using layer-based bin packing. For each candidate orientation of the cargo box, the algorithm computes how many fit per layer and how many layers stack vertically.
Where Lc, Wc, Hc are the internal container dimensions and l, w, h are the cargo box dimensions in the chosen orientation. The algorithm tests all 6 permutations of (l, w, h) unless orientation is locked (e.g., "this side up").
Weight constraint: Ntotal ร m โค Pmax, where m is the mass per unit and Pmax is the container's maximum payload capacity. If exceeded, Ntotal is reduced to floor(Pmax รท m).
Reference Data
| Container Type | External L ร W ร H | Internal L ร W ร H (mm) | Door W ร H (mm) | Capacity (m3) | Max Payload (kg) | Tare Weight (kg) | Max Gross (kg) |
|---|---|---|---|---|---|---|---|
| 20ft Standard | 6,058 ร 2,438 ร 2,591 | 5,898 ร 2,352 ร 2,393 | 2,340 ร 2,280 | 33.2 | 25,000 | 2,300 | 30,480 |
| 40ft Standard | 12,192 ร 2,438 ร 2,591 | 12,032 ร 2,352 ร 2,393 | 2,340 ร 2,280 | 67.7 | 26,680 | 3,800 | 30,480 |
| 40ft High Cube | 12,192 ร 2,438 ร 2,896 | 12,032 ร 2,352 ร 2,698 | 2,340 ร 2,585 | 76.3 | 26,460 | 4,020 | 30,480 |
| 45ft High Cube | 13,716 ร 2,438 ร 2,896 | 13,556 ร 2,352 ร 2,698 | 2,340 ร 2,585 | 86.0 | 27,600 | 4,800 | 32,400 |
| 20ft Open Top | 6,058 ร 2,438 ร 2,591 | 5,898 ร 2,352 ร 2,346 | 2,340 ร 2,233 | 32.6 | 21,700 | 2,360 | 30,480 |
| 40ft Open Top | 12,192 ร 2,438 ร 2,591 | 12,032 ร 2,352 ร 2,346 | 2,340 ร 2,233 | 66.5 | 26,330 | 4,150 | 30,480 |
| 20ft Flat Rack | 6,058 ร 2,438 ร 2,591 | 5,698 ร 2,230 ร 2,255 | - | 28.6 | 27,400 | 2,870 | 30,480 |
| 40ft Flat Rack | 12,192 ร 2,438 ร 2,591 | 12,064 ร 2,230 ร 1,955 | - | 52.5 | 39,200 | 5,280 | 45,000 |
| 20ft Reefer | 6,058 ร 2,438 ร 2,591 | 5,444 ร 2,294 ร 2,271 | 2,286 ร 2,195 | 28.4 | 21,520 | 3,080 | 30,480 |
| 40ft Reefer HC | 12,192 ร 2,438 ร 2,896 | 11,577 ร 2,294 ร 2,557 | 2,286 ร 2,502 | 67.5 | 26,280 | 4,200 | 30,480 |
| 20ft Tank | 6,058 ร 2,438 ร 2,591 | - (cylindrical) | - | 24.0 | 26,010 | 3,070 | 30,480 |
| Pallet-Wide 45ft | 13,716 ร 2,500 ร 2,896 | 13,556 ร 2,444 ร 2,698 | 2,426 ร 2,585 | 89.2 | 27,200 | 5,200 | 32,400 |