← Back to blog
Cost optimization9 min readMarch 31, 2026

E-Commerce Shipping Margin Calculator: Are You Losing Money?

Most merchants have never calculated their shipping margin. This step-by-step guide walks through the formula, shows what good looks like, and explains why the number matters more than revenue.

By PackOS Team

Shipping margin is the single most important metric most e-commerce merchants have never calculated. It's the difference between what your customer pays for shipping at checkout and what you actually pay for the carrier label. If the number is positive, shipping is contributing to your bottom line. If it's negative — and for most merchants, it is — shipping is quietly eroding your profit on every order. This guide walks through the formula, shows what good looks like, and explains why the number matters more than your total shipping revenue.

The shipping margin formula

Shipping margin per order = (what the customer paid for shipping) minus (carrier label cost + packaging material cost + handling labor cost).

Most merchants only track the first two numbers. Packaging and handling are often ignored because they feel small per-order — but a $0.40 box, $0.15 of tape and fill, and 3 minutes of labor at $18/hour adds $1.45 to every shipment. When the label costs $8.50 and the customer paid $8.99, your apparent margin of $0.49 is actually negative $0.96.

The fix: calculate shipping margin with all costs included, per order, and track the trend monthly. PackOS does this automatically for the label component — the packaging and labor costs are configurable as a fixed handling fee in your settings.

What good shipping margin looks like

A healthy shipping margin depends on your business model, but most profitable e-commerce stores target a positive shipping margin after all costs. High-margin products (cosmetics, supplements, apparel) can absorb a slightly negative shipping margin because the product margin compensates. Low-margin products (commodities, heavy goods, bulky items) need shipping to break even or better — a negative shipping margin on a 15% product margin product kills profitability fast.

There is no benchmark worth quoting here, because the right number depends on your product margin, your zones and your box mix. What matters is that you know your own figure and watch which way it moves. A blended shipping margin below zero means shipping is being paid for out of product margin; whether that is a deliberate acquisition cost or an invisible leak is a judgement you can only make once the number is on a screen.

Why most merchants get the calculation wrong

The most common mistake is using average shipping cost instead of per-order shipping cost. Your average label might cost $9.00, and your average shipping charge might be $9.50, so you think margin is $0.50. But averages hide the variance: you're probably making $3.00 on lightweight orders and losing $4.00 on heavy ones. The heavy orders are subsidized by the light ones — and if your product mix shifts toward heavier items, your margin collapses without warning.

The second mistake is ignoring dimensional weight. A merchant shipping pillows in flat-rate boxes might think their shipping cost is $15.95 (the flat-rate price), but the same pillow shipped by weight in a right-sized box might cost $9.00. The $6.95 difference per order is invisible unless you're calculating margin per shipment with accurate box dimensions.

How to track shipping margin automatically

PackOS calculates shipping margin on every label purchase. When a customer checks out with PackOS Checkout, the checkout rate is logged. When the label is bought via PackOS Labels, the actual cost is recorded. The margin — checkout rate minus label cost — is calculated automatically and visible on your dashboard.

You see it per order (did this specific shipment make or lose money?), per week (is margin trending up or down?), and per month (what's my total shipping P&L?). No spreadsheets, no manual exports, no guessing. This is the metric that turns shipping from a cost center into a managed line item.

Carrier Comparison8 min read

USPS vs UPS vs FedEx for Shopify Merchants in 2025

A practical comparison of the three major carriers for Shopify stores — pricing models, delivery speeds, dimensional weight rules, and which carrier wins for common shipment profiles.

February 12, 2025

Ready to see your shipping margin?

PackOS Checkout quotes the real rate at your Shopify checkout. PackOS Labels buys discounted labels for any store and shows the margin on each one. Start with either.

  • 14-day free trial on every Checkout plan
  • Labels is free, always