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

What an Ecommerce KPI Actually Measures

An ecommerce KPI is a measurement built to support a decision. It is not a universal number that means the same thing in every context. Revenue can help a team assess sales volume; conversion rate can help diagnose the storefront; inventory turnover can help manage stock. The useful question is always: what decision should this number inform, and which costs or events must it include to be reliable?

Contribution margin is the profitability KPI for decisions about the economics of selling an item or order. It shows how much realized sales remain after the variable costs required to make and complete those sales. Depending on the business’s cost policy, those costs may include product cost, payment fees, fulfilment, shipping subsidies, and returns-related costs. Advertising can be analysed separately or deducted to produce a contribution-after-advertising view. The definition must be consistent before results are compared.

This makes contribution margin different from gross margin. Gross margin usually subtracts product cost; contribution margin can go further by including other costs that rise with each sale. It is also different from net profit: contribution margin does not normally absorb fixed costs such as salaries, software, rent, or general overhead. Those costs still matter, but they are assessed after the contribution generated by orders is known.

The KPI is fit for decisions such as whether a product, collection, customer segment, or campaign is economically worth promoting, and whether additional sales are likely to add useful profit before fixed costs. It is not sufficient on its own to judge cash position, total business profitability, or a forecasted outcome. Ecommerce profit analytics should therefore show profitability at the product and collection level, not revenue alone. ORVX calculates realized revenue from delivered orders, derives gross and net profit from a product cost model, and reports contribution after advertising by product and collection.

Why Contribution Margin Matters More Than Revenue Alone

Revenue tells you how much customers paid, but not how much of that money remains after the costs of making and selling those orders. A store can increase revenue from $50,000 to $60,000 and still have less money available for payroll, software, rent and profit if the additional sales require heavier discounts, higher fulfilment costs or more advertising.

The other common ecommerce KPIs provide useful context, but each answers a narrower question. Gross margin shows what remains after product cost; it does not necessarily include payment fees, shipping, returns or order-level marketing. Average order value shows how much a typical order is worth, while conversion rate shows how efficiently visits become orders. Neither shows whether those orders generate enough money to support the business. Customer acquisition cost helps evaluate the cost of winning a customer, but it must be compared with the contribution created by that customer—not revenue alone.

Contribution margin connects the order to its variable costs and shows the money left to cover fixed costs and then profit. For illustration only, an order with $100 of realized revenue and $70 of variable costs contributes $30. Ten such orders contribute $300; that is the amount available before fixed costs, not $1,000 of revenue or $300 of gross profit if other variable costs have been excluded.

That makes contribution margin more suitable for decisions such as whether to scale a campaign, keep a product, or investigate an unprofitable collection. The calculation is only useful when the inputs match the decision: Shopify profit analytics should distinguish delivered orders from cancelled or returned orders, and variable costs should be assigned consistently. ORVX reports contribution after advertising at product and collection level, alongside profitability rather than revenue alone.

What each KPI tells you—and what it leaves out
KPIUseful questionWhat it does not establish
RevenueHow much was sold?Whether sales created cash for fixed costs and profit
Gross marginWhat remains after product cost?The effect of other variable costs
Average order valueHow large is a typical order?Whether the order is profitable
Conversion rateHow many visits become orders?Whether those orders have healthy economics
Customer acquisition costWhat does winning a customer cost?Whether customer contribution exceeds that cost
Contribution marginWhat remains after relevant variable costs?Whether fixed costs are covered overall

The Contribution Margin Formula, Stated Plainly

Use realized net revenue, not the order’s headline value. For an order, realized revenue is the amount retained from a delivered order after discounts and refunds, excluding sales tax collected for remittance. Cancelled and fully returned orders contribute no realized revenue. If the store charges customers for shipping, include that amount only if you also include the related shipping cost; apply the same treatment every time.

The basic formula is: contribution margin per order = realized revenue per order − variable cost per order. Variable costs are costs that rise with that order, such as the product’s unit cost, payment processing fees, packaging, pick-and-pack, fulfilment, and shipping paid by the merchant. Include return handling or other order-specific costs when they can be assigned consistently. Fixed salaries, rent, software subscriptions, and other period costs do not belong in this calculation.

For the whole period: total contribution margin = total realized revenue − total variable costs. This is equivalent to adding the contribution margin of every included order, provided the same revenue and cost rules are used. To express the result as a rate: contribution margin percentage = total contribution margin ÷ total realized revenue × 100. A 30% contribution margin means $30 remains from each $100 of realized revenue after the defined variable costs, before costs excluded from the calculation.

Advertising needs an explicit scope. If it is excluded, call the result contribution margin before advertising. If attributed ad spend is included, use contribution after advertising = contribution margin − advertising spend, and label the percentage accordingly. Do not compare percentages calculated with different cost scopes. ORVX can report contribution after advertising by product and collection, while ecommerce financial analytics keeps the broader financial view separate from this order-level calculation.

A Worked Example From Orders to Profitability

Assume 100 delivered orders with $12,000 in headline product sales. Customers received $1,000 in discounts and $500 was refunded for returned items. The $500 refund reduces realized net sales; it should not also be treated as a second revenue deduction. Return handling remains a separate cost.

The calculation is:

Realized net sales = $12,000 − $1,000 − $500 = $10,500. For this example, assume product cost is $4,200, transaction fees are $315, fulfilment is $800, outbound shipping is $1,000, return handling is $250, and advertising is $700. Total listed costs are therefore $7,265, so contribution after advertising is $10,500 − $7,265 = $3,235.

