Container loading calculator

Enter your carton sizes, weights and quantities to see how many fit in a 20', 40', 40' high cube or 45' container, with a 3D plan you can step through. For example, 600 × 400 × 400 mm cartons: 660 fit in a 40' high cube (inside 12,032 × 2,350 × 2,700 mm) — 30 rows along the length, each row 22 cartons: three columns of six lying 600 mm across plus one column of four standing 600 mm tall.

How to use this tool · step-by-step guide to every option

Container

Inside size, payload, door

Boxes

Columns: Name, Length, Width, Height, Weight, Quantity, This side up, Stackable, and optionally Max boxes on top and Max weight on top (template: Excel · CSV). Importing replaces the box list; the file stays in your browser.

Put the cartons on pallets firstOff: the cartons are loaded loose

Builds pallets from the box list above (one box type per pallet, with the stacking pattern and stacking limits you chose), then loads the loaded pallets into the container. The box list becomes a list of pallets; “Back to the cartons” brings your cartons back.

More options

Loading method

Stacking pattern

Boxes loaded
–
Volume used
–
Weight loaded
–
Boxes left over
–
Drag to turn · pinch or scroll to zoom
Loading step:
Space left
–
Payload left
–
Stacking
–
Weight distribution and axle loads
Centre of gravityPositionOff the middle

Axle loads (optional)

Split the cargo weight between the front support (a semi-trailer's kingpin, or a truck's front axle) and the middle of the rear axle group. Measure both from the inside of the back wall, the closed end behind the cab; a front support ahead of that wall is a negative number. Add the empty vehicle's own axle loads from a weigh ticket to see the totals.

Move, turn or remove boxes, place the rest yourself, or let the planner fill the gaps around them. Every change is checked: no overlaps, full support, door size and the positions each box may use.

