OpsBox AISee it live
← All resources
November 4, 2026·4 min read

How Many Cartons Fit in a 40 ft Container, Worked Out Properly

Cartons per container is floor pattern times layers, then checked against payload. Here is the math for a 24 x 16 x 12 carton in a 20 ft, 40 ft and 40 ft high cube, plus pallets and the stacking trap.

The supplier says a 40 ft container holds 700 of your cartons. Your forwarder says 760. The PO is for 900. Somebody is about to pay for a second container that ships two-thirds empty, or leave 150 cartons on the factory floor for three weeks.

My position: work out the container load yourself before the PO goes out. It takes five minutes, and it decides how many units you buy, not just how they ship.

How the math works

Two limits, and the smaller one wins.

By space: cartons per layer on the container floor x layers that fit under the roof.

By weight: container payload / carton weight.

The floor count is where people lose cartons. A straight grid with every carton facing one way is rarely the best layer. Turning a block of cartons 90 degrees to fill the leftover width often adds a row.

Typical inside sizes for ISO dry containers:

ContainerInside (L x W x H)Payload
20 ft standard5,898 x 2,352 x 2,393 mm28,200 kg
40 ft standard12,032 x 2,352 x 2,393 mm26,700 kg
40 ft high cube12,032 x 2,352 x 2,698 mm26,500 kg

Every shipping line differs by a few millimeters and a few hundred kilos. Treat the answer as a plan, not a guarantee.

The worked example

The carton: 24 x 16 x 12 inches, 30 lb, this side up. Into a 40 ft standard, which is about 473.7 x 92.6 x 94.2 inches inside.

The straight grid. 24 inches along the length: 473.7 / 24 = 19 cartons. 16 inches across: 92.6 / 16 = 5. That is 95 per layer.

The mixed layer. One row of 19 cartons with the 24 inch side along the length uses 16 inches of width. Turn the rest: 16 inches along the length gives 473.7 / 16 = 29 per row. Three of those rows use 72 inches of width. Total width: 16 + 72 = 88 of 92.6 inches. Cartons: 19 + 87 = 106 per layer.

Layers: 94.2 / 12 = 7.85, so 7.

By space: 106 x 7 = 742 cartons. That uses 82.7% of the cube.

By weight: 742 x 30 = 22,260 lb, about 38% of the payload. Space runs out first.

Same carton, other boxes:

  • 40 ft high cube, 106.2 inches inside: 8 layers, 106 x 8 = 848 cartons
  • 20 ft standard: 51 per layer x 7 = 357 cartons

That straight grid would have told you 665. The mixed layer is 77 more cartons in the same box.

Pallets: the stacking trap

48 x 40 pallets, 1,200 lb each, fit 20 on the floor of a 40 ft standard. At 60 inches tall they cannot stack.

Build them 48 inches tall and stackable. In a 40 ft standard, two tiers need 96 inches and you have 94.2. Still 20. In a high cube, two tiers fit: 40 pallets. That is 48,000 lb of cargo, inside the container's payload. It is also heavy enough that your trucker needs to see it before it leaves the port.

Common mistakes

Using outside dimensions. A 40 ft container is 40 ft outside. Inside, it is about 39.5 ft by 7.7 ft.

Forgetting the door. The standard door is about 89.8 inches tall. A pallet that fits inside still has to go through it.

Planning to the last inch. Dunnage, airbags and bulging cartons take space. Plan a few percent under the number.

Trusting payload as the road limit. Axle and gross vehicle limits on the road are often lower than the container's rating. Check with your forwarder and trucker.

Tomorrow morning

Take your next open import PO. Run the carton through the free container loading calculator for a 40 ft and a 40 ft high cube. If the PO lands just over one container, ask the supplier whether to trim it or fill the next one.

OpsBox receives containers against the inbound shipment, carton by carton on the handheld, so what was loaded overseas is what lands in your bins.

See OpsBox AI in action

OpsBox runs the floor: picking, counting, and receiving on any handheld or cellphone, with picks assigned to your team automatically. It connects to the ERP you already have and is live in days, without a consulting engagement.

Use your scanner or a mobile devicePowerful desktop versionLive in days, not next quarterSeamlessly connects to your ERPNo consultantsNo BS
More info, a demo, or just a chat

Whatever is most useful to you. Tell us below and we will take it from there.

We email you once. No drip campaign. We hate those too.