Profit Margin Calculator
Find your profit margin, markup and the selling price you need. Enter your cost and either a price or a target, and the numbers update as you type.
Formula
Margin % = Profit / Selling price x 100
Markup % = Profit / Cost x 100
Price from margin = Cost / (1 - Margin %)
Margin vs markup: what is the difference?
Margin is profit as a share of the selling price. Markup is profit as a share of your cost. A product that costs $40 and sells for $100 has a 60% margin but a 150% markup. Mixing the two up is the most common pricing mistake, and it can leave you with far less profit than you planned.
Example
Cost $40, target margin 40%. Selling price = 40 / (1 - 0.40) = $66.67. Profit is $26.67, which is 40% of the price and about 66.7% markup.
Frequently asked questions
How do I calculate profit margin?
Subtract your cost from the selling price to get profit, then divide the profit by the selling price and multiply by 100. For example, a $100 price with a $40 cost gives $60 profit and a 60% margin.
What is a good profit margin?
It depends on the industry. Many retailers work with 20-50% gross margin, while software and service businesses often aim higher. Compare against your own sector and your fixed costs.
How do I find the selling price for a target margin?
Divide your cost by (1 minus the margin as a decimal). With a $40 cost and a 40% margin target, the price is $40 / 0.60 = $66.67.
Create a professional PDF invoice in seconds. Free, no signup, works offline.
Create an invoiceProfit Margin Calculator: Work Out Gross Margin, Markup and Selling Price
Knowing how much money is left after a sale is essential when setting prices for products, services and projects. Profit margin shows profit as a percentage of selling revenue, while markup shows profit as a percentage of cost. They are related but not interchangeable. This calculator helps you work out profit, margin, markup and the selling price required to reach a target margin or markup.
Profit margin formula
Profit margin (%) = (Profit / Selling price) × 100
If an item sells for $100 and costs $40, the profit before other expenses is $60. The gross profit margin is $60 / $100 × 100 = 60%. Margin answers: “What percentage of the selling price is profit?”
Markup formula and the difference from margin
Using the same $40 cost and $100 selling price, markup is $60 / $40 × 100 = 150%. The margin is 60%, not 150%. Margin uses selling price as its denominator; markup uses cost. Confusing the two can lead to prices that are far below your target profitability.
How to calculate a selling price from a target margin
Suppose your cost is $40 and you want a 40% gross margin. Divide $40 by (1 - 0.40): the selling price is $66.67. Profit is $26.67, which represents 40% of the selling price. This is different from adding a 40% markup, which would produce a $56 price and a margin of about 28.6%.
Worked comparison: 40% margin vs 40% markup
| Pricing method | Cost | Selling price | Profit | Margin |
|---|---|---|---|---|
| 40% target margin | $40.00 | $66.67 | $26.67 | 40.0% |
| 40% markup | $40.00 | $56.00 | $16.00 | 28.6% |
Gross margin is not the same as net profit
A simple product margin calculation usually subtracts the direct cost entered from the selling price. It may not include rent, payroll, marketing, payment fees, shipping, returns, insurance, software, income tax or other overhead. Net profit is what remains after the relevant operating expenses and other costs are accounted for. Use a full profit-and-loss statement to assess the overall health of a business.
Pricing checklist for small businesses
- Include the full direct cost per unit, not just the supplier's headline price.
- Account for packaging, shipping subsidies, payment fees, returns and wastage where relevant.
- Check competitor prices and customer willingness to pay; a target margin alone does not prove a price is marketable.
- Review discounts carefully because each discount reduces the realised margin.
- Recalculate when supplier costs, exchange rates or operating costs change.
Frequently asked questions
What is a good profit margin?
It varies widely by sector, business model, product mix and operating costs. Compare like-for-like businesses and distinguish gross margin from operating or net margin.
Can profit margin be more than 100%?
For a conventional positive selling price and non-negative cost, gross margin cannot exceed 100%. Markup can exceed 100% because it is measured against cost.
Does this calculator include tax or overhead?
It calculates from the cost and price values entered. Add all relevant costs yourself if you want a more complete contribution estimate; sales tax and VAT treatment also depends on your market.