Free tool

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 sales in the period, without VAT

Number of orders in the period

What the products you sold cost you

% of the cost of goods, 0 if none

What you paid to ship the orders

Card, PayPal, marketplace and app fees

Every ad platform for the same period

Staff, software, rent

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

Check your own orders: start free →

How to use this calculator

  1. 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.

  2. Fill in the totals

    Take the figures from your store and your ad accounts for exactly that period. Leave out VAT and sales tax.

  3. 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 profitRevenue − cost of goods − tariffs and duties
Gross marginGross profit ÷ revenue
Net profitGross profit − shipping − fees − ad spend − operating costs
Net profit marginNet 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.

The ROASaurus Mac app showing Profit › Products: the POAS of every product with its trend, by product or by variant. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Profit › Products: the POAS of every product with its trend, by product or by variant. Fictional demo store, simulated data.
Profit per product in the ROASaurus Mac and iPhone apps. Fictional store, simulated data.
Do this automatically in ROASaurus

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.

FAQ

Questions, answered

More answers in the FAQ and the help center.

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.