Every example and amount on this page is illustrative. It shows the method and is not a benchmark, a quote or advice.

How to Maximize Ecommerce Profitability, Step by Step

Start by defining the decision, not by opening a report. Write the outcome you will optimize and the period it covers: for example, “increase monthly net profit without reducing order volume below 1,000 delivered orders.” This produces a decision target and prevents a higher revenue figure from being mistaken for a better result. If the decision is advertising allocation, use contribution after advertising; if it is pricing or shipping, use profit and profit margin.

Next, choose the smallest useful analysis level. Use the order level when comparing shipping methods, discounts or checkout economics. Use the product or collection level when deciding what to promote or discontinue. Use the customer level when evaluating repeat purchasing, retention or lifetime revenue. Do not average these together: a profitable customer group can contain unprofitable first orders, while a strong product can be sold through an expensive acquisition channel. Product profitability analysis and customer profitability analytics support different decisions.

  • 1. Establish the delivered-order population. Count orders that were delivered, exclude cancelled and returned orders from realized revenue, and keep the trading currency consistent. This produces the valid order count and realized revenue for the period.
  • 2. Record the economic inputs at the same level: product cost from your cost model, refunds and return value, discounts, fulfilment and payment costs where relevant, and advertising spend. Calculate gross profit, net profit, profit margin, and contribution after advertising. For marketing decisions, compare total store revenue with ad spend as MER and keep attributed ROAS separate; they answer different questions. Advertising profitability reporting covers that distinction.
  • 3. Segment the result before changing anything. Produce profit and margin by product, collection, acquisition source, shipping option and customer type where the required data exists. Note order count, average order value, return rate by units, refund value, repeat rate and inventory position. This gives you a baseline against which a pricing, marketing, shipping or retention change can be tested rather than judged on revenue alone.
Match the decision to the level that produces its number
DecisionAnalysis levelPrimary number
Change price or product mixProduct or collectionNet profit and margin
Shift advertising spendChannel plus product or collectionContribution after advertising
Improve retentionCustomer or cohortRepeat profit and customer profitability
Change shipping economicsOrder plus shipping optionProfit per delivered order

The Formula, Stated Plainly

Start with realized revenue: sales from delivered orders, after discounts and refunds, with returned and cancelled orders excluded. Contribution profit is the money left from those sales after every cost that changes when you sell more: product cost (COGS), packaging, pick-and-pack and delivery costs, payment-processing fees, return or refund costs, and advertising spend. In formula form: contribution profit = realized revenue − COGS − variable fulfilment costs − payment fees − return costs − advertising spend.

Contribution margin is that result expressed as a percentage: contribution profit ÷ realized revenue × 100. If realized revenue is $10,000 and the listed costs total $7,000, contribution profit is $3,000 and contribution margin is 30%. Use the same cost definitions and trading currency throughout; otherwise products or campaigns cannot be compared fairly. Product and collection analysis should apply these costs at the level where the decision will be made, as described in product profitability.

This is not the same as gross margin or net profit. Gross profit subtracts COGS only. Net profit also subtracts fixed and operating costs such as salaries, rent, software, professional fees, interest and taxes. Revenue-based return metrics are different again: ROAS is revenue divided by attributed ad spend, while MER is total revenue divided by total ad spend. Neither metric subtracts the full cost of selling the order, so a high ratio can coexist with a low or negative contribution profit. See MER and ROAS profitability for that distinction.

The numbers answer different profitability questions
MetricCalculationWhat it tells you
Gross margin(Revenue − COGS) ÷ revenueWhat remains after product cost
Contribution marginContribution profit ÷ realized revenueWhat remains after variable selling costs, including advertising
Net profit marginNet profit ÷ revenueWhat remains after operating and other expenses
ROAS or MERRevenue ÷ ad spendRevenue generated per advertising dollar, not profit

Build a Reliable Profitability Baseline

