Free calculator
Ecommerce profit margin calculator
Revenue says how big a store is. Margin says whether it works. Enter a month of revenue and costs to see what is left at each step: after products, after the costs of each order, after marketing and after fixed costs.
How it is calculated
- Net revenue
revenue − refunds and returns
- Gross profit and gross margin
net revenue − cost of goods sold, then ÷ net revenue
- Contribution and contribution margin
gross profit − shipping and packaging − payment fees, then ÷ net revenue
- Contribution after marketing
contribution − marketing
- Net profit and net profit margin
contribution after marketing − fixed costs, then ÷ net revenue
A worked example
A store takes €60,000 in a month and pays back €3,000 in refunds: €57,000 of net revenue. The products cost €24,000, leaving €33,000 of gross profit, a gross margin of 57.9%. Shipping (€4,200) and payment fees (€1,700) bring the contribution to €27,100, a contribution margin of 47.5%. After €6,000 of marketing, €21,100 is left, and after €12,000 of fixed costs the net profit is €9,100: a net margin of 16.0%.
Assumptions and limits
- All margins are shares of net revenue, after refunds and returns.
- Every cost is for the same month as the revenue. Stock bought in bulk belongs in the month it is sold, not the month it is paid for.
- Taxes on profit, interest and depreciation are not included. Net profit here is an operating figure, not what your accounts will show.
- If returns are larger than revenue, net revenue is zero or less and the margins show n/a.
Three margins, three questions
Gross margin asks whether your products are priced well against what they cost. Contribution margin asks whether each order still makes money once it is shipped and paid for. Net margin asks whether the whole business makes money once marketing and fixed costs are paid. A store can have a healthy gross margin and still lose money on every order if shipping or returns eat it.
Why contribution is the number to watch
Contribution margin is the money each extra order adds. It sets how much you can spend on marketing to win an order, how deep a discount can go and how much a lift in sales is worth. It is the same margin the ROI, discount and lifetime value calculators on this site ask for.
Where to find the inputs
Revenue, refunds and payment fees come from your store and payment provider reports. Cost of goods sold comes from your stock records or your accountant. Shipping is easiest from carrier invoices, minus what customers paid at checkout. Use one full month, not a week, so that monthly bills land in the same period.
What changes the margin fastest
Returns and shipping often move contribution margin more than price does. Clear sizing and product information reduce returns; a free shipping threshold above your average order value spreads shipping over larger baskets. Repeat customers also help: an email to someone who already bought from you costs a fraction of what it took to win them the first time.
AI-powered. Human-managed.
Want help turning the numbers into a plan?
Get a free growth plan: we look at your store and show where email, SMS and lead capture could make the biggest difference.
Managed Ecommerce Growth: €1,000 a month per store, platform and email sending included.