How we calculate

Every plan is built in your browser by the same engine, checked independently before it is shown, and based on figures we can link to.

The method

Load planning — fitting boxes into a larger box — is a hard optimisation problem with no fast method that is always optimal. We use block building, a well-studied heuristic for container loading (Eley, M. (2002) “Solving container loading problems by block arrangement”, European Journal of Operational Research 141; Fanslau, T. and Bortfeldt, A. (2010) “A tree search algorithm for solving the container loading problem”, INFORMS Journal on Computing 22). The container is filled from the back wall, one block of identical boxes at a time, with a look-ahead that scores each block by how well the space left over can still be filled. Many variants are run and the plan that loads the most volume is kept.

In semi-automatic mode you set the loading steps (box type, quantity, an optional fixed position, and whether a step starts a new section). The same search runs for each step in turn, starting from the space the earlier steps left, so the steps keep your order while each one is packed as tightly as the method allows.

When you edit a plan by hand, each move, turn or new box is checked against the rules below before it is made. The free spots offered for a box are the corners next to, beside, behind and on top of the boxes already loaded (the “extreme points” of Crainic, T.G., Perboli, G. and Tadei, R. (2008) “Extreme point-based heuristics for three-dimensional bin packing”, INFORMS Journal on Computing 20) that pass every check. “Fill the rest automatically” keeps your boxes, fills the gaps among them block by block from those corner points, and loads the empty space in front of them with the block-building method.

On a pallet, the load space is the pallet's footprint plus the overhang you allow on each side, and the height limit minus the pallet's height. With one box type, the planner first plans a full pallet (as many boxes as fit, without the weight limit) and then keeps its lowest boxes, layer by layer, up to your quantity and the max load weight. Each box in such a plan stands on boxes placed before it, so it stays a valid plan, and it passes the same checks. Ti-Hi (boxes per layer × layers) is read from the layers of that full pallet, and only shown when every box stands with the same side up on a clean layer line.

Interlocked layers (the “Interlocked (stable)” stacking pattern, one box type): the planner lists layer patterns for the floor — one block of identical boxes, two and three blocks side by side, and four-block pinwheels, each block in one of the box's allowed footprints — keeps the fullest ones, centres them and takes their mirror images. A pair of layers (A, B) is usable only if every box of B is carried by A and every box of A by B, so A, B, A, B… is carried at every level. Of the usable pairs it keeps the one with the most boxes in two layers, then the one in which most boxes rest on two or more boxes of the layer below (“tied”). On a pallet the whole load is one stack of those layers. In a container the length is cut into walls of equal length; every length made of whole box lengths up to 2.5 m (or three box lengths) is tried, layers are mirrored across the width only, so each wall can be loaded as one unit from the back, and the space in front of the last full wall is filled by block building. A plan for a smaller quantity or weight keeps the lowest layers of the first walls. The column-stack plan is worked out as well, so the page can say how many boxes interlocking costs.

Whole pallets in a container are planned as boxes: the footprint of the pallet, the loaded height and the gross weight, kept “this side up”. The counts in the table on how many pallets fit in a container are computed by the engine when the site is built and checked by the same validator; the build stops if a plan fails the check. The same goes for the tables on how many pallets fit in a 53 ft trailer and 53 ft trailer dimensions, where the load space is a 53' dry van's inside length, width and height as the trailer maker prints them in inches, converted exactly to millimetres, and for box truck dimensions, where it is a rental truck's inside size as U-Haul or Penske prints it in feet and inches (U-Haul's printed door opening is checked too), and cargo van dimensions, where it is the Sprinter's cargo bed length, its width between the rear wheel arches and its interior height as Mercedes-Benz prints them, with the rear door opening checked; for the Ram ProMaster bodies on the same page it is the cargo length, the minimum cargo width and the cargo height Ram prints, with no door check because Ram prints no door opening.

The CBM calculator is plain arithmetic: each carton's length × width × height in metres, times its quantity, summed; cubic feet = cubic metres ÷ 0.028316846592 (0.3048³). The share of a container is the total divided by the container's inside length × width × height. Because cartons leave gaps, that share is an upper bound; the table of example cartons on that page sets it against counts the engine computes at build time and the validator checks.

