Measure the package dimensions (length, width, height) in inches and round each fractional inch up to the next whole inch per current UPS and FedEx rounding rules (effective August 2025)
Compute dimensional weight: (length × width × height) / DIM_DIVISOR, where DIM_DIVISOR is 139 for UPS and FedEx domestic, 166 for USPS Priority Mail
Round the result up to the next whole pound to get the DIM weight
Compare DIM weight to actual scale weight; the billable weight is the greater of the two values
Pass the billable weight (not actual weight) to the carrier rate API to receive an accurate rate quote
Log actual vs. DIM weight for each shipment to identify packaging optimization opportunities that reduce costs
Known gotchas
As of August 18, 2025, both UPS and FedEx round each fractional inch measurement up to the next whole inch before computing DIM weight — previously only the final result was rounded, so rates have increased for borderline packages
USPS does not apply dimensional weight pricing to Priority Mail Cubic or First-Class Package service; applying the wrong DIM divisor to these classes produces incorrect estimates
Carriers measure packages at induction and may re-rate shipments if scanned dimensions differ from declared dimensions by a threshold amount, resulting in billing adjustments after the fact
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp