3D Visualizer

Container Loading Calculator 3D

How many boxes or pallets fit in a 20 ft or 40 ft container, a truck trailer or on a pallet – with a 3D load plan you can step through

Quick Answer:About 262 cartons of 60 × 40 × 40 cm (24 × 16 × 16 in) fit in a 20 ft container, 560 in a 40 ft and 660 in a 40 ft high cube. On the floor, a 20 ft container takes 11 EUR pallets (1200 × 800 mm) or 9 US pallets (48 × 40 in), a 40 ft takes 23–25 EUR or 20 US pallets, and a 53 ft trailer takes 26 US pallets loaded straight or 30 turned sideways. Very heavy cargo reaches the weight limit before the space runs out.

--

--

--

Load space

Inside dimensions.

Cargo

Result

--

--

Volume used

--

--

Weight

--

--

Floor length used

--

--

Centre of gravity

--

--

Load list

ItemSizeLoadedNot loaded

Plans are a guide: check door openings, floor load limits, securing (dunnage, straps, airbags) and the road weight limits on your route before you ship.

Shipping container sizes

A 20 ft standard container holds about 33 m³ (1,170 ft³) and 11 EUR (1200 × 800 mm) or 9 US (48 × 40 in) pallets on the floor. A 40 ft holds about 67.7 m³ (2,390 ft³) and 23–25 EUR or 20 US pallets; the 40 ft high cube adds 30 cm (1 ft) of height for 76 m³ (2,690 ft³), which pays off for light, bulky cargo. Heavy cargo fills the weight limit before the space: a 20 ft can take more weight than a 40 ft, and road limits in many countries are lower than the container's rated payload.

In practice you rarely fill more than 80–90% of the volume with cartons, because boxes don't divide the container exactly and you need room for securing. The calculator tries every orientation and mixes rotated rows to find the best floor pattern, then stacks it in layers.

How the Container Loading Calculator 3D works

Pick a container, trailer or pallet (or enter custom inside dimensions and payload) and describe up to five box types with their size, weight and quantity. Leave the quantity empty with one box type to find the maximum that fits.

For one box type the calculator tries each way the box can stand (only upright if you tick "Keep upright"), finds the best floor pattern – mixing rows turned 90° where that fits more – and stacks it in layers, adding a top layer on its side if there is room. It then caps the count at the payload.

For mixed loads it places the largest boxes first, always at the free corner that keeps the load closest to the front wall and lowest, and only lets a box rest on stackable boxes that support at least 75% of its base. The 3D view and the slider show the boxes in loading order.

Boxes per row = ⌊inside length ÷ box length⌋, and the same across the width and height

Boxes that fit = floor pattern × layers, limited to ⌊payload ÷ box weight⌋

Centre of gravity = Σ(weight × position) ÷ Σ weight

Worked example

Cartons of 60 × 40 × 40 cm, 15 kg each, in a 20 ft standard container (589.8 × 235.2 × 239.3 cm inside).

  1. Standing upright (40 cm tall): 52 cartons per layer × 5 layers = 260, with 39 cm of height left over.
  2. On their side (60 cm tall, 40 × 40 cm footprint): 14 along × 5 across = 70 per layer × 3 layers = 210, then the remaining 59 cm takes one more layer of 52 laid flat – 262 in total.
  3. Weight: 262 × 15 kg = 3,930 kg, well under the 28,200 kg payload, so space is the limit.

Result: 262 cartons fit, using 76% of the container volume.

Pallets per container or trailer (single layer)

Pallets per container or trailer (single layer)
Load spaceInside L × W × HEUR 1200 × 800Industrial 1200 × 1000US 48 × 40 in
20 ft standard container590 × 235 × 239 cm1199
40 ft standard container1203 × 235 × 239 cm232020
40 ft high cube container1203 × 235 × 270 cm232020
45 ft high cube container1356 × 235 × 270 cm272424
53 ft dry van trailer (US)1600 × 254 × 274 cm393030
13.6 m semi-trailer (EU)1360 × 245 × 270 cm332626

Computed with 1 cm (½ in) clearance between pallets and pallets free to turn 90° on the floor. Double the count when loads are low enough to stack two high and the goods allow it.

Assumptions and limits

  • Dimensions are typical inside measurements; containers and trailers vary by a few centimetres between makers, so leave some margin for tight loads.
  • The plan does not include dunnage, airbags or straps, or the space a forklift needs at the doors. Use the clearance setting for pallets.
  • Check floor load limits, the stacking strength printed on your cartons and the road weight limits for your route, which are often lower than a container's rated payload.
  • Heuristic packing is fast and close to optimal for regular cartons, but it is not guaranteed to be the absolute maximum for every mix of sizes.

Sources

  • Maersk – Dry container specifications
  • Hapag-Lloyd – Container specification (Standard and High Cube)
  • Crainic, Perboli & Tadei – Extreme Point-Based Heuristics for Three-Dimensional Bin Packing, INFORMS Journal on Computing 20(3), 2008
  • ISO 668 – Series 1 freight containers: classification, dimensions and ratings

Last reviewed November 8, 2026 · How we build and check our calculators

Frequently Asked Questions About Container Loading

How many pallets fit in a 20 ft container?

In a single layer, 11 EUR pallets (1200 × 800 mm) or 9 US pallets (48 × 40 in), with about 1 cm of clearance between them. The 20 ft container is 2.35 m (92.6 in) wide inside, too narrow for two US pallets side by side in the 48 in direction, which is why only 9 fit. If the loads are under about 1.2 m (47 in) tall and can be stacked, you can double this.

How many pallets fit in a 40 ft container?

Up to 25 EUR pallets with zero clearance, but 23 or 24 in practice once you leave room to load them with a forklift, and 20 US pallets (48 × 40 in). A 40 ft high cube has the same floor, so it takes the same number of pallets on the floor but offers 30 cm (1 ft) more height for stacking.

How many pallets fit in a 53 ft trailer?

A 53 ft dry van takes 26 US pallets loaded straight (two across, 48 in side along the trailer) or 30 when they are turned so the 40 in side runs along the trailer. A European 13.6 m semi-trailer takes 33 EUR pallets or 26 industrial pallets (1200 × 1000 mm).

How do I calculate how many boxes fit in a container?

Divide the inside length, width and height by the box dimensions and round down, then try the other orientations – turning some rows 90° often fits a few more. That is what this calculator does automatically, and it also checks the weight limit. Expect to use 75–90% of the volume with cartons; the rest is lost where the box sizes do not divide the container exactly.

Does weight or volume limit a container load?

Light, bulky goods fill the space first; dense goods such as tiles, paper, metal or liquids hit the weight limit first. A 20 ft container is rated for about 28 tonnes of cargo and a 40 ft for about 26.7 tonnes, but road limits are often lower – in the US a 40 ft container usually carries no more than about 44,000 lb (20 t) of cargo on the highway.

Browse all 39 3d visualizers & ai tools calculators →

Copied!