Quick Answer: The profit margin formula is profit divided by revenue, multiplied by 100. You can rearrange it to find a selling price from cost and a target margin, or the cost from price and margin. This guide explains gross, operating and net margin with Indian rupee examples and shows how margin differs from markup.
Key takeaways:
- Profit margin = (selling price – cost) / selling price x 100.
- Selling price for a target margin = cost / (1 – margin).
- Gross, operating and net margin use different costs.
- A 25% markup equals a 20% margin, not 25%.
- Always remove GST before using the formula.
The Profit Margin Formula in Plain Words
The profit margin formula looks simple, but small changes in how you use it can give very different answers. This article explains each version of the formula, shows how to rearrange it to find a selling price or a cost, and works through examples in rupees.
If you run a shop, sell online, offer a service or study commerce in Class 11 and 12, these formulas will help you price better and read your accounts with confidence.
The Basic Formula
Profit margin (%) = (Profit / Revenue) x 100
Here, profit is revenue minus cost, and revenue is the selling price before GST. So the full formula is:
Profit margin (%) = ((Selling price – Cost price) / Selling price) x 100
For a pen sold at Rs 50 that cost Rs 40, profit is Rs 10 and the margin is 10 / 50 x 100 = 20%.
Gross, Operating and Net Margin Formulas
| Margin | Formula | Costs included |
|---|---|---|
| Gross margin | (Revenue – COGS) / Revenue x 100 | Direct cost of goods only |
| Operating margin | (Revenue – COGS – Operating expenses) / Revenue x 100 | Goods plus running costs |
| Net margin | Net profit / Revenue x 100 | All costs, interest and tax |
Indian accounting guides, such as Tally’s net profit margin guide, use these same definitions. Under Indian rules, income tax and interest are deducted before you reach net profit.
Expert insight: When someone says profit margin without more detail, ask which one they mean. A seller quoting gross margin and a banker reading net margin can both be correct and still talk about very different numbers.
Rearranging the Formula
Once you know the basic formula, you can rearrange it to answer other questions.
Find the selling price from cost and target margin
Selling price = Cost / (1 – Margin as a decimal)
If cost is Rs 700 and you want a 30% margin, selling price = 700 / (1 – 0.30) = 700 / 0.70 = Rs 1,000.
Find the cost from selling price and margin
Cost = Selling price x (1 – Margin as a decimal)
If you sell at Rs 2,500 with a 24% margin, cost = 2,500 x 0.76 = Rs 1,900.
Find the profit in rupees
Profit = Selling price x Margin as a decimal
For a Rs 4,000 sale at a 15% margin, profit = 4,000 x 0.15 = Rs 600.
Margin vs Markup Formula
Markup (%) = (Profit / Cost) x 100. The two are linked: Markup = Margin / (1 – Margin), and Margin = Markup / (1 + Markup). A 20% margin equals a 25% markup, and a 50% margin equals a 100% markup. If your goal is to price from cost, our discount calculator helps you see how a sale price cuts into your margin later.
Worked Example 1: Pricing a Saree
A saree seller in Varanasi buys a silk saree for Rs 3,200 and wants a 25% profit margin.
Selling price = 3,200 / (1 – 0.25) = 3,200 / 0.75 = Rs 4,266.67, or about Rs 4,267.
Check: profit = 4,267 – 3,200 = Rs 1,067. Margin = 1,067 / 4,267 x 100 = 25%. Good.
Notice that adding 25% to cost would give Rs 4,000, which is only a 20% margin. This is the most common pricing error in small shops.
Worked Example 2: Restaurant Net Margin
A small restaurant in Hyderabad has monthly sales of Rs 8,00,000. Food and drink cost is Rs 2,80,000, staff pay is Rs 2,00,000, rent is Rs 80,000, and other costs, such as gas, electricity and delivery fees, are Rs 1,20,000. Tax is Rs 30,000.
Gross profit = 8,00,000 – 2,80,000 = Rs 5,20,000. Gross margin = 65%.
Operating profit = 5,20,000 – (2,00,000 + 80,000 + 1,20,000) = Rs 1,20,000. Operating margin = 15%.
Net profit = 1,20,000 – 30,000 = Rs 90,000. Net margin = 90,000 / 8,00,000 x 100 = 11.25%.
The 65% gross margin looks strong, but only 11.25% reaches the owner. This shows why you need all three numbers.
Worked Example 3: Margin After a Commission
A freelance trainer in Pune charges Rs 20,000 for a corporate workshop. A training platform takes a 15% commission and her direct costs for materials and travel are Rs 5,000.
Commission = 20,000 x 0.15 = Rs 3,000. Total cost = 3,000 + 5,000 = Rs 8,000.
Profit = 20,000 – 8,000 = Rs 12,000. Margin = 12,000 / 20,000 x 100 = 60%.
Platform commissions are treated as a cost in margin calculations. If you want to compare the effect of different commission rates, try a commission calculator and rerun the margin each time.
Worked Example 4: Cost Rise and the New Price
A packaged snacks maker in Jaipur sells a pack at Rs 100 with a cost of Rs 70, so the margin is 30%. Palm oil prices rise and the cost goes up by 10% to Rs 77.
If the price stays at Rs 100, profit falls to Rs 23 and the margin to 23%. To keep a 30% margin, the new price must be 77 / 0.70 = Rs 110. That is a price rise of 10%, but customers may resist it. The maker may choose a middle path, such as Rs 105 with a margin of 26.7%, or reduce the pack weight a little. Having the formula at hand lets the owner compare these choices in minutes.
What Margin Do You Need to Break Even?
Break-even means profit of zero. If your fixed monthly costs are Rs 60,000 and your gross margin is 30%, you need sales of 60,000 / 0.30 = Rs 2,00,000 to cover those costs. Anything above that gives profit. If your gross margin falls to 25%, break-even sales rise to Rs 2,40,000. This simple use of the margin formula tells you how many sales you need each month, and it is one of the most practical numbers for a new shop owner.
Formula Cheat Sheet
| You want | Formula | Example |
|---|---|---|
| Margin % | (Price – Cost) / Price x 100 | (500 – 400) / 500 = 20% |
| Markup % | (Price – Cost) / Cost x 100 | (500 – 400) / 400 = 25% |
| Price from margin | Cost / (1 – margin) | 400 / 0.8 = Rs 500 |
| Price from markup | Cost x (1 + markup) | 400 x 1.25 = Rs 500 |
| Break-even sales | Fixed costs / margin | 60,000 / 0.30 = Rs 2,00,000 |
Benefits of Using the Formulas Correctly
Correct formulas protect you from underpricing. When you work backwards from a target margin, you set prices that cover all costs and still leave a profit. This matters most when costs rise, because you can quickly work out the new price needed to keep the same margin.
The formulas also help you compare products and business lines on equal terms. A Rs 100 profit on a Rs 400 item is a 25% margin, while a Rs 150 profit on a Rs 1,000 item is 15%, so the first product is more efficient even though the second earns more rupees per sale. Lenders and investors read margins in the same way, so using standard formulas makes your numbers believable.
Challenges and Limitations
Formulas are only as good as the data you put in. If your cost records are incomplete, even a perfect formula gives a wrong answer. Allocating shared costs, such as rent for a shop that sells many items, takes judgment and is rarely exact.
Margin also hides volume. A 5% margin on huge sales can earn more rupees than a 40% margin on a handful of orders. Finally, the formulas look backwards. They describe what happened, not what will happen if prices, taxes or demand change, so use them with a forecast.
Common Mistakes to Avoid
- Adding the margin percentage to cost. A 25% margin is not cost plus 25%. Divide cost by (1 – 0.25) instead.
- Using price with GST. Always remove GST first. An 18% GST inclusive price must be divided by 1.18.
- Mixing percentage points and percent. A fall from 20% to 15% is 5 percentage points, or a 25% drop in margin.
- Leaving out returns and discounts. Net revenue should be after discounts and refunds.
- Treating gross margin as final profit. Overheads and tax still have to be paid from it.
Best Practices and Expert Recommendations
- Write the formula before you start. A clear starting point stops you from mixing margin and markup.
- Keep costs complete. Include packing, delivery, payment fees and wastage in your cost price.
- Round only at the end. Use full decimals during the calculation and round the final answer to two places.
- Test your price both ways. After you set a price from a target margin, work forward to check that the margin comes out right.
- Review after any cost change. When a supplier raises prices, recalculate your selling price the same day.
- Note the Reserve Bank context. If you accept digital payments, add UPI or gateway costs where they apply, and check current norms on rbi.org.in.
Try It Yourself
Enter any cost and selling price into our free profit margin calculator to see margin, markup and profit at once. Then change the selling price to find the point where your margin hits your target.
Conclusion
The core formula is profit divided by revenue, times 100, and every other version comes from it. Learn how to rearrange it for price, cost and profit, keep GST out of your numbers, and do not mix it with markup. With these habits, you will price with confidence and read your business results correctly.
Related tools & guides on DigiToolkit
- Try the free Profit Margin Calculator →
- How to Calculate Profit Margin Step by Step in India
- What Is Profit Margin? A Simple Guide for Indian Businesses
- Profit Margin Calculator: Free Online Tool and Guide
- Profit Margin Examples for Beginners in India
- Price Formula Explained with Examples (Margin, Markup, Discount, GST)
- Price Calculation Examples for Beginners (12 Solved Rupee Examples)
- More Business & Commerce guides
FAQs
What is the profit margin formula?
Profit margin equals profit divided by revenue, multiplied by 100. Profit is selling price minus cost. For a Rs 500 sale with Rs 350 cost, the margin is 150 / 500 x 100 = 30%.
How do I find the selling price for a target margin?
Divide your cost by one minus the margin as a decimal. For Rs 600 cost and a 20% margin, the price is 600 / 0.80 = Rs 750.
How is margin different from markup?
Margin uses selling price as the base, while markup uses cost. A 20% margin is the same as a 25% markup. Mixing them leads to wrong pricing.
What is the difference between gross and net margin?
Gross margin subtracts only the direct cost of goods. Net margin subtracts all costs, including rent, wages, interest and tax. Net margin is always lower than or equal to gross margin.
Should GST be part of revenue in the formula?
No. GST collected is not your income, so use the selling price without GST. If your price includes 18% GST, divide it by 1.18 first.