How to calculate dimensional weight for UPS and FedEx shipments in JavaScript
Carriers bill shipments at the greater of actual weight or dimensional weight, which depends on box size, a common cause of mismatches between quotes and invoices. The article gives a formula of length times width times height divided by a divisor, typically 139 for domestic UPS and FedEx daily rates, with USPS using 166 for larger packages. It provides a JavaScript function that rounds dimensions to whole inches, computes the billable weight, and flags when the box is billed on dimensional weight. The author stresses rounding order, storing the actual carton size rather than product dimensions, and keeping divisors configurable per carrier and account. A monthly report by SKU and box combination is recommended to find cheap shipping savings.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in