The freight density calculator is plain arithmetic: each line's length × width × height × pieces is the cube (sizes converted to millimetres exactly, 1 in = 25.4 mm) and its weight per piece × pieces the weight (1 lb = 0.45359237 kg, exact); density = total weight ÷ total cube, in lb/ft³ (÷ 1,728 in³ per ft³) and kg/m³, which differ by 0.45359237 ÷ 0.028316846592 = 16.0185. The freight class calculator takes the same density and gives the class of the first row of NMFTA's Freight Classification Development Council Density Guidelines (©2021, linked from NMFTA's public docket files page; read twice 2026-11-07) whose minimum average density the shipment reaches. It is an estimate: the class that applies is the one in the NMFC item for the commodity.

The cubic feet calculator is plain arithmetic too: each length is converted to millimetres exactly (1 in = 25.4 mm, 1 ft = 304.8 mm), length × width × height × quantity is summed and expressed in cubic feet (÷ 304.8³ mm³), cubic meters (× 0.028316846592), cubic yards (÷ 27), litres (1 L = 0.001 m³) and US gallons (231 in³ each). Container and trailer volumes on that page are the inside length × width × height of the Hapag-Lloyd and Hyundai Translead figures in the table below.

The dimensional weight calculator follows the steps of the USPS Domestic Mail Manual as written: each side converted to inches (exactly) and rounded up to a whole inch (rounded off where the DMM says so), length × width × height (× 0.785 for a package that is not rectangular), and only above 1,728 in³ divided by 139 (166 in the commercial Priority Mail nonrectangular text) and rounded up to a whole pound; the billable weight is the greater of that and the actual weight. Integer arithmetic is used for the rounding steps so no floating-point error can move a result across a whole number. The table of box sizes on that page is computed with the same code at build time and checked against the hand formula. With your own divisor, nothing is rounded.

The loaded pallet heights on standard pallet sizes are read straight from the published figures: one high, the lower of the door height and the inside height; two high, half the inside height (no more than the door height). Trailer heights printed in inches are converted at 1 in = 25.4 mm. No forklift clearance is subtracted, because none of the sources gives one.

The gross weight incl. pallet in the pallet loading calculator is the weight of the boxes loaded plus the pallet's own weight: the weight EPAL prints for its pallets (“approx.”) is filled in with the preset, and for a pallet without a published weight (CHEP's 48 × 40 in page gives none) it is what you enter, or 0. The max load weight is compared with the boxes alone, because a safe working load is what the pallet carries. The example on pallet weight uses the same sum.

Because it is a heuristic, a plan may occasionally fit a few boxes fewer than the best possible arrangement. It will never show an arrangement that is physically impossible: the checks below make sure of that.

Checks on every plan

  • No two boxes overlap, and every box is inside the load space.
  • Each box is stowed in one of its allowed orientations (all six, “this side up”, or the positions you ticked); “this side up” boxes keep their height vertical.
  • Semi-automatic plans: each step holds only its own box type, no more than asked, in its fixed position if one was chosen, and a step that starts a new section lies wholly in front of earlier cargo.
  • In a container, each box fits through the door opening in the way it is stowed. On a pallet, no box sticks out past the pallet edge plus the overhang you allow, or above the height limit.
  • Every box stands fully on the floor or on boxes below it, and nothing stands on a box marked as not stackable. With interlocked layers and a support share below 100%, every box above the floor has at least that share of its base on boxes directly below, and its centre over one of them.
  • The total weight is within the limit you entered, and no more boxes are placed than you entered.

