How do I see margin erosion before it hits my P&L?
Margin erosion shows up in four leading indicators weeks before month-end. Track per-order contribution, discount creep, shipping drift, and returns to catch it early.
Last updated: June 27, 2026
You see margin erosion before it hits your P&L by tracking four leading indicators that move first: per-order contribution margin, discount rate, shipping cost per order, and return rate. These shift order by order, weeks before a month-end report rolls them up. Watch the per-order trend, not the monthly total, and you get an early warning.
The P&L is a lagging indicator. By the time a thinner margin shows up in a closed month, the orders that caused it shipped weeks ago and the cash already left. Margin erosion is the slow drift where each order earns a little less than the last while revenue looks flat or even up. The fix is to stop measuring margin once a month and start measuring contribution on every order, so cost creep surfaces while you can still act on it.
What are the leading indicators of margin erosion?
The leading indicators of margin erosion are four per-order metrics that move before the P&L: contribution margin per order, discount rate, shipping cost per order, and return rate. Each one is measurable on a single order the day it ships, which is why they give you an early warning the monthly close cannot.
Here is what each one tells you and why it leads the report.
| Leading indicator | What it measures | Why it moves first |
|---|---|---|
| Contribution margin per order | Dollars left after variable cost on one order | Rolls up every other cost change into a single trend line |
| Discount rate | Average discount as a percent of price | Promo stacking and codes creep up daily, not monthly |
| Shipping cost per order | Carrier and packaging cost per shipment | Surcharges, zone shifts, and weight drift hit per shipment |
| Return rate | Share of orders refunded or returned | A bad batch or sizing issue shows up in days |
The contribution margin trend is the master signal. The other three are the causes. When contribution per order slides and you cannot explain it from price, the discount, shipping, and return lines tell you which cost crept.
How do I catch margin erosion early on a real product?
You catch margin erosion early by computing contribution margin on each order and watching the trend across weeks, not waiting for the monthly roll-up. Below is a worked example on a single SKU where a small per-order slide stays invisible on revenue and then lands as a five-figure P&L hit a month later.
Step 1: Establish the baseline contribution per order
Take a matte liquid lipstick that sells for $22. In Month 0 the variable costs per order look like this:
- Price: $22.00
- Discount at 5 percent: $1.10, so net price is $20.90
- COGS: $6.60
- Payment fee at 2.9 percent plus $0.30: $0.91
- Shipping per order: $4.10
- Return cost (4 percent return rate applied to COGS plus shipping of $10.70): $0.43
Contribution per order is 20.90 minus 6.60 minus 0.91 minus 4.10 minus 0.43, which leaves $8.86 per order.
Step 2: Track the four indicators each week
Over the next two months, nothing dramatic happens. No price change, no obvious crisis. But three of the four cost levers drift:
- Discount rate climbs from 5 percent to 8 percent to 11 percent as promo codes stack and a sitewide sale lingers.
- Shipping cost per order rises from $4.10 to $4.45 to $4.80 as a carrier surcharge lands and average package weight creeps.
- Return rate ticks from 4 percent to 5 percent to 6 percent after a slightly off shade batch ships.
Step 3: Recompute contribution and read the trend
Hold COGS at $6.60 and the payment fee at $0.91 to isolate the three moving levers, then recompute contribution per order each month.
| Month | Discount rate | Shipping per order | Return rate | Contribution per order |
|---|---|---|---|---|
| Month 0 | 5% | $4.10 | 4% | $8.86 |
| Month 1 | 8% | $4.45 | 5% | $7.74 |
| Month 2 | 11% | $4.80 | 6% | $6.63 |
Contribution per order slides from $8.86 to $6.63. The drop is $2.23 per order, a 25 percent fall in unit contribution, and not one cent of it shows up as a line item anyone flagged. Revenue per order barely moved because the discount came off list price, so a dashboard watching topline sales would show this SKU as healthy.
Step 4: Translate the slide into the P&L hit you avoided
Put volume on it. At 9,000 orders a month for this lipstick, Month 0 contribution is 8.86 times 9,000, which is $79,740. Month 2 contribution is 6.63 times 9,000, which is $59,670. The gap is $20,070 in a single month on one SKU, and that gap is exactly what lands in the closed-month P&L four weeks after the drift started.
The three-point slide was visible in week two of Month 1 in the per-order trend. The $20,070 hole was visible in the P&L in Month 2. That month of lead time is the entire point of watching leading indicators.
What does it cost to skip early detection?
Skipping early detection costs you the full lag between when margin erosion starts and when the P&L reveals it, which in the lipstick example is one month and roughly $20,070 on a single SKU. Multiply that across a catalog and the drift you could have caught in week two becomes a quarter you have to explain.
The deeper cost is decisions made on stale numbers. If you reorder inventory, set next month's promo budget, or quote a wholesale price using last month's margin, you are pricing off a figure that has already eroded. Cost creep compounds quietly because each individual change looks too small to chase. A 3 point discount bump here, a 70 cent shipping increase there, a 2 point return uptick. None of them trips an alarm on its own. The contribution trend is the only place they add up in time to matter.
How to find your own early-warning number
Compute contribution margin per order on your top five SKUs for the last eight weeks, then plot it week by week. You do not need a perfect cost model to start. You need net price, COGS, payment fees, shipping per order, and a return reserve, and you need it weekly instead of monthly.
- Pull every order for one SKU over the last eight weeks.
- For each order, subtract COGS, the actual discount taken, the payment fee, the shipping cost, and an amortized return cost from the net price.
- Average the result per week and chart the eight points.
- If the line trends down, break the slide into the discount, shipping, and return components to find the cause.
If the weekly line is flat, your margin is stable and you can spend your attention elsewhere. If it slopes down, you found erosion weeks before the close would have. For a deeper unit-economics walkthrough, see how to calculate your true net margin, and to isolate the discount lever specifically, see whether discounting is quietly killing your profit.
Where Agentis fits
Computing this by hand on five SKUs is a useful start. Doing it on every order across a full catalog, in real time, is where it stops being a spreadsheet job. Agentis is a real-time profit governance platform for high-volume Shopify Plus and ShopLine merchants. It monitors margin at the order and SKU level and flags or blocks unprofitable activity before it reaches the P&L. Profit governance is the practice of monitoring and enforcing margin rules in real time across every order, SKU, and channel, so unprofitable activity gets caught and corrected as it happens instead of discovered in a month-end report. That turns the four leading indicators above into live alerts instead of a monthly autopsy. The data behind this contribution math also tells you which specific orders are unprofitable right now.
Frequently asked questions
What is the difference between margin erosion and a normal cost increase?
Margin erosion is a gradual slide in contribution per order caused by several small cost changes drifting at once, while a normal cost increase is a single visible jump you can point to. Erosion is dangerous precisely because no single line item looks alarming, so it hides until the monthly P&L sums it up.
Why does my revenue look fine while my margin erodes?
Revenue looks fine because discounting comes off list price and cost creep happens below the revenue line, so topline sales can hold steady or rise while contribution per order falls. In the lipstick example revenue per order barely moved, yet contribution dropped 25 percent, which is why a revenue dashboard misses erosion entirely. See revenue versus net margin on Shopify for why the two diverge.
How often should I check the leading indicators?
Check contribution margin per order and its three cost drivers weekly at a minimum, and ideally per order in real time. Monthly is too slow because a full close cycle of lag is exactly the window where erosion does its damage, as the $20,070 one-month gap on a single SKU shows.
Can I track this in Shopify alone?
Shopify reports revenue and basic profit, but it does not compute true contribution per order with your real COGS, payment fees, shipping cost, and return reserve baked in. You need to join those costs to each order yourself in a spreadsheet or a tool built for it, which is what makes per-order contribution the metric to own.
What is the single most important number to watch?
Contribution margin per order is the single most important number because it rolls every other cost change into one trend line. When that line slopes down, you have erosion, and the discount, shipping, and return components tell you which cost to chase first.
Start today by pulling eight weeks of orders for your highest-volume SKU and charting weekly contribution per order. The slope of that line is your early warning.