Private by design. Calculations run in your browser; the numbers you enter are not sent to Q3 Labs.
Result
Enter the cost and the revenue to see your profit, margin and markup.
What is a profit margin calculator?
A profit margin calculator tells you how much of each sale you keep. You enter what something cost you and what you sold it for, and it works out the profit and the profit margin: the profit as a percentage of the selling price.
This calculator computes the simple margin on the figures you enter. It isn't a company's accounting net margin, which subtracts every expense, overheads, interest and tax included. See the FAQ below for how that differs from gross margin.
How to calculate profit margin
- Work out the profit: revenue − cost. For cost 600 and revenue 1,000, that's 400.
- Divide the profit by the revenue: 400 ÷ 1,000 = 0.4.
- Multiply by 100 to get a percentage: 0.4 × 100 = 40%.
Profit margin formula
Profit = Revenue − Cost
Profit margin = Profit ÷ Revenue × 100
Markup = Profit ÷ Cost × 100
Profit margin vs markup
These two are often confused, and mixing them up is one of the most common pricing mistakes. They describe the same profit, measured against different amounts:
Profit margin
"How much of the selling price is profit?"
Profit ÷ Revenue × 100
Markup
"How much was added on top of the cost?"
Profit ÷ Cost × 100
Say an item costs ₹60.00 and sells for ₹100.00, a profit of ₹40.00. The margin is ₹40.00 ÷ ₹100.00 × 100 = 40.00%, but the markup is ₹40.00 ÷ ₹60.00 × 100 = 66.67%. Same sale, two different percentages.
Margin can never reach 100% (the profit can't exceed the price), while markup has no upper limit. A 100% markup doubles the cost, but it is only a 50.00% margin.
| Profit margin | Equivalent markup |
|---|---|
| 10.00% | 11.11% |
| 20.00% | 25.00% |
| 25.00% | 33.33% |
| 33.33% | 49.99% |
| 40.00% | 66.67% |
| 50.00% | 100.00% |
| 60.00% | 150.00% |
| 75.00% | 300.00% |
How to calculate markup
Divide the profit by the cost and multiply by 100, or use the Markup Calculator, which also finds the selling price for a markup. To convert between the two: markup = margin ÷ (100 − margin) × 100, and margin = markup ÷ (100 + markup) × 100.
Profit margin examples
A profitable sale
- Cost
- ₹600.00
- Revenue
- ₹1,000.00
- Profit
- ₹400.00
- Margin
- 40.00%
- Markup
- 66.67%
A sale at a loss
- Cost
- ₹1,000.00
- Revenue
- ₹800.00
- Loss
- ₹200.00
- Margin
- -25.00%
- Markup
- -20.00%
A higher margin
- Cost
- $40.00
- Revenue
- $100.00
- Profit
- $60.00
- Margin
- 60.00%
- Markup
- 150.00%
In the last example, a 150% markup is a 60% margin: marking something up by 150% doesn't mean 150% of the price is profit.
How to calculate profit from cost and revenue
Profit is simply revenue minus cost. If the answer is negative, it's a loss.
You can also work backwards from a margin you want:
- Selling price for a target margin: price = cost ÷ (1 − margin ÷ 100). For a 40% margin on a cost of 600: 600 ÷ 0.6 = 1,000.00.
- Maximum cost for a target margin: cost = price × (1 − margin ÷ 100). To keep a 40% margin at a price of 1,000: 1,000 × 0.6 = 600.00.
A common mistake is adding the margin to the cost: 600 plus 40% is 840, which is only a 28.57% margin.
Profit vs revenue vs cost
- Revenue is the money received from sales: the selling price times the number sold.
- Cost is what it cost to make, buy or deliver what you sold. Which costs you include depends on the question you're asking.
- Profit is the difference between the two: revenue − cost.
Include only the direct cost of the item and you get a gross margin. Include overheads such as rent, salaries and marketing and the margin falls toward an operating or net margin. The calculator uses exactly the cost you enter.
Understanding a negative profit margin
A negative margin means a loss. Selling for ₹800.00 something that cost ₹1,000.00 loses ₹200.00, a margin of -25.00% and a markup of -20.00%. The calculator labels this result "Loss" and says so in words, so it's never shown as profit.
Frequently Asked Questions
How do I calculate profit margin?
What is the profit margin formula?
What is the difference between margin and markup?
How do I calculate markup?
Can profit margin be more than 100%?
What does a negative profit margin mean?
Why does it say the margin is not defined?
Is this the same as gross margin or net margin?
How do I find the selling price for a target margin?
Can I enter decimals and large numbers?
Does the currency selector convert currencies?
Are my numbers saved or sent anywhere?
Is this calculator free?
Explore more
Find how many sales you need to cover your costs with the Break-Even Point Calculator, work out a sale price and savings with the Percent Off Calculator, find a price before a change with the Reverse Percentage Calculator, or estimate what extra traffic could be worth with the SEO ROI Calculator. Browse all our free tools.
Keep exploring
Related services
- eCommerce MarketingGeneric marketing playbooks miss the details that actually move eCommerce revenue: margin, AOV, and repeat pu…
- eCommerce Website Development Company USAQ3 Labs is an eCommerce website development company serving brands across the USA, building Shopify, WooComme…
- AI Based RecommendationRecommendation systems that suggest the next product, article or course.
- Marketing & Development for eCommerceOnline stores live or die on a handful of specifics: catalog structure, checkout friction, and whether paid a…
- eCommerce DevelopmentCustom eCommerce builds for brands that have outgrown templates.
Guides & articles
- How to Get Your Business Cited in ChatGPT AnswersGetting cited in ChatGPT takes four things in a specific order, and most businesses fail at the first one wit…
Tools
- Percent Off CalculatorSee how much a percentage discount saves and the final sale price, with the formula and every step shown.
- Salary Increase CalculatorCalculate a salary increase and new salary from a raise percentage, or the percentage change between an old a…
More from Q3 Labs
- Free ToolsFree marketing and website tools from Q3 Labs.