Most Shopify stores base pricing on gross margin. A product costing $8 and selling for $25 yields a 68% margin. Then the P&L closes and net profit disappears. The gap between those numbers is where contribution margin analysis lives. It shows what one more order adds to your bank account after deducting every volume-scaled cost like shipping, payment fees, pick and pack, returns, and customer acquisition. This matters heavily right now. Shipping surcharges, higher acquisition costs, and returns have moved into the variable column for most direct to consumer brands. A SKU with a 70% gross margin can easily contribute nothing. This guide covers the formula, a real-world example, spreadsheet modeling, and specific pricing decisions.
The Limits of Gross Margin in Ecommerce
Gross margin only measures the cost of goods. This metric worked well for manufacturers with predictable factory costs and uniform sales processes. Ecommerce businesses pay to acquire each order individually, making gross margin insufficient on its own. Consider two SKUs in the same store with identical 68% gross margins. One is a 4oz serum shipping in a poly mailer. The other is a 3lb ceramic set requiring a box, void fill, and frequent replacement due to breakage. After accounting for shipping, packaging, and a 9% damage and return rate, the serum contributes roughly 55% of revenue while the ceramic set contributes about 22%. The gross margin report shows them as identical. This blind spot also appears at the customer level. A wholesale buyer reordering in tiny quantities or a discount-acquired customer cohort returning 30% of their purchases will destroy profit despite healthy gross margins. Contribution margin provides the unit-level visibility needed for pricing decisions, sitting perfectly between the broad strokes of net margin and the narrow focus of gross margin.
Measuring Contribution Margin
Contribution margin is the incremental profit earned on each unit sold after subtracting every variable cost. The remaining amount covers fixed costs and generates profit. The formula is straightforward: `Contribution Margin per Unit = Revenue per Unit - Variable Cost per Unit` `Contribution Margin Ratio = Contribution Margin / Revenue` This ratio shows how many cents of every revenue dollar survive to cover overhead. A 60% ratio means $0.60 per dollar of revenue is available. This ratio also drives your break-even point calculation: `Break-even Units = Fixed Costs / Contribution Margin per Unit`
Variable Costs Shopify Merchants Overlook
The exercise fails if your variable cost list is incomplete. Most stores capture COGS and stop there. A typical Shopify operation must include several other variable costs.
- Insight 01Landed product cost:Unit cost plus inbound freight, duty, and tariffs.
- Insight 02Pick, pack, and packaging:3PL fulfillment fees, mailers, boxes, inserts, and void fill.
- Insight 03Outbound shipping:Your net cost after customer payments.
- Insight 04Payment processing:Roughly 2.9% plus $0.30 on Shopify Payments, increasing for certain wallets and buy now pay later options.
- Insight 05Returns and refunds:Return shipping, restocking labor, and written-off inventory expressed as a per-order allowance.
- Insight 06Transaction-level app and channel fees:Subscription app fees, marketplace commissions, and affiliate payouts.
- Insight 07Variable marketing:Paid acquisition cost per order.
Fixed costs like salaries, rent, Shopify plans, software subscriptions, agency retainers, and warehouse minimums stay out of this calculation. The pooled contribution covers those expenses. Ad spend requires a specific judgment call. Running two separate lines for contribution margin before and after marketing clarifies whether the product itself is profitable and whether the acquisition model works.
A Practical Contribution Margin Example
Take a Shopify apparel brand selling a $25 tee.
Selling price
$25.00 · 100%
Landed product cost
$6.10 · 24.4%
Inbound freight and duty
$0.65 · 2.6%
Pick, pack, packaging
$1.15 · 4.6%
Outbound shipping (net)
$0.75 · 3.0%
Payment processing
$1.03 · 4.1%
Returns allowance
$0.32 · 1.3%
Total variable cost
$10.00 · 40%
Contribution margin
$15.00 · 60%
The gross margin on this tee looks like 73%. The 13-point gap between gross and contribution margin represents real money scaling with every order. Adding fixed costs of $42,000 per month sets the break-even point at 2,800 units ($42,000 divided by $15). Blended acquisition costs of $9 per order drop the contribution margin after marketing to $6. The break-even point then jumps to 7,000 units per month. This single calculation completely reframes growth conversations.
Evaluating Different Sales Channels
Contribution margin reflects both the product and the sales channel. Running the same tee through three channels yields different results.
Net revenue
$25.00 · $25.00 · $23.00
Base variable cost
$10.00 · $10.00 · $9.50
Channel fee or CAC
$9.00 · $0.90 · $3.45
Contribution margin
$6.00 · $14.10 · $10.05
CM ratio
24% · 56% · 44%
The marketplace order contributes 67% more than the paid social order at full price. This data also exposes ineffective discount codes. A 20% off code on this tee removes $5.00 of revenue and zero cost. Contribution drops from $15.00 to $10.00. You need a 50% volume lift just to break even on the promotion, yet most merchants estimate a 15% lift and run the promo anyway.
Applying Cost-to-Serve to Customer Segments
Product-level analysis is the first step. Stores generating over $3M in revenue benefit heavily from analyzing cost-to-serve by customer segment. Cost-to-serve represents the total variable cost of servicing a specific customer or cohort, including support tickets, custom packaging, split shipments, exchanges, and delivery complexity. Segment your customer base and rebuild the contribution math for each group.
Identify segment variations: Group customers based on acquisition channel, first-order product, discount usage, subscription status, or wholesale versus retail.
Attribute variable costs honestly: Pull return rates, support contacts per order, and shipping costs by segment from your helpdesk and 3PL.
Recalculate contribution per segment: Rely on specific segment data rather than average order metrics.
Reprice or restructure the offer: Use minimum order values, shipping thresholds, restocking fees, or tiered support for wholesale accounts.
Align incentives: Tie sales or account team targets to contribution rather than top-line revenue.
Concrete moves for a Shopify brand include raising the free shipping threshold for heavy SKUs, charging for return shipping on segments with high return rates, and setting minimum wholesale order values to eliminate unprofitable drip orders.
Building the Model in Excel
A simple spreadsheet model with 12 columns outperforms most dashboards. Set up one row per SKU with the following columns:
SKU and product name
Units sold over the trailing 90 days
Net revenue per unit after discounts and returns
Landed product cost
Fulfillment and packaging cost
Net shipping cost
Payment and channel fees
Returns allowance
Total variable cost summed from the previous cost columns
Contribution margin per unit: `=C2-I2`
Contribution margin ratio: `=J2/C2`
Total contribution: `=J2*B2`
Sort the data by total contribution rather than the contribution margin ratio. Operators frequently sort by ratio, find their highest-percentage SKU, and pour ad budget into a product selling very few units. Sorting by total contribution reveals that a 38% margin on 5,000 units generates significantly more cash than a 71% margin on 40 units. Add a summary block below the SKU table showing total contribution, total fixed costs, operating profit, and break-even units at your current weighted-average contribution margin. Update the model monthly to account for drifting freight rates, supplier costs, and payment mixes. If you prefer an automated profitability app, verify it captures returns and net shipping instead of defaulting to just COGS and fees.
Actionable Pricing Decisions
The model should trigger specific business decisions. Reprice the low contributors. Test a 6 to 10% price increase before cutting costs if a SKU yields minimal contribution. Fix shipping thresholds by weight. Adjust thresholds based on weight rather than cart value to account for products with wildly different shipping costs. Redesign the promo calendar. Use contribution math to set the maximum discount depth per SKU, cutting any promotion pushing contribution below your ad cost per order. Shift the product mix deliberately. Bundle a high-contribution SKU with a low one to lift blended contribution per order. Kill or reposition dead weight. Move SKUs with negative post-marketing contribution to full-price-only channels or discontinue them entirely. Focus scaling efforts on products with the highest contribution margins to generate the most cash from each incremental dollar of revenue.
Tracking Metrics Over Time
Treat contribution margin as a key performance indicator with a specific target. A realistic improvement path increases the contribution margin ratio from $0.60 to roughly $0.68 per revenue dollar over several years. On $5M in revenue, this 8-point gain yields $400,000 of additional contribution without acquiring new customers. The levers include renegotiating landed cost at each purchase order volume tier, redesigning packaging to drop a dimensional weight bracket, reducing return rates through better sizing data and product photography, shifting the payment mix away from higher-fee methods, moving the revenue mix toward higher-contribution SKUs and channels, and improving retention to lower blended acquisition costs. Track the ratio monthly alongside revenue. Rebuild break-even calculations whenever you cross a capacity threshold, as fixed costs like 3PL storage tiers and warehouse space increase with volume.
Getting Started
Contribution margin analysis serves as the pricing infrastructure determining whether growth generates actual profit. Start by picking your top 10 SKUs by revenue, building the variable cost stack for each, and calculating the contribution margin per unit and ratio. Then execute three specific actions:
Set a minimum contribution margin threshold for any product you promote or advertise.
Recalculate break-even units using contribution margin after marketing and share that number with your ad spend managers.
Run cost-to-serve on your two most problematic customer segments and adjust the offer terms accordingly.
Gross margin tracks purchasing costs while contribution margin tracks actual earnings. Pricing off the second number simplifies decisions and stabilizes your P&L.

.webp)