Saved plans

    Plans are kept in this browser on this device only (up to 50), with every input, the loading method and steps and any hand edits; nothing is sent to us. Clearing the browser's site data removes them. To keep a plan elsewhere or send it, use Copy link.

    Which size fits this load

    SelectTypeOne takesNeeded

    Box typeOrderedLoadedLeft overLoaded weightPositions used
    Room left after this planMore that still fitLimited by

    “More that still fit” is how many more of that box type alone would fit in the space left, keeping the plan as it is, within the payload left.

    Loading list

    LayerBox typePositionBoxesAlongAcrossLoaded so far

    How the calculator works

    This is a free 3D load planner and container calculator: it runs in your browser, needs no sign-up, and shows every carton in a 3D view you can turn, step through and edit. The result is a container loading plan (a stuffing plan): how many cartons or pallets go in, where each one stands, and in which order to load them.

    The planner fills the container from the back wall toward the door. At each step it takes the empty space nearest the back and the floor, and fills its corner with the best block of identical cartons — a set of rows, columns and layers in one orientation. What is left of that space is cut into smaller spaces, and the process repeats until nothing more fits or every carton is loaded. This is the “block building” method used in container loading research (Eley, 2002; Fanslau and Bortfeldt, 2010).

    The planner tries many variations — different ways of scoring blocks and cutting the leftover space, plus seeded random choices — and keeps the plan that loads the most cargo volume. The same inputs always give the same plan, so a shared link shows exactly what you saw.

    Before a plan is shown, an independent check confirms that no two cartons overlap, every carton is inside the container and fits through the door opening in the way it is stowed, “this side up” cartons are not tipped, every carton stands fully on the floor or on cartons below it (with interlocked layers: at least the share of its base you chose, with its centre over a carton), nothing is stacked on a carton marked as not stackable, and the payload limit is not exceeded.

    • Any side can face down: the carton may be stowed in any of its six orientations.
    • This side up: the carton keeps its height vertical; it can only be turned flat (length and width swapped).
    • Can carry boxes on top: untick for fragile cartons or crates that must not be stacked on.
    • Load in list order: by default the planner loads whatever combination uses the most space. Tick this when the first box type must go in before the others.

    How many containers do I need?

    Enter the whole shipment as it is. When it does not fit in one container, the planner loads what is left into a second container of the same size, then a third, until every carton is loaded (up to 20), and checks each plan the same way as the first. A row of numbered buttons above the 3D view shows how many containers you need and how many cartons go in each; tap a number to see that container's plan and loading list.

    Example: 2,000 cartons of 600 × 400 × 400 mm, 12 kg each. One 40' high cube takes 660, so the shipment needs 4 × 40' high cube: 660 + 660 + 660 + 20 (2,000 − 3 × 660 = 20 in the last one). Each full container weighs 660 × 12 = 7,920 kg of cargo, well under the 28,600 kg payload, so here the space, not the weight, sets the count. With heavy cargo the payload runs out first, and the planner stops loading a container at its payload.

    The table Which size fits this load under the result tries the same cartons in every container, trailer and truck size of the list: how many one of each takes and how many are needed. It names the smallest size that takes everything in one, or else the size that needs the fewest, and when the last container is only partly full it says whether a smaller size would take what is left. Loading pallets instead of cartons? Enter the loaded pallets as boxes, or start from pallets in a container, which has the same pallet container calculator with the standard pallet sizes ready.

    Choosing carton orientation

    Every carton can sit in six positions: one of its three sides faces up, and its length either runs along the container (toward the door) or across it. Under Orientation you choose how much the planner may decide:

    • Automatic: the planner tries every allowed position for each block and keeps the mix that loads the most. With “this side up” it only turns cartons flat.
    • Choose the positions allowed: tap the drawings to allow or block each of the six positions — for example, allow only “height up” and “length up” for cartons that must not lie on their side. Leave one position ticked to fix it completely.

    The table under the plan shows which positions were used and how many cartons are in each. For the 600 × 400 × 400 mm carton above, fixing it in one position (400 mm up, 600 mm along) gives 20 × 5 × 6 = 600 cartons in a 40' high cube, while letting the planner mix positions gives 660.

    Import your packing list from Excel

    Under the box list, Import from Excel / CSV reads an .xlsx or CSV file with one row per carton type, and Paste from Excel takes rows copied straight from a spreadsheet. The header row names the columns — Name, Length, Width, Height, Weight, Quantity, and optionally This side up and Stackable — with the unit in brackets, such as Length (cm) or Weight (lb). Start from the Excel template or the CSV template. The file is read in your browser and never uploaded; a note after importing lists what was read and any rows skipped. Details are in the user guide.

    Interlocked layers or column stacks

    Cartons stacked straight up in columns fill a container well, but the columns are not tied to each other and can lean apart when the load shifts. Under Stacking pattern you choose:

    • Interlocked (stable): for one box type in fully automatic mode, the planner builds the load in walls of equal length from the back wall. Inside each wall the layers alternate between a pattern and its mirror image across the container, so cartons bridge the joints of the layer below. Every wall can be loaded as one unit, back to front; the space in front of the last full wall is filled with the ordinary planner.
    • Each box rests on at least 100%, 90%, 80% or 70% of its base: below 100% a carton may bridge a small gap, but that share of its base and its centre must rest on cartons below. 80% is filled in as a starting point; choose 100% for soft or weak cartons.
    • Column stacks (most boxes): the plan described above. With several box types the planner always uses it.

    The result shows which pattern was used, how many cartons above the floor layer bridge two or more cartons below, and how many more column stacks would load if interlocking costs space. For the 600 × 400 × 400 mm carton in a 40' high cube it costs nothing: walls 1,200 mm long, each layer one column of two cartons lying 600 mm along the container (400 mm across) beside three columns of three lying 600 mm across (3 × 600 + 400 = 2,200 mm of the 2,350 mm width), 2 + 9 = 11 cartons, mirrored every other layer; 10 walls (12,000 mm) × 6 layers (2,400 mm) = 660 cartons, the same as column stacks.

    Fully automatic or semi-automatic loading

    Fully automatic leaves everything to the planner: the order of box types, where each block goes and which way each carton faces.

    Semi-automatic lets you set the loading sequence the way your warehouse will actually load, and the planner works out the exact position of every carton in each step. Each step has:

    • Box type and how many: leave the quantity empty to load all that are left of that type.
    • Position: automatic (best of the positions you allow for that box) or one fixed position for this step only.
    • Start a new section: the step begins in front of everything already loaded, so later cargo is not tucked into gaps behind it. Use this to keep orders, destinations or stops together.

    Steps run in order from the back wall toward the door, and you can move or delete them. With “Then load whatever is left automatically” ticked, the planner finishes with the cartons no step took. The step table shows how many cartons each step asked for and how many it loaded, and the loading-step slider under the 3D view tells you which step each carton belongs to. Every semi-automatic plan passes the same independent check as an automatic one, plus checks that each step used only its own box type, kept its fixed position, and that new sections start in front of earlier cargo.

    Editing the plan by hand

    Under the 3D view, Edit this plan by hand turns any plan into one you can adjust, and Load by hand from empty starts with an empty container. Tap a box in the 3D view (or step through the boxes with ‹ ›) to select it, then:

    • Turn it into another of its allowed positions, where it stands.
    • Push it toward the back wall, the door, left, right, up or down: it slides until it meets a wall or another box.
    • Pick a new spot: green boxes in the 3D view show every free spot where it fits; tap one.
    • Remove it. Boxes standing on it come out with it, and all of them are listed under “Not loaded”.

    Boxes under “Not loaded” can be placed one at a time: choose a position or leave it automatic, then tap a green spot or use the next free spot (nearest the back wall and the floor). Fill the rest automatically keeps every box you placed and loads what is left around them. Undo and Redo step through your changes, and the share link keeps your hand edits.

    Every change is checked before it is made, with the same rules as an automatic plan: a box cannot overlap another, must stand fully on the floor or on boxes below (in an interlocked plan: at least the share of its base you chose, with its centre over a box), cannot go on a box marked as not stackable, must use a position it is allowed, and must pass the door the way it is stowed. A box with others standing on it cannot be moved or turned until they are moved. If a change would break a rule, the planner says why instead of making it. Changing the boxes or the container afterwards starts again from an automatic plan.

    The loading list

    Under the plan, the loading list turns it into instructions a loader can follow. It cuts the load into sections along the container, from the back wall to the door, and lists each section layer by layer from the floor up: the box type, how many, the position (for example “H up · L along”) and where the boxes go, in distances from the back wall and from the right-hand wall as seen from the door. Each section also shows the boxes and weight loaded so far, so the crew can check their progress.

    Sections come from the plan itself. With interlocked layers they are the walls the plan is built in (for example ten walls of 1,200 mm for 600 × 400 × 400 mm cartons in a 40' high cube, each six layers of 11). Otherwise a section ends wherever no box crosses the line across the load; where boxes of different lengths overlap, a section runs for at least 1,200 mm (or twice the longest box) and each box belongs to the section its back face is in, moved to a later one if it stands on a box there. In semi-automatic mode each step gets its own sections. The loading step slider shows the boxes in exactly this order. Download loading list (CSV) saves the list for Excel, one row per section, layer, box type and position, and Print plan prints it with the plan.

    Container sizes used in the presets

    Inside dimensions, door openings and payloads below are Hapag-Lloyd's published figures. Hapag-Lloyd notes that its figures are examples and that containers vary by manufacturer, so check your own unit's data plate or booking when the fit is tight, and pick “Custom size” to enter it.

    ContainerInside L × W × H (mm)Door W × H (mm)Max payload (kg)
    20' Standard5,900 × 2,352 × 2,3952,340 × 2,29228,130
    40' Standard12,032 × 2,352 × 2,3952,340 × 2,29228,750
    40' High Cube12,032 × 2,350 × 2,7002,340 × 2,59728,600
    45' High Cube13,556 × 2,352 × 2,7002,340 × 2,59727,700
    20' Reefer5,450 × 2,280 × 2,1592,290 × 2,26429,140
    40' Reefer High Cube11,599 × 2,290 × 2,4252,290 × 2,55729,580
    20' Open Top5,895 × 2,350 × 2,3402,338 × 2,28030,050
    40' Open Top12,029 × 2,350 × 2,3442,340 × 2,27628,450

    Source: Hapag-Lloyd container specification pages (linked), checked 2026-11-29. More detail on shipping container dimensions; pallet footprints and heights on standard pallet sizes. To plan the cartons on each pallet first, use the pallet loading calculator; for whole pallets, see how many pallets fit in a container. For the total volume of your cartons in cubic metres or cubic feet, use the CBM calculator.

    The reefers and open tops come right after the dry containers. A reefer's height is the height Hapag-Lloyd lists: for the 20' reefer that is the maximum stowage height to the red load line (2,159 mm, against 2,259 mm inside), so that air can circulate; Hapag-Lloyd's booklet prints no load-line height for the 40' high cube reefer series, so check the red line of your unit and lower the height to it. An open top's height is measured with the roof bows in place; the plan loads it through the end door, so clear the door fields if you crane the cargo in through the roof. When a reefer or an open top is selected, the size comparison shows the same kind (plus the other trailers and trucks); with a dry container selected it never suggests a reefer or an open top.

    The list also has three 53' dry vans with the interior sizes Hyundai Translead publishes (Composite, HY-Cube, Original), followed by Hyundai Translead's ThermoTech 53' reefer (626 in long, 97.4 in wide lining to lining, 105.5 in high inside). Their pages give no door opening or payload, so those fields stay empty (no door check, no weight limit) until you enter your own. Pallet counts for these trailers are on how many pallets fit in a 53 ft trailer, and the inside sizes of other 53' vans and reefers on 53 ft trailer dimensions. At the end come four Mercedes-Benz Sprinter cargo van bodies; their width is the space between the rear wheel arches, as Mercedes-Benz prints it (see cargo van dimensions).

    At the end of the list are twelve rental box trucks: U-Haul's 10', 15', 20' and 26', Penske's 12', 16', 22' and 26' and Budget's 12', 16', 16' with lift gate and 26' trucks, with the inside size and max load (payload) each fleet prints. U-Haul and Budget also print the rear door opening, so their trucks fill in the door width and height and every box is checked against them (except Budget's 16', whose printed door is wider than its printed inside, so its door fields stay empty); Penske prints none, so those fields stay empty. Penske gives its sizes as “up to” figures and all three fleets call their measurements approximate: measure your truck if the plan is tight. All sizes, and how many pallets and cartons fit in each, are on box truck dimensions.

    Getting a plan that works on the dock

    • Measure cartons as packed, at the widest point. Bulging cartons are often a few millimetres bigger than the printed size, and a few millimetres per carton add up over 30 rows.
    • Leave room for dunnage, airbags and the door: a plan that uses every millimetre is a plan that will not close.
    • The payload limit is the most the container may carry, but road weight limits where the container travels can be lower. Check with your trucker for the inland leg. Before the container goes on a ship, the shipper must declare its verified gross mass (cargo plus the container's tare): see shipping container weight for tare weights and the two VGM methods.
    • Not enough cargo for a full container? Less-than-truckload carriers look at how dense the freight is: the freight density calculator gives pounds per cubic foot and kg/m³ for your pallets or cartons, and the cubic feet calculator totals the shipment's volume in ft³ and m³.
    • Put heavy cartons low and spread the weight along the floor. Open Weight distribution and axle loads under the result: it shows the cargo's centre of gravity along the length, across and in height, and checks it against the CTU Code, annex 7: a container lifted level should have the cargo's centre of gravity within 5% of its length from the middle in general, and up to 10% only in particular circumstances (section 3.1.4); crosswise close to the middle and below half the inside height (section 1.11). For a truck or trailer, enter the kingpin (or front axle) and rear axle positions to split the cargo weight between them; compare the totals with your vehicle's ratings and the road limits, in the US 20,000 lb on a single axle, 34,000 lb on a tandem and 80,000 lb gross on the Interstate System (23 CFR 658.17). How to use it.
    • The IMO/ILO/UNECE Code of Practice for Packing of Cargo Transport Units (CTU Code) is the international guidance on packing, securing and weight distribution in containers. To fill a gap with an air bag, the dunnage bag calculator applies its formulas to your cargo and bag. To turn the container count into a cost with the rates from your own quote, use the container shipping cost calculator. To block the load with timber battens across the container, the cargo securing calculator gives the force needed and the number of battens.

    Related