A 40' High Cube (40HQ) container has 2,698 mm of internal height, yet the steel rear door header narrows to 2,585 mm. When loading double-stacked pallets with a forklift, each pallet must stay under ~1,240 mm (allowing ~100 mm fork lift clearance) or the top tier will collide with the door frame.
Similarly, GMA 48×40 in (1,219×1,016 mm) pallets fit 20 spots straight in a 40' container (2 rows × 10 columns), or up to 21 spots when pinwheeled lengthwise + crosswise along the 2,352 mm internal width — always leave 30–50 mm wall clearance for corrugated pallet tolerance.