Profit margin calculator: what each sale keeps.

Profit margin is the share of the price you keep: (price − cost) ÷ price. Find your margin and markup, the price a margin needs - and how much of each sale is left for ads.

Try an example:

Free · no sign-up · runs in your browser · reviewed October 2026

1Your numbers
Profit margin43.3%
Selling price$30.00
Product cost$11.00
Other costs$6.00
You keep$13.00

You keep $13.00 of each $30.00 sale.That is a 43.3% margin and a 76.5% markup. Gross margin, on the product cost alone: 63.3%. To keep 10% of the price after ads, one sale can carry up to $10.00 in ads - a ROAS of 3.00×.

Markup
76.5%
on your costs
Profit per sale
$13.00
before ads - the most an order can cost
Break-even ROAS
2.31×

Nothing you type leaves your browser. The link keeps your numbers, so you can send it to someone.

In short

  • Margin = (price − cost) ÷ price. $30 − $17 = $13, and $13 ÷ $30 = 43.3%.
  • Markup = (price − cost) ÷ cost. The same sale is a 76.5% markup.
  • Price for a margin = cost ÷ (1 − margin). A 60% margin on $17 needs $42.50.
  • Break-even ROAS = 1 ÷ margin. At 43.3%, ads must bring 2.31× their cost in sales.

How to use the profit margin calculator

  1. Choose what to find: the margin of a price, the price a margin needs, or the price a markup gives.
  2. Enter the product cost and, if you want the margin a sale really leaves, the other costs of one sale: shipping, packaging, payment fees. Leave them at 0 for the gross margin.
  3. Read the bars. They split the price into its costs and what you keep; the line below says what that leaves for ads.
  4. Copy the link to keep the result or send it to someone.

How to calculate profit margin

FormulaProfit margin = (selling price − costs) ÷ selling price × 100

($30 − $17) ÷ $30 = 43.3%.

That is the T-shirt example above: it sells at $30, costs $11 to buy and $6 to ship and pack. Each sale leaves $13 - 43.3% of the price. Use the price without sales tax or VAT: that money is not yours.

Gross margin and the margin per sale

The same product has two margins, and both are useful:

  • Gross margin counts the product cost only: ($30 − $11) ÷ $30 = 63.3%. Suppliers, price lists and accountants speak in gross margin.
  • The margin per sale also counts what every order costs you - shipping, packaging, payment fees: 43.3%. This is the one that pays for ads.

Rent, apps, your plan and your own time come after both. The Shopify profit calculator takes a whole month and shows the net profit after all of them.

Margin vs markup

FormulaMarkup = (price − cost) ÷ cost · Margin = (price − cost) ÷ price

Same profit, two bases. $13 on $17 of costs is a 76.5% markup; on a $30 price it is a 43.3% margin.

Markup is always the bigger number, so mixing them up makes a price look better than it is. To turn one into the other:

MarginMarkupPrice of a $10 cost
20%25%$12.50
30%42.9%$14.29
40%66.7%$16.67
50%100%$20.00
60%150%$25.00
70%233.3%$33.33
80%400%$50.00

Markup = margin ÷ (100 − margin); margin = markup ÷ (100 + markup). "Keystone" pricing - double the cost - is a 100% markup and a 50% margin.

How to price a product for the margin you want

FormulaPrice = costs ÷ (1 − margin)

$17 ÷ (1 − 0.6) = $42.50 for a 60% margin.

The common mistake is to add the margin to the cost: $17 × 1.6 = $27.20, which is only a 37.5% margin. Choose "Find the price" in the calculator, then round to a price your customers expect.

How a discount eats your margin

A discount comes off the price, but all of it comes out of your profit. The table shows how many more sales a discount needs to leave the same profit as before:

Your margin10% off20% off30% off
30%+50%+200%no profit left
40%+33%+100%+300%
50%+25%+67%+150%
60%+20%+50%+100%

At a 40% margin, 20% off halves the profit per sale, so it takes twice the sales. Before a sale, check that it can really bring that many more orders - the Black Friday guide compares it with what a typical store sells on the day.

Profit margin and ads

The profit per sale is the most one order can cost in ads before the sale loses money. As a return on ad spend, that line is 1 ÷ margin:

Margin per saleBreak-even ROASROAS to keep 10%
20%5.00×10.00×
30%3.33×5.00×
40%2.50×3.33×
50%2.00×2.50×
60%1.67×2.00×

The T-shirt at 43.3% breaks even at 2.31×. To keep 10% of the price - $3.00 a sale - its ads must cost at most $10.00 per order, a ROAS of 3.00×. A thin margin makes every ad channel look expensive; advertise the products with the most room. The ROAS calculator checks a campaign, and the guide to a good ROAS explains the lines.

Customers who come back are worth more than one sale: the customer lifetime value calculator shows how much you can pay to win one.

What this calculator does not tell you

  • Monthly costs. Apps, your plan and salaries do not belong to one sale. The Shopify profit calculator adds them.
  • Returns. If one order in ten comes back, add the cost of returns to "Other costs per sale".
  • The right price. A margin says what a price leaves, not what customers will pay. Compare your price with the stores that sell the same thing.

By Bart Ziem, Adeagle · Formulas: the standard definitions of margin, markup and return on ad spend · Examples, not promises: your result depends on your products and prices

More Shopify profit calculators

What a whole month leaves, the fees inside it, and what one order and one customer are worth.

Questions about profit margin

Subtract the cost from the price and divide by the price. A $30 T-shirt that costs $17 leaves $13: $13 ÷ $30 = 43.3%.

Margin is the profit as a share of the price; markup is the profit as a share of the cost. The same $10 profit on a $20 price and a $10 cost is a 50% margin and a 100% markup.

Divide the cost by (1 − margin). For a 60% margin on $17 of costs: $17 ÷ 0.4 = $42.50. Cost × 1.6 gives a lower price and only a 37.5% margin.

The margin on the product cost alone: (price − product cost) ÷ price. Add shipping, packaging and payment fees to the cost and you get the margin each sale really leaves.

It depends on how you sell. A store that buys its visitors with ads needs room for them: at a 50% margin the ads must bring 2× their cost in sales just to break even, at 25% they must bring 4×. Keep the margin on the products you advertise high.

Up to the profit per sale - then you break even. To keep 10% of the price as profit, spend at most the profit minus 10% of the price: $10.00 on the $30 T-shirt.

A discount comes out of the profit, not out of the price. At a 40% margin, 20% off halves the profit per sale - you need twice the sales to make the same money.

Want another tool? Tell us which one: [email protected]