The engine's test suite also checks hand-calculated cases (for example, 8 cubes of 500 mm in a 1 m cube, and 660 cartons of 600 × 400 × 400 mm in a 40' high cube), 40 random cases, a fixed-position case (600 cartons when the 600 × 400 × 400 mm carton may only stand one way) 30 random semi-automatic plans, and hand-editing cases: the placement rules, pushing and free spots on small hand-checked layouts, refilling the 660-carton plan after boxes are taken out of the middle (back to 660), and 25 random plans with boxes removed and filled again. Pallet cases: 48 cartons of 400 × 300 × 250 mm on a Euro pallet with a 1,800 mm limit (8 × 6), the weight-limited 48 × 40 in case (16 × 5 + 13 = 93), partial quantities built layer by layer, and 20 random pallets. Pallets in containers: Euro pallets one high in a 20', 40' and 45' (11, 25 and 27 by hand: two lanes, crosswise and lengthwise), two high in a 40' (50), 48 × 40 in pallets in a 40' high cube (20 one high, 40 two high at 50 in, but 20 in a 40' Standard where two would not fit under the roof), half pallets in a 20' (25), a loaded pallet taller than the door (0), and a payload-limited case (23 pallets of 1,200 kg). Pallets in a 53' trailer (630 × 101.5 × 110 in inside): 48 × 40 in pallets 30 one high (two across with the 48 in side across, 15 rows of 40 in), 26 when the 48 in side must run along the trailer, 60 two high at 50 in, and Euro pallets 40 (two crosswise, 20 rows of 800 mm), also in the 98.5 in wide model. Interlocked layers: 400 × 300 × 250 mm cartons on a Euro pallet, 42 at full support (7 + 7: a row of three cartons turned lengthwise beside a row of four, mirrored every other layer) and 45 at 80% (8 + 7, every carton with 87.5% of its base on cartons below), against 48 in column stacks; 300 × 200 × 200 mm cartons, 80 either way; 660 cartons of 600 × 400 × 400 mm in a 40' high cube in 10 walls of 1,200 mm (11 per layer); quantity and weight limits; the checker refusing a box with too little support, a box whose centre is over a gap, and any bridging under full support; and 40 random interlocked plans.

Units

Everything is calculated in millimetres and kilograms. Inches and pounds use the exact definitions 1 in = 25.4 mm and 1 lb = 0.45359237 kg; volumes use 1 ft = 0.3048 m (1 ft³ = 0.028316846592 m³, 1 in³ = 16.387064 cm³).

Sources

