Profit margin calculator
Work out your gross and net profit margin for a month, including import tariffs, shipping, payment fees, ad spend and running costs.
Net profit margin
14.4%
You keep 14.4% of revenue as net profit, from a gross margin of 60.4%.
- Net profit
- 7,200
- Gross profit
- 30,200
- Gross margin
- 60.4%
- Net profit per order
- 9.00
- Tariffs and duties
- 1,800
An estimate from the numbers you entered, not a forecast. Nothing is stored or sent.
How this is calculated
- Tariffs = cost of goods × tariff %
- Gross profit = revenue − cost of goods − tariffs
- Net profit = gross profit − shipping − fees − ad spend − operating costs
- Margin = profit ÷ revenue
Enter your revenue to see your margins.
Products and duties cost more than they sell for, so every sale loses money before any other cost.
The period made a loss of {n}. The gross margin is positive, so look at shipping, fees, ad spend and running costs.
You keep {m} of revenue as net profit, from a gross margin of {g}.
How to use this calculator
Pick a period
A month or a quarter works best: long enough that one big order or a late invoice does not swing the result.
Fill in the totals
Take the figures from your store and your ad accounts for exactly that period. Leave out VAT and sales tax.
Read the result
The figure updates as you type. Without script, press Calculate and the page works it out.
What is net profit?
Net profit is what is left of revenue after every cost of the period: the products, the duties on importing them, shipping, payment fees, advertising and the costs of running the business. Net profit margin is that amount as a share of revenue. Gross margin stops after the products and duties, so it is always higher.
The profit margin formulas
| Gross profit | Revenue − cost of goods − tariffs and duties |
| Gross margin | Gross profit ÷ revenue |
| Net profit | Gross profit − shipping − fees − ad spend − operating costs |
| Net profit margin | Net profit ÷ revenue |
Worked example
Example numbers, not a real store. A month with 50,000 of revenue from 800 orders. The products cost 18,000 and a 10% tariff on them adds 1,800, so gross profit is 30,200, a gross margin of 60.4%. Shipping 4,500, fees 1,500, ad spend 12,000 and running costs 5,000 leave 7,200 of net profit: a 14.4% net margin, or 9.00 per order.
Tariffs belong in product cost
Import duties and tariffs are paid because you bought the product, so they raise its cost just like a supplier's price increase. Leaving them out makes gross margin look higher than it is, and every ROAS target built on it too low. When tariffs change, update the percentage here and see what it does to net margin before you change prices.
Why track net profit, not just revenue
- Revenue can grow while net profit shrinks, when growth comes from discounts or expensive ads.
- Net margin shows how much room you have for a sale, a price cut or a new channel.
- Per-order net profit tells you what one more order is worth to the business.
For one order instead of a month, use the order profit calculator; for gross margin alone, the gross profit calculator.

Net profit for every day, product and channel
ROASaurus builds a P&L from your orders, product costs, duties, shipping, fees, ad spend from every platform and your running costs, so the net margin is always up to date.
More free calculators
How do I calculate my Shopify net profit margin?
Take net sales for a period, subtract product costs, duties, shipping, payment fees, ad spend and running costs, and divide what is left by net sales. Shopify's own reports do not include your ad spend, so add it from your ad accounts.
Which costs should I include?
Every cost of the period: cost of goods, tariffs and duties, shipping, payment and app fees, all ad spend and operating costs such as staff and software. Leave out VAT, which is not your money.
What is net profit?
Revenue minus every cost of the period. It is the amount the business actually earned.
Why track net profit and net margin for a store?
Because revenue and ROAS can rise while the business earns less. Net margin shows whether growth is paying off and how much room is left for discounts and ads.
How do tariffs change my margin?
They raise your cost of goods. A 10% tariff on products that cost 36% of revenue takes another 3.6 points off gross margin, and off net margin too unless you raise prices.
Every sale, traced to the ad that earned it
Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.