Worked examples
120×100×150 cm space, 40×30×20 cm boxes
75 turning freely (100% used), 63 if kept top up (84%)
100×100×100 cm space, 33×33×33 cm boxes
27 (about 97% used)
240×150×150 cm, 60×40×30 cm boxes at 12 kg, 500 kg limit
60 by space, 41 by weight
How to use it
- Choose whether boxes may be turned any way.
- Enter space and box dimensions in cm.
- Add box weight and payload if there is a limit.
What this calculates
Box stacking counts how many identical rectangular boxes fill a rectangular space. A box can sit six ways. For each, divide the space length, width and height by the matching box sides, round down and multiply; the largest result wins. When boxes must stay top-up only the three orientations that keep the height vertical are compared. Use it for choosing a vehicle size or planning freight quantities.
The formulas
- One orientation = ⌊length÷side₁⌋ × ⌊width÷side₂⌋ × ⌊height÷side₃⌋
- Count = the maximum over 6 orientations (3 if kept upright)
- Space used = boxes × box volume ÷ space volume × 100
Reference table
| Box (cm) | Any way | Top up | Space used |
|---|---|---|---|
| 40 × 30 × 20 | 75 | 63 | 100.0% |
| 60 × 40 × 30 | 20 | 20 | 80.0% |
| 50 × 50 × 50 | 12 | 12 | 83.3% |
| 35 × 25 × 15 | 128 | 120 | 93.3% |
| 45 × 35 × 30 | 32 | 30 | 84.0% |
Good to know
- Searching mixed layouts is much harder and is not done, so the real count may be slightly higher.
- Wheel arches and door width are not modelled.
- A weight limit can reduce the count even if space remains.
Sources
Frequently asked questions
What does top up mean?
Boxes cannot be laid on their side; the height stays vertical but length and width may swap.
My count by hand is different.
Mixing orientations can fit more; this counts one orientation only.
Where are truck sizes?
None is built in; measure the inside of your vehicle bed.
What about pallets?
Treat each pallet as a box, or use the pallet loading calculator.
What does weight do?
It caps the count at the payload divided by box weight.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.