You can't grow your way out of a margin problem. Plenty of founders have tried. The ones who build durable ecommerce businesses — the kind that survive ad market volatility, supply chain disruptions, and competitive price pressure — monitor and manage margins with the same discipline they bring to revenue growth.

Ecommerce profit margin analysis isn't a quarterly finance exercise. It's a weekly operating practice. When done well, it tells you which products to promote, which channels to scale, and which decisions to reverse before they compound into something expensive. These nine best practices are what high-margin ecommerce brands actually do.

1. Know Your COGS Per SKU — Exactly

Gross margin is your profitability ceiling, and it starts with an accurate cost of goods sold (COGS) figure per product. True COGS includes: product cost (supplier invoice), inbound freight and customs duties, packaging materials, quality control or inspection costs, and any third-party fees paid before the product reaches your warehouse. Update your COGS figures every time a supplier invoice changes — approximate margins produce bad decisions.

2. Calculate Contribution Margin by Product Monthly

Run this calculation monthly for every product representing more than 5% of your revenue: Contribution Margin = Revenue − COGS − Shipping Cost − Payment Processing − Variable CAC. Sort by contribution margin percentage and identify your top 3 and bottom 3. The bottom 3 almost always contain at least one surprise — a bestselling product that's actually destroying margin at volume.

3. Segment Margins by New vs. Returning Customers

Your margin profile looks fundamentally different for new customers versus returning ones, and blending them together hides critical signal. New customers carry the full CAC burden. If your blended CAC is $35 on an $85 AOV product with 45% gross margin, the contribution margin on a new customer order is significantly thinner than it appears in aggregate. Track new vs. returning customer contribution margin separately every month.

4. Audit Your Shipping Economics Every Quarter

Shipping is the margin cost that most quietly creeps up over time. Every quarter, run this calculation: total shipping cost paid ÷ total orders shipped = average shipping cost per order. Compare to the same quarter last year. Check whether your free shipping threshold still makes economic sense at current carrier rates, whether your packaging is triggering dimensional weight charges, and whether your carrier mix is optimized for your actual order weight and zone distribution.

5. Calculate the True Cost of Your Promotions

Promotions feel like a marketing cost. They're actually a margin cost. Before running any promotion — discount code, bundle deal, BOGO — calculate its contribution margin impact. If you discount 20% off a product with 40% gross margin, you're left with 20% gross margin before shipping, CAC, and processing. For every promotion, before it launches, calculate the minimum order contribution margin at the promotional price and compare it to your target contribution margin.

6. Track Return Rate and Return Cost Together

Return rate (as a percentage of orders) is common. Return cost (as a dollar figure per return and as a percentage of revenue) is far less common — and far more important. For every return, the true cost includes: revenue refunded, outbound shipping already paid, return shipping (if covered), restocking/inspection labor, and markdown on unsaleable returned items. For brands with 15%+ return rates, the monthly return cost model often surprises founders who have only been tracking the revenue refund portion.

7. Run an LTV:CAC Analysis by Acquisition Channel Quarterly

Customers acquired through different channels often have dramatically different LTV profiles — different repeat purchase rates, different AOV patterns, different return rates. Every quarter, for customers acquired 12 months ago through each channel, calculate: total revenue generated, total gross margin generated, minus CAC at time of acquisition. This analysis frequently reveals that one acquisition channel produces customers with 2–3x the 12-month value of another — a finding that should directly reshape budget allocation.

8. Set Margin Targets Before Making Pricing Decisions

Most ecommerce pricing decisions are made bottom-up: 'What's our COGS, what's the market price, and what can we charge?' This approach doesn't account for the full cost stack and routinely produces prices that support the revenue goal but not the margin goal. Instead, set your margin target first: define your target contribution margin, calculate your total variable costs, back-calculate the minimum price required to hit your margin target, then test the resulting price against market comparables.

9. Build a Monthly Margin Dashboard — and Actually Review It

Build a monthly margin dashboard with five core metrics: gross margin % (blended, trailing 30 days), contribution margin % (blended, including shipping, processing, and CAC), new customer contribution margin % vs. returning customer contribution margin %, LTV:CAC ratio (trailing 90 days by acquisition channel), and return cost as % of revenue (trailing 30 days). Review this dashboard before any major marketing budget decision, any pricing change, and any new product launch decision.

The Trivas.ai Margin Intelligence Dashboard

The Trivas.ai Margin Intelligence Dashboard puts these five metrics in one automatically updated view: gross and contribution margin trends by product and channel (pulled from Shopify/WooCommerce and updated daily), LTV:CAC by acquisition channel incorporating ad spend data from Meta, Google, TikTok, new vs. returning customer contribution margin split, return rate and estimated return cost tracking, and AI-generated margin alerts when any metric moves outside its expected range.

Rather than building these calculations manually in spreadsheets, Trivas.ai connects your store, ad platforms, and email tool to calculate margin intelligence automatically — freeing founders to act on the data rather than build the model.