Profit Margin Calculator
Profit margin is the share of the price you keep after costs: (price − cost) ÷ price. If you sell through paid ads, it also sets the bar your ads have to clear: at a 20% margin, every $1 of ad spend has to bring back $5 in sales just to break even.
Product, shipping and payment fees for one sale.
Profit margin
40.0%
$20.00 profit on each sale
Where the price goes
StefanBrain / Order Economics
- Selling price
- $50.00
- Cost per unit
- -$30.00
Profit per sale, before ads
$20.00
- Markup on cost
- 66.7%
- Break-even ROAS
- 2.50×
Each $1 of ad spend has to bring in $2.50 of sales to break even. Any less and you lose money on every sale the ads buy.
How to read your result
Markup is the same profit measured against the cost instead of the price, so it always comes out higher than margin. Break-even ROAS is the number that matters once you pay for traffic. ROAS (return on ad spend) is the sales your ads bring in for each $1 they cost, and break-even is the point where ad spend uses up the whole profit on a sale.
Markup = (price − cost) ÷ cost
Price for a target margin = cost ÷ (1 − margin)
Break-even ROAS = price ÷ profit = 1 ÷ margin
Worked example: a $50 product that costs $30
Say a serum sells for $50 and costs you $30 in product, shipping and payment fees. Profit is $50 − $30 = $20. The margin is $20 ÷ $50 = 40%, and the markup is $20 ÷ $30 = 66.7%. Break-even ROAS is $50 ÷ $20 = 2.5.
Your margin sets the ROAS your ads need
The thinner the margin, the faster the bar climbs. Drop from 60% to 50% and break-even ROAS moves from 1.67 to 2.0. Drop from 40% to 30% and it jumps from 2.5 to 3.33.
Break-even ROAS by profit margin: 20% margin, 5.00; 30% margin, 3.33; 40% margin, 2.50; 50% margin, 2.00; 60% margin, 1.67; 70% margin, 1.43.
Two habits keep that number honest. First, count everything one sale costs you: product, packaging, shipping, payment fees and returns. Gross margin stops at the cost of goods. The rest still gets paid, so a ROAS target built on gross margin overpays for every order without you noticing. Rent, salaries and software stay out; they come off later, in net margin. Shopify's ROAS guide counts the same way: its $100 sweater keeps $40 after product, shipping and payment costs. The contribution margin calculator adds those costs line by line, and the break-even ROAS calculator turns the result into a target.
Second, leave room for the auction. In our guide to DTC unit economics, we put the floor at about a 40% margin: once a brand's margin slips under it, everyday swings in ad prices and conversion rates can push the whole account into the red.
Margin sets the bar. Your creative decides whether you clear it, and that's the half we built StefanBrain for. SB 1.5, our direct-response model built on Stefan Georgi's playbook, writes the hooks and scripts. Static ads, video ads and landing pages get made in the same tool, and the ads launch straight to Meta. Over $600 million a month in ad spend already flows through the platform.
Margin vs markup
Mix them up and you underprice. Aim for a 50% margin, mark the cost up 50% instead, and a $10 cost sells for $15: $5 of profit, only a third of the price. The margin you were aiming for takes a 100% markup: a price of double the cost.
A product's pricing card: price $50.00, cost per item $30.00, profit $20.00, margin 40%, markup 66.7%.
Questions people ask
How do you calculate profit margin?
Subtract the cost from the price, divide by the price and multiply by 100. An $80 price and a $52 cost give $28 ÷ $80 × 100 = 35%.
What is a 30% margin on $100?
On a $100 price, a 30% margin is $30 of profit, so the cost is $70. If $100 is your cost, the price for a 30% margin is $100 ÷ 0.7 = $142.86.
How do I calculate a 70% profit margin?
To price for a 70% margin, divide the cost by 0.3 (that's 1 minus 0.7). A $30 cost needs a $100 price.
Is a 50% markup the same as a 50% margin?
No. A 50% markup is a 33.3% margin.
