Home / Articles / How to calculate shipping cost

How to Calculate Shipping Cost

Three inputs decide almost every shipping invoice: how much the box weighs (or how much space it takes up), how far it travels, and which carrier's rate table you land on.

Breaking down the cost formula

Every major carrier prices a shipment as billable weight multiplied by the rate for the applicable zone, and billable weight is just whichever is bigger: the scale weight or the dimensional weight. Zones come from the distance between origin and destination ZIP codes, and higher zones cost more. Take a 12x10x8 box: its dimensional weight is 960 cubic inches divided by 139, or 6.9 lbs, so a 4-lb item packed inside it still bills at 7 lbs. The math is not hard. It just rewards actually doing it before you print a label.

The five-step math

  1. Weigh the packaged item. Round up to the next whole pound (or half-pound for some USPS classes).
  2. Work out dimensional weight. Length times width times height in inches, divided by the DIM divisor. UPS and FedEx use 139; USPS uses 166 today, moving to 139 on July 12, 2026. A 12x10x8 box comes to 960 cubic inches, or 6.9 lbs at 139.
  3. Keep the larger number. Scale weight of 4 lbs against a DIM weight of 6.9 lbs means you pay for 7 lbs, not 4.
  4. Look up the zone. Enter both ZIP codes on the carrier's own zone chart or site.
  5. Apply the rate. Match the weight and zone to the carrier's published or contracted rate table.
DIM divisorApplies toEffective
139UPS and FedEx domestic groundCurrent
166USPS Ground Advantage / Priority MailUntil July 12, 2026
139USPS Ground Advantage / Priority MailFrom July 12, 2026

Where the three carriers diverge

USPS, UPS, and FedEx run different base rates, zone maps, and DIM divisors, which is why the same box can price three different ways. USPS Priority Mail flat-rate boxes skip weight entirely as long as the box closes. UPS and FedEx Ground tend to hold their own on heavier packages going short distances. USPS usually comes out cheapest for light packages regardless of zone; the exact modeled numbers are on the 2026 rate comparison reference, and current zone definitions live on USPS's own rate page.

Things to know before you ship

Published rates are base rates, not the final bill. Most carriers layer on residential delivery surcharges, fuel surcharges that move weekly, and extra handling fees for oversized packages. A residential ground delivery often lands 15 to 30 percent above the quoted base rate once those add-ons hit. That gap between the number you calculated and the number on the invoice is where a shipping budget quietly leaks.

Test your own package

Enter weight and dimensions for a side-by-side modeled estimate from USPS, UPS, and FedEx.

Good to know

FAQs

How do you calculate shipping costs?

Shipping cost = billable weight x rate per pound for the shipping zone. Billable weight is the higher of actual weight or dimensional weight (L x W x H / DIM divisor). Zone is based on origin-to-destination distance. Add any carrier surcharges for residential delivery, fuel, and oversized handling.

How much does it cost to ship a package?

It depends on the carrier, weight, size, destination, and speed. Use the rate estimator to compare all three carriers for your specific package; see modeled examples on the 2026 cost comparison reference.

How much does it cost to ship a box?

A standard box under 1 lb sent USPS First Class can cost $4 to $6. Heavier boxes (5 to 10 lbs) via USPS Priority Mail typically run $12 to $25 depending on zone. Dimensional weight can push costs higher for light but bulky boxes.

What is the fastest way to test a few scenarios?

Open the rate estimator, change the weight or ZIP codes, and read the result. It writes your inputs into its own address bar as you go, so a scenario worth keeping is also a scenario worth bookmarking.

Related reading