Margokit

How to calculate your real profit margin on every sale

Updated on 22 November 2026

Selling a product for 250 dirhams that costs 90 doesn’t mean you earn 160. Shipping, ads and refused parcels eat a large part of the gap. Here is how to calculate what you really keep.

Revenue, margin, profit

Revenue is what the client pays. Profit is what is left once every cost of the sale is paid. Net margin is that profit divided by the selling price: a 20% margin means you keep 20 for every 100 collected.

Every cost of an order

  • the product cost (purchase or production);
  • packaging;
  • shipping, paid for every parcel sent;
  • platform and payment fees, often a percentage of the price;
  • advertising per order (ad budget ÷ number of orders);
  • refused or returned parcels: you paid to send them, sometimes to bring them back, and collected nothing.

The refused-parcel trap

With cash on delivery, some parcels come back. If 1 parcel in 4 is refused, you ship 4 parcels to deliver 3: shipping and ads of every lost parcel are paid by the successful sales. That is the main difference between profit “on paper” and real profit.

Worked example

Price 250 MAD, product 90 MAD, packaging 5 MAD, shipping 35 MAD, return fee 15 MAD, ads 40 MAD per order, 25% refused parcels, no platform fees.

  • Naive calculation: 250 − 90 − 5 − 35 − 40 = 80 MAD per sale (32%).
  • Real profit per delivered order, refused parcels included: 48.33 MAD, a 19.3% margin.
  • Minimum price to avoid losing money: 201.67 MAD.
  • Maximum ad cost per order before losing money: 76.25 MAD, i.e. a minimum ROAS of 3.28 (price ÷ ad cost).

Key takeaways

Track your refused-parcel rate and your ad cost per order: they move your margin the most. Below a 20% margin, the slightest rise in ad costs or returns turns a sale into a loss.

Margokit computes everything for you: totals, VAT, mentions and margin.

Calculate my real profit