Profit Margin Calculator
Profit margin tells you what percentage of your revenue is profit. Markup tells you how much above your cost you are charging. This calculator computes both from your revenue and cost figures, which is the starting point for pricing products and checking whether a line of business pays for itself.
Your numbers
- Gross profit
- ₹20,000
- Markup
- 66.67%
How to calculate profit margin
Enter the revenue, meaning the selling price or total sales, and the cost of the goods sold. The calculator first subtracts cost from revenue to get gross profit. It then divides that profit by revenue and multiplies by 100 to give the margin, the share of every sale you keep. Separately, it divides the same profit by cost and multiplies by 100 to give the markup, how far above cost you priced. Both use the same profit figure but a different base, so markup is always the larger number when there is a profit. If cost exceeds revenue, gross profit and both percentages come out negative, which signals you are selling at a loss. The margin and markup are shown to two decimal places.
Gross profit = Revenue - Cost | Margin = (Profit / Revenue) x 100 | Markup = (Profit / Cost) x 100Worked example. Revenue of 50,000 and cost of 30,000 gives a gross profit of 20,000, a 40% margin and a 66.67% markup.
Pricing to hit a target margin
To set a price that delivers a chosen margin, divide the cost by (1 minus the margin as a decimal). With a cost of 30,000 and a target margin of 40%, the price is 30,000 / 0.60 = 50,000. A frequent mistake is to add 40% to the cost instead, which gives 42,000 and a margin of only 28.57%. That gap is why margin and markup must not be swapped. The conversions are simple: margin = markup / (1 + markup), and markup = margin / (1 - margin). A 25% markup gives a 20% margin, a 50% markup gives 33.33%, and a 100% markup (doubling the cost) gives exactly 50%. Going the other way, a 30% margin needs a 42.86% markup.
How discounts eat into margin
A discount comes straight out of profit, so it hurts margin more than the headline percentage suggests. Take the default example: price 50,000, cost 30,000, margin 40%. A 10% discount drops the price to 45,000 while the cost stays at 30,000. Profit falls from 20,000 to 15,000, a 25% cut, and the margin drops to 33.33%. To earn the same 20,000 profit at the discounted price you would need to sell a third more units. Run the discounted price through the calculator before agreeing to a promotion, and compare the extra volume you expect against the volume you would need.
Gross, operating and net margin
This calculator returns gross margin, because the cost you enter is the direct cost of the item: materials, purchase price or production labour. It does not include rent, salaries, marketing, interest or tax. Operating margin subtracts those running costs as well, and net margin subtracts everything, including interest and tax. A shop with a healthy 40% gross margin can still post a 5% net margin once overheads are paid. When you compare yourself with an industry benchmark, check which margin the benchmark uses. To estimate operating or net margin here, enter all the relevant costs combined in the cost field, keeping in mind that the markup figure then loses its usual meaning.
Questions people ask
What is the difference between margin and markup?
Margin is profit divided by revenue. Markup is profit divided by cost. A 50% markup produces only a 33.3% margin, so they are very different numbers for the same transaction.
What is a good profit margin?
It varies by industry. Retail typically runs 20-50% gross margin, SaaS software can exceed 70%, manufacturing often 30-50%. Compare against industry benchmarks rather than an absolute target.
How do I calculate selling price from cost and margin?
Divide the cost by (1 - margin). For a cost of 600 and a 25% target margin, the price is 600 / 0.75 = 800, which leaves 200 profit, exactly 25% of the price.
Can a profit margin be more than 100%?
No. Margin is profit as a share of revenue, and profit can never exceed revenue, so the maximum is just under 100%. Markup has no ceiling: selling something that cost 100 for 500 is a 400% markup but an 80% margin.
Why is my margin negative?
A negative margin means the cost you entered is higher than the revenue, so every sale loses money. Check that the cost is per unit if the revenue is per unit, or that both are totals for the same period.
Read the guide
Put this calculator on your site
Free to use on any site. Please keep the credit link.
<iframe
id="letmecalc-profit-margin-calculator"
src="https://letmecalc.com/embed/finance/profit-margin-calculator"
title="Profit Margin Calculator"
width="100%"
height="620"
style="border:0;max-width:100%"
loading="lazy"
></iframe>
<p><a href="https://letmecalc.com/finance/profit-margin-calculator" target="_blank" rel="noopener">Profit Margin Calculator</a> by letmecalc</p>
<script>
(function () {
var f = document.getElementById("letmecalc-profit-margin-calculator");
window.addEventListener("message", function (e) {
if (e.origin !== "https://letmecalc.com") return;
if (!f || e.source !== f.contentWindow) return;
var d = e.data;
if (!d || d.source !== "letmecalc-embed" || d.type !== "resize") return;
if (typeof d.height === "number" && d.height > 0) {
f.style.height = d.height + "px";
}
});
})();
</script>