How to Calculate Profit Margin (Quick Answer)
Profit margin % = (Net Profit ÷ Selling Price) × 100
That is the core profit margin equation. For ecommerce, net profit is not “price minus product cost.” You must also subtract shipping, ads, and platform fees (including Shopify fees) before you call a product profitable.
👉 Run the numbers in our Shopify Profit Calculator USA for an instant profit margin calculation.
---
Calculating Profit Margin Step-by-Step
1. Start with your selling price (what the customer pays). 2. Subtract product cost. 3. Subtract shipping (or your average shipping subsidy). 4. Subtract ad spend per unit (total ads ÷ units sold). 5. Subtract Shopify fees / payment fees (e.g. 2.9% + $0.30). 6. Divide remaining net profit by selling price, then multiply by 100.
This is how do you calculate profit margin the way operators actually use it — not a textbook-only version.
---
Profit Margins Formula vs Markup
| Metric | Formula | Use it for | |--------|---------|------------| | Margin | (Profit ÷ Selling Price) × 100 | Measuring profitability | | Markup | (Profit ÷ Product Cost) × 100 | Pricing up from cost |
Example: $20 cost, $40 price → 50% margin, 100% markup. Confusing the two is a common reason stores underprice.
If you need a markup calculator and margin view together, use the USA calculator — it shows both.
---
How to Calculate Profit Margin Percentage (Worked Example)
- Selling price: $49.99
- Product: $15.00
- Shipping: $4.50
- Ads / unit: $8.00
- Shopify fee (~2.9% + $0.30): ~$1.75
Net profit ≈ $49.99 − $15 − $4.50 − $8 − $1.75 = $20.74 Profit margin ≈ 41.5%
That is how to compute profit margin with real ecommerce costs included.
---
Why “How to Do Profit Margin” Matters Before Ads
A pretty ROAS means nothing if your margin calculation is wrong. Use break-even ROAS = 1 ÷ gross margin, then validate with our ROAS Calculator.
---