How Many Boxes Actually Fit in a 40ft Container? A Reality Check
By Kubova Team

“How many boxes fit in a 40-foot container?” has a clean-looking answer — container volume ÷ box volume — that is almost always wrong, and wrong in the expensive direction. Here is the real number, measured by running thousands of placements through our packing engine, and the reasons the tidy formula breaks down.
The formula everyone starts with — and why it lies
The estimate you find everywhere is simple: take the container’s inner volume, divide by one box’s volume, done. For a 40 HC (≈ 76.3 m³) and a 50×40×30 cm carton (0.06 m³), that gives 1,271 boxes.
The problem is the assumption underneath it: that cargo behaves like water and fills every cubic centimetre. It does not. Boxes are rigid, can only sit in a few orientations, and leave gaps wherever their dimensions do not tile the space. The formula computes a ceiling no real load reaches.
What the engine actually fits
We packed six common carton sizes into a single 40 HC with our engine (light unit weights, so this isolates the volume question) and compared the achievable count to the naive formula. Every figure below is a direct engine output.
| Carton (cm) | Naive (÷ volume) | Actually fits | Volume used | Overestimate |
|---|---|---|---|---|
| 60 × 40 × 40 | 794 | 660 | 83.1% | 16.9% |
| 50 × 40 × 30 | 1,271 | 1,150 | 90.4% | 9.5% |
| 40 × 30 × 25 | 2,542 | 2,466 | 97.0% | 3.0% |
| 30 × 30 × 30 | 2,825 | 2,240 | 79.3% | 20.7% |
| 80 × 60 × 50 | 317 | 285 | 89.7% | 10.1% |
| 120 × 80 × 60 | 132 | 110 | 83.1% | 16.7% |
The five things that eat the gap
The difference between the formula and reality is not random — it comes from five concrete losses:
- Tiling remainders. If the box length does not divide the container length, every row leaves a strip of dead space. Repeated down the container, it adds up.
- Height remainders. The same happens vertically: the top layer is often partial, and a 269 cm inner height rarely divides cleanly by a box height.
- Orientation limits. “This way up” and no-rotation rules remove the orientations that would have closed a gap.
- The door column. The very last column near the doors is constrained by the door opening, not the full inner width.
- Weight. On dense cargo the payload limit stops you before the space is full — see below.
How to estimate better in ten seconds
If you only have a calculator, you can get much closer than the naive formula:
- Take the volume estimate, then multiply by 0.85–0.90 for a well-proportioned carton, or 0.78–0.82 for cubes and odd ratios.
- Check weight: cargo density (kg/m³) above ~375 for a 40 HC means weight, not volume, is your limit.
- Remember the door: do not count on the last column being full-width.
That gets you a defensible ballpark. When the answer decides a booking — one container or two, which container type, a price you quote a customer — estimate it exactly instead of guessing.
The honest part
It is tempting for a tool to quote the bigger, prettier number. We do the opposite: the engine never overflows the container’s real dimensions to inflate a count, and it reports the volume use it actually achieves. A number you can load beats a number that looks good in a spreadsheet.
Get the real number for your cartons
Enter your box sizes and container — free, no card required.
Related reading
- Try the 3D container loading calculator — the same engine these numbers came from.
- Plan a load from ChatGPT or Claude — automate the calculation entirely.
Frequently asked questions
How many boxes fit in a 40ft container?
It depends entirely on the box size, but the honest answer is fewer than the volume formula suggests. A 40-foot High Cube has about 76 m³ of inner space. The naive estimate — container volume divided by box volume — overstated the achievable count by an average of about 13% across the box sizes we measured with our packing engine, and by more than 20% for cubes and awkward ratios. For a common 50×40×30 cm carton, around 1,150 fit; for a 60×40×40 cm carton, around 660.
Why does the volume formula overestimate?
Dividing container volume by box volume assumes the container is a perfect liquid that fills every cubic centimetre. In reality boxes cannot interpenetrate, orientations are constrained, layers leave gaps, the door opening limits the last column, and weight can cap the load before the space is full. Those losses are real and measurable.
Which boxes waste the most space?
Cubes and boxes whose dimensions do not divide evenly into the container. In our runs a 30×30×30 cm cube reached only ~79% volume use (the worst case), while a 40×30×25 cm carton reached ~97%. The closer a box tiles the container floor and height, the less space is lost.
Does weight or volume run out first?
For light cargo, volume. For dense cargo, weight — a 40 HC caps at roughly 375 kg per cubic metre of cargo before the payload limit is reached, so anything denser than that fills on weight, not space. A volume-only count will over-promise on heavy goods.
Who: Written and reviewed by the Kubova team, who build and operate the packing engine described here.
How: Drafted with AI assistance for research and structure; the technical claims, examples and product details are owned and verified by the team.
Why: To help logistics and engineering teams decide whether to let an AI agent plan their loads — not to chase a keyword. Published 2026-06-08.