Free tool

Shopify Profit Margin Calculator

Most margin calculators stop at product cost. This one includes your ad spend, which is almost always your second largest cost line.

A Shopify store margin is calculated by subtracting product cost, shipping and platform fees from revenue. Until advertising spend is subtracted as well, the result is a gross margin, not what actually stays with you. That gap is what decides whether a store makes money.

€
Over the period, excluding tax, net of refunds.
€
What the products sold in this period cost you.
€
What you actually pay, net of shipping charged to customers.
€
What returns cost you over the period: both shipping legs, products you cannot resell, fees not refunded.
%
Payment processing, Shopify subscription spread out and paid apps, as a share of what the customer pays.
€
The fixed part of each payment: 0.30 € per card payment on Shopify Payments in France and Spain.
%
Payment fees apply to what the customer pays, VAT included: 20 % in France, 21 % in Spain.
€
Google Ads, Meta Ads and the rest, over the same period.
Orders in the period.
Net margin What actually stays, advertising included.
Gross margin Before advertising: the figure other calculators show.
Net profit In euros, over the period.
Profit per order What one order leaves you, all in.
Acquisition cost Ad spend divided by orders.

Where your revenue goes

The calculation, and where it gets interesting

Fees = Revenue × (1 + VAT) × Fee % + Orders × Fixed fee Gross margin = Revenue − Cost of goods − Shipping − Returns − Fees Net profit = Gross margin − Ad spend Net margin = Net profit ÷ Revenue

48,000 € of revenue, 21,600 € of goods and 3,600 € of shipping, with 2.4 % fees on the VAT-inclusive amount plus 0.30 € per order, give a gross margin of 44.25 %. That is the number most calculators return, and it is correct.

Add 6,000 € of advertising and the margin drops to 31.74 %. 12.5 points of difference on exactly the same sales. Across 600 orders that is 25.40 € of profit per order instead of the 35.40 € you thought, and a 10 € acquisition cost per customer.

That gap is what decides the trade-offs. A store steering on gross margin believes it can raise its ad budget: it is watching a number that does not move when spend goes up. Net margin degrades the moment acquisition cost passes profit per order, and that is the only threshold that counts.

What usually gets left out of the costs

  • Payment fees, which apply to the full charged amount including shipping, so to a wider base than product revenue.
  • Returns and refunds, which cost you the product, both shipping legs, and payment fees that are rarely refunded in full.
  • Paid apps, negligible one by one and clearly visible once you are running a dozen.
  • Advertising in quiet months. A monthly average smooths a very profitable sale month against a quiet one that is not: run the calculation month by month, never across a year.

Frequently asked questions

How do you calculate the real margin of a Shopify store?

Subtract cost of goods, shipping, the cost of returns, payment fees and then ad spend from revenue. Divide the result by revenue. That is the only margin that says whether the store makes money.

Should advertising be included in a margin calculation?

For a store that buys its traffic, yes. Acquisition cost behaves like a variable cost: it grows with sales. Leaving it out produces a margin that never moves, whatever the budget.

What is a good net margin in ecommerce?

It depends too much on the industry and the basket for a single benchmark to help. What compares is your own net margin month over month, and which way it moves when you raise the ad budget.

Does this work for WooCommerce or PrestaShop?

Yes. Only the platform fee line changes nature: subscription and commission on Shopify, hosting and modules elsewhere. The logic and the other lines are identical.

Net margin falling as you raise budget?

That is the sign you have passed the saturation point of your most profitable audience. It shows in campaign structure before it shows in the accounts.

Grow And Keep My Margin
Théo Maupilé

Growth partner

Positioning, acquisition, innovation: together we build a lasting growth system.

Théo MaupiléFreelance Paid Media

Google PartnerSuperMalter

◉ Certifications

Official Google Partner
& SuperMalter