Gross Margin Components

Metricuno
May 22, 2026
6 min read
Quick answer

A line-by-line guide to what belongs inside your gross margin number — and which costs quietly sit below it and distort your real per-order profit.

Definition
Profitability

Gross Margin Components

The specific cost lines that belong inside an ecommerce gross margin — landed COGS, payment fees, and merchant-borne shipping — versus the operating costs that sit below it.

Gross margin components are the cost categories you subtract from net revenue to arrive at gross profit. For an online store the meaningful set is landed cost of goods sold (product + inbound freight + duties + inspection), payment processing fees, and any shipping or fulfillment cost the merchant absorbs rather than recovers from the customer.

What you choose to include — and what you push down into operating expenses or contribution margin — determines whether the percentage you report is a decision-useful number or a vanity figure. Two stores selling the same SKU at the same price can report gross margins 15 points apart simply because one bakes 3PL pick-and-pack into COGS while the other classifies it as overhead.

Also known as
gross profit components
gross margin breakdown
GM components

Most Shopify stores inherit their gross margin formula from a generic accounting template that was designed for wholesale businesses. The result: returns get ignored, payment fees disappear into a bank-reconciliation line, and shipping subsidy hides inside marketing. The margin number on the dashboard then drifts five to ten points away from what's actually landing in the bank account per order.

The fix is mechanical: agree on which line items are variable with each unit sold (those belong in gross margin or contribution margin), and which are fixed overhead (those sit below the line). The rest of this page walks the four buckets you need to get right, and shows where the typical apparel or beauty brand loses margin without realising it.

What belongs inside gross margin

Start with landed COGS — the all-in cost to get one unit ready to ship from your warehouse. For an apparel brand that's the fabric and manufacturing invoice, ocean or air freight from the factory, import duties, and any inbound inspection or rework. If you only count the supplier invoice you're typically understating COGS by 18-30%, which inflates margin by the same amount. The deeper breakdown lives on the COGS for DTC page.

Add payment processing next. Shopify Payments, Stripe, or PayPal will take 2.4-3.5% of gross plus a fixed fee per transaction, and that cost scales perfectly with revenue, so it belongs above the gross-margin line. On a €40 average order this is roughly €1.30 — a full 3 points of margin you cannot ignore on lower-AOV verticals like beauty replenishment.

The shipping question (where most stores get it wrong)

Shipping is the single most miscategorised line in ecommerce P&Ls. The rule: include the net shipping cost the merchant bears. If you charge the customer €5 for shipping and the carrier invoices you €7, the €2 gap is a cost of sale and belongs in gross margin. If you offer free shipping above a €60 threshold, the entire carrier cost on those orders is yours and should be in gross margin too.

Pick-and-pack fees from a 3PL follow the same logic — they vary per order, so they're variable cost of sale. Storage fees are fixed monthly overhead and stay below the line. Mixing these two is the most common reason a Shopify Plus store's gross margin doesn't reconcile to its bank statement at quarter end.

The returns blind spot

Returns belong inside gross margin as a contra-revenue adjustment plus the inbound return shipping and refurbishment cost. A beauty brand with a 6% return rate and a 22% return rate on apparel will see materially different real margins from the same headline price — and most P&Ls hide this entirely by treating refunds as a marketing or CX cost. If you don't model returns above the line, you will systematically overstate gross margin by 4-12 points depending on vertical.

The contribution-margin layer below

Gross margin stops at the cost of getting one unit out the door. Contribution margin keeps going: it subtracts the variable marketing cost of acquiring the customer who bought that unit. For a paid-acquisition-heavy DTC brand, the gap between gross margin and contribution margin is the entire game — you can have a 65% gross margin and a -5% contribution margin if your blended CAC is too high. The full breakdown lives on Contribution Margin and a side-by-side comparison on Gross Margin vs Contribution Margin.

Why care about the distinction? Gross margin tells you whether the product economics work. Contribution margin tells you whether the business works at current acquisition costs. A pricing decision uses gross margin; a paid-media budget decision uses contribution margin. Reporting one and pretending it's the other is how stores end up scaling unprofitable growth.

Chart

Where a €60 apparel order's revenue actually goes

0%10%20%30%40%50%60%Landed COGSPayment feesNet shipping costReturns reserveGross profit remainingShare of order revenueCost component
Frequently asked

Frequently asked questions

Gross margin = (Net revenue − Landed COGS − Payment fees − Merchant-borne shipping − Returns cost) ÷ Net revenue. Net revenue is gross sales minus discounts and refunds. The result is expressed as a percentage; for most DTC verticals a healthy gross margin lands between 55% and 75%.

Yes, but only the net amount the business absorbs. Subtract shipping revenue charged to the customer from the carrier invoice; the gap is a variable cost of sale that belongs in gross margin. Fully recovered shipping is margin-neutral.

Payment fees are not COGS, but they are part of gross margin. They sit on a separate line above gross profit because they vary directly with each sale. Stripe, Shopify Payments, and PayPal fees typically take 2.4-3.5% of revenue plus a fixed per-transaction fee.

Yes. Refunded revenue comes off the top as a contra-revenue adjustment, and any return shipping, refurbishment, or write-off of unsellable inventory is a cost of sale. Apparel brands with 20%+ return rates can see real gross margin land 8-12 points below their reported figure if they ignore this.

Paid acquisition costs are not part of gross margin — they sit below it in contribution margin. Gross margin measures product economics; contribution margin measures the same unit after subtracting the marketing spend used to acquire its buyer. Keep these separate or you will conflate pricing problems with media-buying problems.

Gross margin subtracts only the variable cost of producing and fulfilling the order. Contribution margin goes one layer deeper and also subtracts variable marketing — the CAC for that order. A store can have strong gross margin and negative contribution margin if it overpays for acquisition.

Split them. Per-order pick-and-pack and packaging fees are variable cost of sale and belong in gross margin. Monthly storage fees, account management, and minimums are fixed overhead and sit below contribution margin in operating expenses.

Discounts reduce net revenue at the top of the calculation, which compresses every downstream margin. A 20% sitewide promotion on a 60% gross-margin product takes the real margin to roughly 50% — and the percentage drop is magnified once fixed payment and shipping costs stay the same in absolute terms.

Beauty and supplements typically run 70-80% gross margin, apparel 55-70%, electronics and accessories 35-50%, and food/beverage 40-55%. These are after landed COGS, payment fees, shipping subsidy, and returns — a number that excludes those will look 10-15 points higher and isn't comparable.

Recompute landed COGS every time you place a new factory PO or freight rate changes — quarterly at minimum. Payment fees and shipping subsidy should be recalculated monthly from actual invoices, not the rate card. A static margin assumption baked into your forecast for a year is the single biggest source of P&L surprises.

Get an AI expert review of your site

Paste your URL — Metricuno's AI runs the same heuristic checks a senior CRO consultant would, scoring your page and prioritising the fixes that'll move conversion fastest.