How to Calculate Your Real Profit Margin on Shopify

2026-11-24

Plenty of new store owners look at their Shopify dashboard, see sales coming in, and assume the business is working. Then the month ends and the bank balance tells a different story. The gap between revenue and profit is made up of small costs that are easy to forget, and on a single order they can eat most of what you thought you earned.

The costs inside every order

Take a product you sell for $40. Before you keep a cent, you pay for:

  • Product cost (COGS) – what you paid the supplier, including packaging.
  • Shipping – what you pay the carrier, even if the customer saw "free shipping".
  • Payment processing – usually around 2.9% + $0.30 per online card payment on Shopify's Basic plan with Shopify Payments.
  • Third-party gateway fees – if you don't use Shopify Payments, Shopify adds its own transaction fee on top of your gateway's fee.
  • Ad cost per order – your ad spend divided by the number of orders it produced.

A worked example

ItemAmount
Selling price$40.00
Product cost−$12.00
Shipping−$6.00
Processing (2.9% + $0.30)−$1.46
Ad cost per order−$14.00
Profit$6.54 (16.4%)

That $40 sale leaves about $6.50. If your ads get a little more expensive, the same order can lose money.

The formula

Profit = Price − Product cost − Shipping − Payment fees − Ad cost per order

Margin % = Profit ÷ Price × 100

Work this out for each of your main products, not just the store as a whole. One low-margin bestseller can hide behind a few healthy products.

How much can you spend on ads?

Take the profit before ads (price minus product, shipping and fees). In the example that's $20.54. That is your break-even ad cost: spend more than that to win an order and you lose money on it. Divide the price by it and you get your break-even ROAS – here, 40 ÷ 20.54 ≈ 1.95. Any campaign below roughly 1.95 ROAS is losing money on the first order.

Quick ways to improve your margin

  • Raise the price slightly and test – a $3 increase often hurts sales less than you'd expect.
  • Bundle products so one shipping cost covers more revenue.
  • Use Shopify Payments where it's available to avoid the extra transaction fee.
  • Cut ad sets whose cost per order is above your break-even number.

Don't want to do the maths by hand? Use our free Shopify Profit Calculator – enter your numbers and it shows profit, margin and break-even ROAS instantly.