This free profit margin calculator shows what you really keep from each order. Add your selling price and every cost behind the sale, including product, shipping, packaging, payment fees and ads, and it works out your profit, margin, markup and break-even ROAS as you type.
Profit margin calculator
Add up every cost behind one order to see what you really keep.
The starting numbers are an example. Payment fees default to 2.9% + 30¢, Shopify’s Basic plan rate for online cards in the US. Change them to match your plan.
How to use the profit margin calculator
- Sale price: what the customer pays for the product.
- Product cost: what you pay your supplier for one unit.
- Shipping and packaging: what it costs you to send one order.
- Payment fees: the percentage and fixed fee your payment provider charges. The default is 2.9% + 30¢, Shopify’s Basic plan rate for online cards in the US.
- Ad spend per sale: what you spend on ads, on average, to get one order. Put 0 if you don’t run ads.
You can switch between $, £ and €. The maths is the same in any currency.
The profit margin formula
- Profit = sale price − all costs
- Profit margin = profit ÷ sale price × 100
- Markup = profit ÷ all costs × 100
- Break-even ROAS = sale price ÷ profit before ads
Worked example
These are the calculator’s starting numbers, an example rather than real data. A product sells for $40. It costs $12 to make, $5 to ship and $1.50 to pack. Card fees at 2.9% + 30¢ come to $1.46, and ads cost $8 per sale.
- Total costs: $27.96
- Profit per order: $12.04
- Profit margin: 30.1%
- Markup: 43.1%
- Break-even ROAS: 2.00x. Profit before ads is $20.04, so the ads need to bring in at least $2 of sales for every $1 spent.
Margin vs markup
Margin and markup use the same profit but divide it by different numbers. Margin divides by the sale price, so it tells you how much of each sale you keep. Markup divides by your costs, so it tells you how much you added on top. In the example, the margin is 30.1% but the markup is 43.1%. Mixing them up is one of the easiest ways to price too low.
Quick answers
What is a good profit margin for an online store?
There’s no single right number, because it depends on your products, prices and how much you spend on ads. What matters is that your margin still leaves a profit after ads, returns and discounts.
Should I include ad spend in my profit margin?
Yes, if you run ads. Ads are often the biggest cost after the product itself, and leaving them out makes a product look more profitable than it is.
What is break-even ROAS?
It’s the return on ad spend you need just to cover your costs. If your ads return less than this, every sale loses money. Use the ROAS calculator to plan your ad budget.
Does this calculator save my numbers?
No. It runs in your browser, so nothing you type is saved or sent anywhere.
More free tools
ROAS Calculator
Find your break-even ROAS and the most you can spend on ads per sale.
Open calculator →Free calculatorAmazon FBA Calculator
Estimate Amazon fees and profit per unit before you order stock.
Open calculator →Ecommerce Apps PortalFind the right app
135 ecommerce apps for product research, ads, AI and building your store.
Browse apps →