Main calculator: Profit Margin Calculator
The formula
Profit margin = (price − total cost) ÷ price × 100
| Example | Value |
|---|---|
| Selling price | $35.00 |
| Total cost | $20.00 |
| Profit | $15.00 |
| Margin | 42.9% |
Gross margin vs net margin
- Gross margin uses only the cost of the product (COGS).
- Net margin subtracts everything: platform fees, shipping, packaging, ads and overheads.
For online sellers, net margin per order is what decides whether you make money.
Finding the price for a target margin
Price = cost ÷ (1 − target margin)
To earn a 40% margin on a $20 cost: 20 ÷ 0.6 = $33.33.
Common mistakes
- Using markup instead of margin (see margin vs markup)
- Forgetting percentage fees that grow with price
- Ignoring returns and ad spend
Try it in the profit margin calculator.
Steps
- Find the selling price
- Add up every cost for one sale
- Subtract costs from price to get profit
- Divide profit by price and multiply by 100
FAQ
What is a good profit margin for ecommerce?
It depends on your product, platform and ad costs. Work out the margin you need to cover overheads and growth, then price for it.
Is margin the same as markup?
No. Margin divides profit by price; markup divides profit by cost.