Set one reporting period, trading currency, and order-status rule before exporting anything. Pull orders with line items, quantities, selling prices, discounts, refunds, cancellations, returns, taxes, and shipping charges. Reconcile the order total to the store payout or finance ledger. The first output is a realized-revenue figure that can be tied back to specific delivered orders.

Attach a product cost to every sold unit using the same cost model across the period. If a product costs $12 and 40 units were sold, product cost is $480. Flag missing or stale costs rather than silently treating them as zero. Then total fulfillment charges, payment-processing fees, and other variable order costs. Keep these costs at order or line-item level where possible, so bundles, partial refunds, and different shipping methods are not averaged into misleading product results.

Reconcile returns separately: compare returned units and refund value with the orders included in revenue. This produces a return-rate check and prevents refunded sales from inflating profitability. Finally, import advertising spend by channel for the same dates and currency. Use total spend when measuring contribution after advertising; retain attributed revenue and ROAS as a separate view because attribution is not the same as incremental profit. Advertising profitability reporting covers that distinction.

Your baseline should now contain realized revenue, product cost, gross profit, fulfillment cost, payment fees, advertising spend, and net profit, with each amount traceable to a source record. Shopify connections can supply orders, products, and customers, while connected ad accounts place spend beside store revenue. For product-level checks, see how to calculate product profitability, then investigate any missing-cost, unmatched-refund, or currency-reconciliation exception before using the baseline to make a decision.

A Worked Example With Real Numbers

Take one delivered order. The customer paid £80 and used an £8 discount, so realized revenue is £72. Product cost is £24, fulfilment is £6, and payment processing is 3% of £72, or £2.16. Contribution before advertising is therefore £72 − £24 − £6 − £2.16 = £39.84, a 55.33% margin. If £12 of advertising cost is assigned to that order, contribution after advertising is £27.84, or 38.67%.

Now aggregate the same logic for one paid-social month: 500 delivered orders at £72 each produce £36,000 of realized revenue. COGS totals £12,000, fulfilment £3,000, payment fees £1,080, and advertising £7,200. Contribution after advertising is £36,000 − £12,000 − £3,000 − £1,080 − £7,200 = £12,720, with a 35.33% margin. This is the channel view to compare in advertising profitability reporting, rather than judging the channel on revenue or attributed ROAS alone.

Test one defined improvement: a 10% reduction in paid-social spend, with orders, revenue and all other costs held constant. Spend falls from £7,200 to £6,480. Contribution rises by £720 to £13,440, and margin becomes 37.33% (£13,440 ÷ £36,000). That is the arithmetic effect of the assumption, not a forecast that demand will remain unchanged.

Paid-social monthly contribution calculation
ItemCalculationAmount
Realized revenue500 × £72£36,000
COGS500 × £24£12,000
Fulfilment500 × £6£3,000
Payment fees£36,000 × 3%£1,080
AdvertisingGiven£7,200
Contribution after advertising£36,000 − £12,000 − £3,000 − £1,080 − £7,200£12,720 (35.33%)

Choose the Highest-Impact Profit Lever

Compare each possible action by the contribution profit it adds versus the cost it introduces. Use the same period and baseline for every estimate. Revenue alone overstates a lever that relies on heavy discounts, free shipping or expensive acquisition. A useful starting point is product profitability, then apply the same calculation to each proposed change.

For illustration only, suppose a conversion test is expected to create 100 additional orders at £60 realized revenue each. That adds £6,000 revenue. If product cost is £2,400, fulfilment £600, payment fees £120 and an added shipping subsidy £500, the incremental contribution is £2,380 before any test cost. Compare that £2,380 with the incremental contribution from a discount, repeat-purchase offer or extra media spend—not with their total sales.