FigureSourceChecked
20' Standard: inside size, door, tare, payload, grossHapag-Lloyd2026-11-29
40' Standard: inside size, door, tare, payload, grossHapag-Lloyd2026-11-29
40' High Cube: inside size, door, tare, payload, grossHapag-Lloyd2026-11-29
45' High Cube: inside size, door, tare, payload, grossHapag-Lloyd2026-11-29
20' Reefer: inside size, door, tare, payload, gross, capacityHapag-Lloyd2026-11-29
40' Reefer High Cube: inside size, door, tare, payload, gross, capacityHapag-Lloyd2026-11-29
20' Open Top: inside size, door, roof opening, tare, payload, gross, capacityHapag-Lloyd2026-11-29
40' Open Top: inside size, door, roof opening, tare, payload, gross, capacityHapag-Lloyd2026-11-29
20' Flatrack: length min., width at floor and min., height, height bottom, tare, payload, grossHapag-Lloyd2026-11-22
40' Flatrack High Cube / 40' Platform: length min., width at floor and min., height, height bottom, tare, payload, grossHapag-Lloyd2026-11-22
Freight class by density: minimum average density (lb/ft³) for each class from 50 (50 lb/ft³ and over) to 500 (less than 1 lb/ft³)NMFTA, FCDC Density Guidelines2026-11-07
Verified gross mass of a packed container (SOLAS VI/2): shipper's duty, condition for loading, Method 1 and Method 2International Maritime Organization (IMO)2026-10-24
Reefer inside height and load-line (maximum stowage) height; open top door headerHapag-Lloyd container specification booklet2026-11-29
EPAL Euro pallet (EPAL 1): footprint, height, weight, safe working load, stacking limitEPAL2026-11-29
EPAL 2 pallet: footprint, height, weight, safe working load, stacking limitEPAL2026-11-29
EPAL 3 pallet: footprint, height, weight, safe working load, stacking limitEPAL2026-11-29
EPAL 6 half pallet: footprint, height, weight, safe working load, stacking limitEPAL2026-11-29
EPAL 7 half pallet: footprint, height, weight, safe working load, stacking limitEPAL2026-11-29
CHEP block pallet, North America (48 × 40 in): footprint, height, weight, safe working load, stacking limit, empty pallets per trailer stackCHEP2026-11-29
53' dry van, Hyundai Translead Composite: interior length, width, height; interior volume; GVWRHyundai Translead2026-11-29
53' dry van, Hyundai Translead HY-Cube: interior length, width, height; interior volume; GVWRHyundai Translead2026-11-29
53' dry van, Hyundai Translead Original: interior length, width, height; interior volume; GVWRHyundai Translead2026-11-29
53' domestic container, Union Pacific EMP / UMAX: inside length, width, height; door opening; gross weight rating; tare (aluminum average, steel); fork lift truck rating; cubic capacityUnion Pacific Railroad2026-11-29
AKE LD3 Container: base size, height, max gross weight, tare, internal volume, aircraftVietnam Airlines Cargo2026-11-29
AKH LD3-45 Container: base size, height, max gross weight, tare, internal volume, aircraftVietnam Airlines Cargo2026-11-29
PAG Pallet PAG: base size, max gross weight, tare, usable volume, aircraftVietnam Airlines Cargo2026-11-29
PMC Pallet PMC: base size, max gross weight, tare, usable volume, aircraftVietnam Airlines Cargo2026-11-29
PKC Pallet PKC: base size, max gross weight, tare, usable volume, aircraftVietnam Airlines Cargo2026-11-29
AMP AMP Container: base size, height, max gross weight, tare, internal volume, aircraftVietnam Airlines Cargo2026-11-29
BNSF 50 ft boxcar (286K GRL), BNSF 728400–728999: inside length, width, height; door opening; floor height; volume; gross rail load, light weight, load limit; floor ratingBNSF Railway car diagram, page I135-12026-11-29
BNSF 60 ft boxcar (286K GRL), BNSF 761000–761099: inside length, width, height; door opening; floor height; volume; gross rail load, light weight, load limit; floor ratingBNSF Railway car diagram, page I1392026-11-29
53' dry van, Hyundai Translead Composite XT: interior length, width, height; interior volume; GVWR; standard weightHyundai Translead2026-11-29
53' refrigerated van (reefer), Hyundai Translead ThermoTech: interior length, width, height; interior volume; GVWR; standard weightHyundai Translead2026-11-29
53' dry van, Utility Trailer 53' dry van (specifications page): inside width, inside height, overall size, GVWR, payload capacityUtility Trailer2026-11-29
53' refrigerated van (reefer), Utility Trailer 53' reefer (specifications page): inside width, inside height, overall size, GVWR, payload capacityUtility Trailer2026-11-29
53' dry van, Stoughton Trailers Aluminum Sheet & Post (AVW-535T-S-C-AR): inside width, inside height, overall size, door openingStoughton Trailers2026-11-29
53' dry van, Stoughton Trailers Extra Wide (AVXW-535T-S-C-AR): inside width, inside height, overall size, door openingStoughton Trailers2026-11-29
53' dry van, Stoughton Trailers Tough Plate (ZTPVW-535T-S-C-AR): inside width, inside height, overall size, door openingStoughton Trailers2026-11-29
U-Haul 10' truck (rental box truck): inside length, width, height; Mom's Attic; deck height; door opening; max load; gross vehicle weight; volumeU-Haul2026-11-29
U-Haul 15' truck (rental box truck): inside length, width, height; Mom's Attic; deck height; door opening; max load; gross vehicle weight; volumeU-Haul2026-11-29
U-Haul 20' truck (rental box truck): inside length, width, height; Mom's Attic; deck height; door opening; max load; gross vehicle weight; volumeU-Haul2026-11-29
U-Haul 26' truck (rental box truck): inside length, width, height; Mom's Attic; deck height; door opening; max load; gross vehicle weight; volumeU-Haul2026-11-29
Penske 12' truck (rental box truck): “up to” interior length, width, height; floor space; loading space; load capacityPenske2026-11-29
Penske 16' truck (rental box truck): “up to” interior length, width, height; floor space; loading space; load capacityPenske2026-11-29
Penske 22' truck (rental box truck): “up to” interior length, width, height; floor space; loading space; load capacityPenske2026-11-29
Penske 26' truck (rental box truck): “up to” interior length, width, height; floor space; loading space; load capacityPenske2026-11-29
Budget 12' truck (rental box truck): interior length, width, height; rear door width and height; payload weight; gross vehicle weight; clearance; ramp or lift gate; cubic feetBudget2026-11-20
Budget 16' truck (rental box truck): interior length, width, height; rear door width and height; payload weight; gross vehicle weight; clearance; ramp or lift gate; cubic feetBudget2026-11-20
Budget 16' truck with lift gate (rental box truck): interior length, width, height; rear door width and height; payload weight; gross vehicle weight; clearance; ramp or lift gate; cubic feetBudget2026-11-20
Budget 26' truck (rental box truck): interior length, width, height; rear door width and height; payload weight; gross vehicle weight; clearance; ramp or lift gate; cubic feetBudget2026-11-20
Ram ProMaster cargo van (2026), 118″ wheelbase, low roof: cargo length, minimum and maximum cargo width, cargo height, interior cargo volume, payload and GVWR (1500/2500/3500)Ram2026-11-04
Ram ProMaster cargo van (2026), 136″ wheelbase, low roof: cargo length, minimum and maximum cargo width, cargo height, interior cargo volume, payload and GVWR (1500/2500/3500)Ram2026-11-04
Ram ProMaster cargo van (2026), 136″ wheelbase, high roof: cargo length, minimum and maximum cargo width, cargo height, interior cargo volume, payload and GVWR (1500/2500/3500)Ram2026-11-04
Ram ProMaster cargo van (2026), 159″ wheelbase, high roof: cargo length, minimum and maximum cargo width, cargo height, interior cargo volume, payload and GVWR (1500/2500/3500)Ram2026-11-04
Ram ProMaster cargo van (2026), 159″ wheelbase EXT, high roof: cargo length, minimum and maximum cargo width, cargo height, interior cargo volume, payload and GVWR (1500/2500/3500)Ram2026-11-04
Ram ProMaster City cargo van (2027 body builder document): cargo length at floor and beltline, maximum and wheelhouse width, maximum height and height at the rear axle, rear door loading width and opening height, side door opening, lift-in height, wheelbase, cargo volumeStellantis (Ram)2026-11-29
Chevrolet Express 2500/3500 cargo van, 135 in and 155 in wheelbase (2023 specification guide, gas engines): load floor length to the front seat and to the engine cover, width between the wheelhousings, cargo area height, rear door opening width and height, side door opening width, load floor height, cargo volume, GVWR and payload by engine and seriesGM (GM Upfitter)2026-11-29
Mercedes-Benz Sprinter 2500 cargo van, 144″ wheelbase, standard roof: cargo bed length, width at floor and between the wheel arches, interior height, rear door opening, cargo volume, payload and GVWR (2500 Standard Output)Mercedes-Benz Vans2026-11-29
Mercedes-Benz Sprinter 2500 cargo van, 144″ wheelbase, high roof: cargo bed length, width at floor and between the wheel arches, interior height, rear door opening, cargo volume, payload and GVWR (2500 Standard Output)Mercedes-Benz Vans2026-11-29
Mercedes-Benz Sprinter 2500 cargo van, 170″ wheelbase, high roof: cargo bed length, width at floor and between the wheel arches, interior height, rear door opening, cargo volume, payload and GVWR (2500 Standard Output)Mercedes-Benz Vans2026-11-29
Mercedes-Benz Sprinter 2500 cargo van, 170″ extended wheelbase, high roof: cargo bed length, width at floor and between the wheel arches, interior height, rear door opening, cargo volume, payload and GVWR (2500 Standard Output)Mercedes-Benz Vans2026-11-29
US limits on semitrailer length (48 ft minimum states must allow) and vehicle width (102 in / 2.6 m)23 CFR 658.13(b)(1); 23 CFR 658.15(a) (eCFR)2026-11-29
USPS dimensional weight rule (Priority Mail (retail)): 1,728 in³ threshold, divisor, 0.785 factor, rounding, 70-pound priceUSPS DMM 123 1.32026-11-29
USPS dimensional weight rule (USPS Ground Advantage — Retail): 1,728 in³ threshold, divisor, 0.785 factor, rounding, 70-pound priceUSPS DMM 133 1.42026-11-29
USPS dimensional weight rule (Parcel Select Destination Entry): 1,728 in³ threshold, divisor, 0.785 factor, rounding, 70-pound priceUSPS DMM 253 1.22026-11-29
USPS dimensional weight rule (Priority Mail (commercial)): 1,728 in³ threshold, divisor, 0.785 factor, rounding, 70-pound priceUSPS DMM 223 1.42026-11-29
USPS definitions of round up, round off, round downUSPS DMM 604.7.1.32026-11-29
USPS weight increments (Priority Mail retail; Ground Advantage retail) and the 70-pound Priority Mail limitUSPS DMM 123 1.1, 2.1; DMM 133 1.22026-11-29
Definition of GVWR (gross vehicle weight rating)49 CFR 571.3 (eCFR)2026-10-21
Air cargo volumetric weight: L × W × H in cm ÷ 6,000 ("an industry standard, set by the International Air Transport Association (IATA)"; some carriers use 5,000); chargeable weight = the greater of actual and volumetricMaersk, "Air cargo chargeable weight"2026-10-26
Sea freight LCL weight or measurement (W/M): "W" = 1,000 kilos, "M" = 1 cubic meter, charged on whichever yields the greater revenue; sizes in whole centimetres (under 0.5 cm ignored, 0.5 cm and over rounded up); cube of one package in m³ to two decimals, × the number of like packages, total rounded to two decimalsMainfreight, Inc. dba Mainline, FMC Rules Tariff MFGT-01.21.2026, Rules 2A and 2H2026-11-14
Blocking with transverse battens: F = n · w² · h ÷ (28 · L) kN and the Code's worked example (annex 7, appendix 4, section 1); friction force µ · cz · m · g with static friction for blocking (annex 7, 2.2.2); bracing the ends against the frame (2.3.4)CTU Code, IMO MSC.1/Circ.1497 (PDF)2026-10-26
Dunnage bag check: force from the cargo (sliding and tipping), contact area, permissible force and safety factors (annex 7, appendix 4, section 4); acceleration coefficients for road, rail and sea areas A–C (chapter 5); friction factors (annex 7, appendix 2)CTU Code, IMO MSC.1/Circ.1497 (PDF)2026-10-24
Flatbed trailers: Hyundai Translead Latitude length 32′–53′, width 102″, fifth wheel 47″, rear deck height up to 54 5/16″, concentrated load ratings; Utility Trailer flatbed 48′ 0″ × 102″, GVWR 73,000 lb, mainbeam 80,000 lb evenly distributed, straight or 21″ drop deck (11′ front deck, 40¼″ rear deck height)Hyundai Translead, Utility Trailer2026-10-25
Centre of gravity of the cargo: formula d = Σ(m·d) / Σm (annex 7, appendix 4, section 3); limits: lengthwise "should not exceed 5% in general", "up to 10% could be accepted" for containers lifted level (annex 7, 3.1.4), crosswise close to half the width and below half the height (annex 7, 1.11)CTU Code, IMO MSC.1/Circ.1497 (PDF)2026-10-25
US federal weight limits on the Interstate System: 20,000 lb single axle, 34,000 lb tandem axles, 80,000 lb gross (bridge formula may set lower)23 CFR 658.17 (eCFR)2026-10-25
Packing, securing and weight distribution guidanceIMO/ILO/UNECE CTU Code2026-10-18

Found an error? Tell us — we check and correct the figures regularly.