This produces $3,235 of contribution after advertising. Contribution margin percentage is $3,235 ÷ $10,500 = 30.8%. In practical terms, each $1 of realized sales leaves about $0.31 after the listed product, transaction, fulfilment, shipping, returns and advertising costs.

The 100-order volume also gives a useful unit view: realized sales average $105 per delivered order, while contribution after advertising averages $32.35. Those averages are descriptive, not a promise that every order is equally profitable; a product with higher shipping, return or advertising costs can sit below the average while another product sits above it. The result also depends on the cost period and scope matching the $10,500 of sales. Adding a cost that belongs to another period, or omitting a variable cost that applies to these orders, changes both the dollars and the percentage.

That number can support decisions such as whether a campaign, product or collection is generating enough contribution to justify its advertising spend. It is not final company profit: salaries, rent, software, taxes, financing and other fixed or overhead costs are outside this example. A profitability view such as Shopify Profit Analytics should preserve the distinction between contribution and those later expenses.

Worked contribution margin calculation
Line itemCalculationAmount
Headline product sales100 orders × average $120$12,000
Discounts$12,000 − $1,000−$1,000
Refunds from returnsRefund value deducted from sales−$500
Realized net sales$12,000 − $1,000 − $500$10,500
Product costCost model for products sold−$3,200
Payment fees3% × $10,500−$315
FulfilmentPick-and-pack cost−$800
ShippingOutbound delivery cost−$700
Return handlingProcessing cost for returned orders−$150
AdvertisingSpend bringing in these orders−$2,100
Contribution margin$10,500 − $3,200 − $315 − $800 − $700 − $150 − $2,100$3,235
Contribution margin percentage$3,235 ÷ $10,500 × 10030.8%

The Mistakes That Make the Number Wrong

A contribution margin becomes misleading when its inputs do not cover the same period. Comparing March revenue with April advertising spend, or using orders placed in one month and refunds processed in the next, can make a profitable period appear weak or make an unprofitable period look healthy. Set a clear basis—such as delivered orders and costs incurred for the same calendar period—and apply it consistently.

Start with gross sales, then reconcile to realized net revenue. Discounts, returns, cancellations and refunds are not optional adjustments. A $100 order with a $15 discount and a $20 refund contributes $65 before other costs, not $100. Sales tax or VAT collected for a tax authority should normally be excluded from revenue; income tax is a different expense from the operating costs used in contribution margin. Keep the treatment documented rather than changing it between reports.

Cost classification creates another error. Product cost, payment fees, pick-and-pack charges, shipping subsidies and other order-driven costs may belong in contribution margin, while rent, salaries or software may belong below it. The correct boundary depends on the decision. Advertising also needs care: total store ad spend is suitable for MER, while platform-attributed revenue divided by platform spend produces attributed ROAS. Blending those figures, or assigning blended spend to products as if attribution were precise, distorts product economics. A profitability view should keep MER and attributed ROAS separate.

Finally, do not mix order-level and customer-level arithmetic. Order margin answers whether transactions are profitable; customer profitability must include that customer’s acquisition cost, repeat orders, refunds and any relevant service costs. Dividing total profit by customers when the numerator is based on orders inflates repeat-customer performance. For reliable ecommerce kpis, use delivered orders only, a product cost model, and explicit refund and return treatment. ORVX connects Shopify orders, products and customers, reports return rate and refund value, and shows product- and customer-level profitability in Shopify profit analytics.

What ecommerce kpis actually measures

Contribution margin is useful only when its scope matches the decision. At order level, it shows whether a sale leaves money after the variable costs assigned to that order. At product or collection level, it shows which merchandise creates economic capacity. At period level, it shows how much remains to cover operating costs after the included selling costs. The same label can therefore produce different answers if the scope changes.

Use contribution dollars when the question is how much money a product actually adds. Use contribution margin percentage when comparing efficiency across products with different prices. For illustration only, Product A may generate $10 on $20 of realized revenue: a 50% margin. Product B may generate $1,000 on $8,000: 12.5%. A has the stronger rate; B contributes more dollars. The right action depends on whether the constraint is margin efficiency or the amount available to fund overhead and growth.

After-advertising contribution adds another decision layer. It can help identify products or collections worth scaling, reducing, fixing or testing, but it does not prove that advertising caused the result or predict what the next dollar will return. Compare it with attributed ROAS, because ROAS describes attributed advertising revenue while contribution describes what remains after defined costs.

Contribution margin is not a cash-flow measure, an inventory-position measure or a customer-lifetime-value measure. It should not be used alone to decide when to reorder stock, whether a customer will buy again or whether a channel is profitable under every attribution view. A useful ecommerce financial analytics view keeps those questions separate, while preserving the product, collection, customer and period dimensions needed to act on each number.

Choose the contribution measure that matches the decision
MeasureBest used forNot sufficient for
Contribution dollarsHow much money a product, collection or period addsComparing efficiency across different sales volumes
Contribution margin %Comparing profit efficiency relative to realized revenueShowing which product contributes the most total dollars
Contribution after advertisingAssessing economics after included ad spendProving causality or forecasting the next ad dollar

General information only: tax, duty and import rules change and depend on your situation, so check with an accountant or the official source before acting.