Profit Margin Calculator
See how much of every sales dollar you keep as profit, or price a product to hit a margin goal.
Updated November 2026 · How we build calculators
Result
Your result will appear here
Enter your numbers, then press Calculate.
How the Profit Margin Calculator works
Profit is revenue minus cost. Margin divides profit by revenue, while markup divides profit by cost. For a target margin, price equals cost divided by one minus the margin.
Formula used
Margin = (revenue − cost) ÷ revenue × 100
Markup = (revenue − cost) ÷ cost × 100
Price = cost ÷ (1 − target margin)
Step-by-step example
Using the default values in the calculator above:
- Calculate: Profit margin from revenue and cost
- Cost of goods / total cost: $60
- Revenue (selling price): $100
- Shipping & packaging cost per unit: $0
- Payment / marketplace fees (% of price): 0 %
- Other per-unit costs (labor, overhead): $0
The calculator then applies the formula above and returns:
- Profit margin: 40.00% ($40.00 profit)
- Revenue: $100.00
- Cost: $60.00
- Profit: $40.00
- Profit margin: 40.00%
- Markup on cost: 66.67%
Notes on the inputs
- Payment / marketplace fees (% of price)
- Optional. For example 2.9% for cards or 15% for a marketplace.
What-if scenarios
Each table changes one input and keeps everything else at the calculator's default values.
| Cost of goods / total cost | Profit margin |
|---|---|
| $30 | 70.00% |
| $45 | 55.00% |
| $60 (default) | 40.00% |
| $90 | 10.00% |
| $120 | -20.00% |
| Revenue (selling price) | Profit margin |
|---|---|
| $50 | -20.00% |
| $75 | 20.00% |
| $100 (default) | 40.00% |
| $150 | 60.00% |
| $200 | 70.00% |
Tips and background
Never confuse markup with margin when pricing: a 30% markup does not give a 30% margin.
Which profit calculator should you use?
Use the Profit Margin Calculator when you want margin and markup, or the price needed to hit a target margin. If your question is a bit different, one of these may fit better:
- Profit Calculator: use it when you want a quick profit or loss from total revenue and costs, with return on investment and profit after tax.
- Gross Profit Calculator: use it when you want gross profit and gross margin from sales and cost of goods sold.
- Net Profit Calculator: use it when you want the bottom line after operating costs, interest and taxes.
Margin vs markup: the mistake that costs sellers money
Margin is profit divided by price; markup is profit divided by cost. Selling a $60 item for $100 is a 40% margin but a 66.7% markup. A 40% markup on a $60 cost gives only a 28.6% margin. If your goal is a margin, price from margin, not markup.
Price for the profit you want
To hit a target margin, divide cost by one minus the margin: $60 cost and a 40% margin means pricing at $100. Include shipping, platform fees (for example 15% on a marketplace) and overhead per unit, since they all come out of your price. Compare with the markup calculator, check coverage with the break-even calculator, and review earnings with the net profit calculator.
What price gives the margin you want?
Divide cost by 1 minus the target margin. For an item that costs $60:
| Target margin | Selling price | Profit | Equivalent markup |
|---|---|---|---|
| 20% | $75.00 | $15.00 | 25.00% |
| 30% | $85.71 | $25.71 | 42.86% |
| 40% | $100.00 | $40.00 | 66.67% |
| 50% | $120.00 | $60.00 | 100.00% |
| 60% | $150.00 | $90.00 | 150.00% |
The markup needed is always larger than the margin you are aiming for. To work from a markup percentage instead, use the markup calculator.
How can fees and shipping shrink a good-looking margin?
A $100 sale of a $60 item looks like a 40% margin. Now add $8 of shipping and a 15% selling fee on the price. Total cost becomes $83, profit falls to $17 and the margin is 17%. To get back to a true 40% margin with those costs, the price must be $151.11. This is higher than simply adding the fees to $100, because a percentage fee rises along with the price. The 15% figure is only an example; use the fee schedule of your own platform or payment processor.
What is a good profit margin?
There is no single good number. Margins differ widely by industry, business model, sales volume and which costs are counted. A useful comparison uses the same type of margin: gross margin subtracts the cost of goods, while net margin also subtracts operating costs, interest and taxes. Compare yourself with similar businesses and with your own past results. A high margin on very few sales can earn less than a modest margin on many, so check total profit as well. The break-even calculator shows how many sales cover your fixed costs.
Which costs are easy to forget?
Check these before you trust a margin.
- Returns, refunds and damaged stock.
- Packaging and the shipping you pay for.
- Payment processing, marketplace and advertising costs.
- Discounts you give regularly.
- The value of your own time, if you make or pack the product.
This calculator works per sale with the costs you enter. For a full picture of the business, use the net profit calculator.
Common mistakes to avoid with the Profit Margin Calculator
- Using markup percentages when you mean margin.
- Leaving shipping, fees and overhead out of cost.
- Pricing from competitors without checking your own margin.
Frequently asked questions
What is the difference between margin and markup?
Margin is a percent of price; markup is a percent of cost. A 50% markup equals a 33.3% margin.
What is a good profit margin?
It varies by industry: retail net margins are often low single digits, while software can exceed 20%, and gross margins are higher.
How do I raise my margin?
Raise prices, cut costs or shift to higher-margin products.
How do I calculate gross margin?
(Revenue − cost of goods) ÷ revenue × 100.
How do I price a product for a 50% margin?
Divide cost by 0.5, which doubles the cost.