Make the comparison explicit:

  • Discounts: count only orders caused by the discount. Twenty additional £60 orders with a £5 discount each add £1,200 revenue, less £100 discounts and the variable costs of those orders.
  • Shipping subsidies: subtract the subsidy on incremental orders. A £5 subsidy across 100 existing orders costs £500 without creating incremental contribution.
  • Repeat purchases: measure the additional customer contribution after product, fulfilment, payment, returns and retention costs; customer profitability analytics helps separate profitable repeat behaviour from high revenue.
  • Paid media: subtract incremental ad spend from incremental contribution. Check both MER and attributed ROAS in advertising profitability; attributed ROAS can look efficient while total store contribution falls.
Compare levers using incremental contribution profit
LeverNumber to calculateDecision
ConversionExtra orders × contribution per orderTest if profit exceeds test cost
DiscountExtra orders × post-discount contributionReduce if it mainly discounts existing demand
Paid mediaIncremental contribution − added ad spendScale only when total contribution rises
Repeat purchaseAdditional customer contribution − retention costPrioritise profitable cohorts

The Mistakes That Make Ecommerce Profitability Wrong

Profitability goes wrong when unlike transactions are compressed into one average. A £40 product with £18 contribution profit can hide a £120 product losing £10 when both are reported as one blended margin. Use product- and collection-level profitability instead of assuming the store average applies to every item. Product profitability analysis helps keep those differences visible.

Gross revenue creates the same problem. If the store shows £1,000 in orders but £200 is later refunded, treating £1,000 as revenue overstates the base used for every margin calculation. Returns may also arrive after the sale month, so the month of delivery can look profitable until the refund is recorded. Track return rate and refund value against the revenue period, and state the timing rule.

Omitted costs make profit look higher than it is. Leaving out payment fees, fulfilment, packaging, discounts or product cost can turn a £10 contribution into an apparent £25. Marketing spend must also be assigned to the same products, collections and period; otherwise profit before ads is mistaken for profit after ads. Compare MER with attributed ROAS rather than treating either as total profitability. Finally, do not compare January revenue with February ad spend or a 30-day cost window with a calendar-month sales window. Every figure needs the same currency, dates and order-status rule.

What to Do With the Answer

Turn the baseline into a ranked test plan, not a list of ideas. For each possible change, calculate estimated incremental contribution profit: expected incremental realized revenue minus product cost, fulfilment, payment fees, returns, and advertising or implementation cost. Rank the opportunities by contribution profit divided by required investment, then discount low-confidence estimates. A £6,000 opportunity with £2,000 of cost ranks above a £3,000 opportunity with £500 of cost only if the assumptions are similarly credible.

Give every test one primary KPI, a measurement window, and a stop condition. Use contribution profit per order for a pricing or promotion test, contribution after advertising for a campaign change, and return rate or refund value for a product or fulfilment change. Add guardrails for realized revenue, conversion rate, gross margin, stock exposure, and customer experience where relevant. For example: continue only if contribution per order rises without return rate exceeding 8% or gross margin falling below 45%. ORVX can show product and collection contribution after advertising, while advertising profitability reporting separates MER from attributed ROAS.

Review the same scorecard weekly for active tests and monthly for the full business. Record the baseline, change made, result, confidence, and decision: scale, reduce, fix economics, test again, or stop. Compare like-for-like periods and keep the trading currency consistent. If the result is inconclusive, do not label the test successful; extend the window or revise the measurement design. Use product profitability analysis to investigate any product-level change before ranking the next test.

  • Primary KPI: the profit measure the change is meant to improve.
  • Guardrails: the losses or operational effects that must not worsen beyond a defined limit.
  • Decision rule: the threshold that determines whether to scale, stop, or test again.
Minimum record for each profitability test
FieldExample
ChangeReduce discount from 15% to 10%
Primary KPIContribution profit per order
GuardrailsReturn rate ≤8%; gross margin ≥45%
Review cadenceWeekly during test; monthly after decision
DecisionScale, reduce, fix economics, test again, or stop

Maximizing ecommerce profitability starts with one dependable contribution-profit number, not a higher revenue target. Calculate it consistently, identify the largest controllable cost or conversion gap, and measure every proposed change by the additional profit it creates after all variable costs.