A pallet load is a packing problem in two parts: how many cartons fit per layer, and how many layers you can stack before hitting a height or weight limit. This calculator solves both, picks the better carton orientation, and tells you which constraint is actually binding your load.
How it works
Cartons per layer come from testing both footprint orientations and flooring the fit in each direction:
fit A = floor(palletL / cartonL) × floor(palletW / cartonW)
fit B = floor(palletL / cartonW) × floor(palletW / cartonL)
per layer = max(fit A, fit B)
Layers are then the smaller of the height-allowed and weight-allowed counts:
layers by height = floor((maxHeight − deckHeight) / cartonHeight)
layers by weight = floor((maxWeight − palletTare) / cartonWeight / perLayer)
total cartons = perLayer × min(layers by height, layers by weight)
Example and tips
On a EUR pallet (120 by 80 cm, ~14 cm deck), cartons of 40 by 30 cm fit nine per layer. With a 25 cm carton height and a 180 cm total-height limit, the clearance of 166 cm allows six layers, for 54 cartons. If each carton weighs 10 kg, that is 540 kg of product plus pallet tare — well within a 1000 kg cap, so height is the binding constraint here. To pack more, either raise the height limit or use a denser footprint orientation. Always leave margin for strapping and for the overhang rules your carrier enforces.