Box Fit Calculation
Determines how many products fit into one or more containers based on product and box dimensions, including rotation checks.
About The Product
A practical carton packing planner for teams that need fast, reliable answers about how many units fit into a box while staying within dimension and payload limits.
Determines how many products fit into one or more containers based on product and box dimensions, including rotation checks.
Respects the usable payload of a box by subtracting the empty box weight from the maximum allowed packed weight.
Returns packed units, used dimensions, per-box summaries and CSV export data for warehouse, fulfillment or packaging teams.
All container and product dimensions are interpreted as centimeters (cm). If your source data is in millimeters, it must be converted before sending it to the API.
All weights are interpreted as kilograms (kg). For each container, the usable payload is calculated as MaxWeight - Weight.
The current API limit is 5 m3 total product volume per request. This check happens before packing starts, so very large containers do not override it.
Example: a product of 150 x 100 x 100 is interpreted as 150 cm x 100 cm x 100 cm, which equals 1.5 m3 for a single unit. If you intended millimeters, you must send 15 x 10 x 10 instead.
Useful for deciding which carton to pick and how to split goods over multiple boxes when weight limits matter.
Helps standardize parcel planning and makes shipping decisions more predictable for repeated packing flows.
The API can be integrated into WMS, ERP, order management or shipping workflows that need automated packing suggestions.
Packing decisions are often made under time pressure, while still needing to respect carton dimensions, product rotation and shipping weight rules. Erik's Packing Machine gives teams a faster way to estimate packing outcomes and export usable results, while still keeping the model simple enough to integrate into real operational software.
The current engine uses the classic EB-AFIT heuristic. It works well for fast carton-packing advice in warehousing, fulfillment, shipping estimation and operational software flows where a strong practical answer is more important than a mathematically perfect one.
EB-AFIT does not guarantee the globally optimal packing result. It can make solid decisions quickly, but difficult edge cases may still have a better arrangement that this heuristic does not find.
It becomes less suitable when packing cost is highly sensitive, when many extra constraints apply, when carton choice must be proven optimal, or when packing quality matters more than execution speed.
If a later version needs stronger optimization quality, a more advanced approach such as hybrid search, constraint programming or MIP/CP-SAT based optimization would be a better fit than plain EB-AFIT.
Erik's Packing Machine provides technical packing estimates based on user-supplied dimensions, quantities and weight values. It is not a legal, regulatory, shipping or safety certification system.
Operational planning, carton selection support, fulfillment estimation, warehouse decision support and API-driven packing suggestions.
Legal compliance, carrier approval, packaging certification, dangerous goods validation, structural package safety or any claim that a packing result is guaranteed optimal or risk-free.
Users remain responsible for validating actual packaging suitability, shipment compliance, material strength, stacking safety, dimensional-weight rules and final operational decisions.