The Margin Calculator helps you calculate profit margin, markup, profit, and the selling price needed to achieve a specific margin. Enter your cost price and selling price to see how much profit you make and what percentage of the selling price represents your profit.
Margin Calculator
Calculate profit margin, markup, and selling price from cost and selling price.
You can also use the calculator in reverse. If you know your cost and the margin you want to earn, you can find the required selling price. If you already know your selling price and target margin, you can calculate the maximum cost you can pay while maintaining that margin.
What Is Profit Margin?
Profit margin is the percentage of your selling price that remains as profit after subtracting the cost. It is useful when you want to understand how much of the money received from a sale is actually profit.
For example, suppose you buy a product for ₹800 and sell it for ₹1,000. Your profit is ₹200.
The profit margin is calculated using the selling price:
Profit Margin = (Profit ÷ Selling Price) × 100
So:
₹200 ÷ ₹1,000 × 100 = 20%
Your profit margin is therefore 20%.
This is different from saying that you made a 25% profit on your cost. That calculation is called markup, which uses the cost price as its base.
How to Calculate Profit Margin
To calculate profit margin, you need two values:
- Cost Price
- Selling Price
First, find the profit:
Profit = Selling Price − Cost Price
Then calculate the margin:
Profit Margin = (Profit ÷ Selling Price) × 100
For example:
- Cost Price = ₹500
- Selling Price = ₹750
- Profit = ₹250
Therefore:
Profit Margin = (₹250 ÷ ₹750) × 100 = 33.33%
The profit margin is 33.33%.
The important point is that profit margin is calculated using the selling price, not the cost price. This is one of the most common sources of confusion when calculating margin percentage.
Profit Margin Formula
The standard profit margin formula is:
Profit Margin % = [(Selling Price − Cost Price) ÷ Selling Price] × 100
You can use this formula whenever you know the cost and selling price of a product or service.
For example, if the cost is ₹1,200 and the selling price is ₹1,500:
Profit = ₹1,500 − ₹1,200 = ₹300
Profit Margin = ₹300 ÷ ₹1,500 × 100 = 20%
So the profit margin is 20%.
If you do not want to calculate the formula manually, enter the two values into our margin calculator and it will show the result along with the calculation steps.
Profit Margin vs Profit Percentage
The Profit margin and profit percentage are often used interchangeably, but they are calculated using different bases.
Profit Percentage = (Profit ÷ Cost Price) × 100
Profit Margin = (Profit ÷ Selling Price) × 100
For example, if a product costs ₹800 and sells for ₹1,000:
- Profit = ₹200
- Profit percentage = ₹200 ÷ ₹800 × 100 = 25%
- Profit margin = ₹200 ÷ ₹1,000 × 100 = 20%
Both numbers describe the same ₹200 profit, but they answer different questions.
Profit percentage tells you how much profit you earned compared with what you spent. Profit margin tells you how much of the selling price is profit.
What Is Markup?
Markup is the percentage added to the cost price to arrive at the selling price.
The markup formula is:
Markup % = (Profit ÷ Cost Price) × 100
Suppose a product costs ₹800 and is sold for ₹1,000.
The profit is ₹200.
Therefore:
Markup = ₹200 ÷ ₹800 × 100 = 25%
The product has a 25% markup and a 20% profit margin.
This is why markup and margin should not be treated as the same percentage.
Margin vs Markup
The easiest way to remember the difference is to look at the base used in the calculation.
| Calculation | Formula | Example |
|---|---|---|
| Profit | Selling Price − Cost Price | ₹200 |
| Profit Margin | Profit ÷ Selling Price × 100 | 20% |
| Markup | Profit ÷ Cost Price × 100 | 25% |
With a cost of ₹800 and a selling price of ₹1,000, the markup is higher than the margin because the two percentages use different bases.
If you are setting a product price, markup can help you determine how much to add to your cost. If you are analysing the profitability of your sales, margin tells you what percentage of your revenue remains after the relevant cost.
Gross Profit Margin
Gross profit margin measures the percentage of revenue remaining after the cost of goods sold (COGS) has been deducted.
The gross profit margin formula is:
Gross Profit Margin % = [(Revenue − COGS) ÷ Revenue] × 100
For a simple product sale, the selling price can represent revenue and the product cost can represent COGS.
For example:
- Revenue = ₹1,000
- COGS = ₹600
- Gross Profit = ₹400
Therefore:
Gross Profit Margin = ₹400 ÷ ₹1,000 × 100 = 40%
The gross profit margin is 40%.
For a simple product calculation, you can use our calculator by entering the cost of the product as the cost price and the selling price as the selling price.
Gross Margin vs Profit Margin
The terms gross margin and profit margin can refer to different levels of a business’s profitability.
Gross margin generally looks at revenue after deducting the direct cost of producing or purchasing the goods or services. It does not normally include expenses such as salaries, rent, marketing, interest, or taxes.
A broader profit margin calculation may refer to profit after additional expenses have been considered.
For a simple product sale, however, the margin calculation is straightforward: compare the profit from the sale with the selling price.
This distinction becomes important when analysing an entire business rather than a single product.
How to Calculate Gross Profit Margin
To calculate gross profit margin, start with revenue and the cost of goods sold.
Gross Profit = Revenue − COGS
Then:
Gross Profit Margin = (Gross Profit ÷ Revenue) × 100
For example, a business has ₹5,00,000 in revenue and ₹3,00,000 in COGS.
Gross Profit = ₹5,00,000 − ₹3,00,000 = ₹2,00,000
Gross Profit Margin = ₹2,00,000 ÷ ₹5,00,000 × 100 = 40%
The gross profit margin is 40%.
How to Find Selling Price From a Desired Margin
Sometimes you know how much a product costs but do not know what selling price will give you the margin you want.
For example, suppose your cost is ₹800 and you want a 20% profit margin.
The selling price is not calculated by simply adding 20% to ₹800. That would give you ₹960, but ₹160 profit on ₹960 is only a 16.67% margin.
To achieve a true 20% margin, use:
Selling Price = Cost Price ÷ (1 − Margin ÷ 100)
For ₹800 and a 20% target margin:
₹800 ÷ (1 − 20 ÷ 100) = ₹1,000
Therefore, you need a selling price of ₹1,000 to achieve a 20% margin.
Our calculator can work this out automatically.
How to Find Cost Price From a Desired Margin
The calculation can also work in the opposite direction.
If you know your selling price and the margin you want, you can calculate the maximum cost that allows you to maintain that margin.
The formula is:
Cost Price = Selling Price × (1 − Margin ÷ 100)
For example, if your selling price is ₹2,000 and you want a 25% margin:
Cost Price = ₹2,000 × (1 − 25 ÷ 100)
Cost Price = ₹1,500
This means the cost needs to be ₹1,500 or less to achieve a 25% margin at a ₹2,000 selling price.
Margin Calculation Example
Suppose you purchase an item for ₹1,500 and sell it for ₹2,000.
Profit:
₹2,000 − ₹1,500 = ₹500
Profit Margin:
₹500 ÷ ₹2,000 × 100 = 25%
Markup:
₹500 ÷ ₹1,500 × 100 = 33.33%
So the same transaction has:
- ₹500 profit
- 25% profit margin
- 33.33% markup
This example shows why it is important to specify whether you are talking about margin or markup.
Margin Calculation Table
The following examples show how cost, selling price, profit, margin, and markup are connected.
| Cost Price | Selling Price | Profit | Profit Margin | Markup |
|---|---|---|---|---|
| ₹500 | ₹600 | ₹100 | 16.67% | 20% |
| ₹500 | ₹750 | ₹250 | 33.33% | 50% |
| ₹800 | ₹1,000 | ₹200 | 20% | 25% |
| ₹1,000 | ₹1,500 | ₹500 | 33.33% | 50% |
| ₹2,000 | ₹2,500 | ₹500 | 20% | 25% |
The table also demonstrates that the same markup does not always correspond to the same margin formula unless the relationship between cost and selling price is considered.
Why Is Profit Margin Important?
Profit margin gives you a percentage-based way to understand profitability instead of looking only at the amount of profit.
A ₹500 profit might appear attractive on its own, but its meaning changes depending on the selling price. A ₹500 profit on ₹1,000 in sales represents a 50% margin, while ₹500 profit on ₹5,000 in sales represents a 10% margin.
This makes margin useful when comparing different products, sales, or pricing scenarios where the absolute profit amounts are different.
What Is a Good Profit Margin?
There is no single profit margin that is considered good for every product or business.
A suitable margin depends on factors such as the type of product, operating costs, competition, sales volume, and the difference between direct and indirect expenses.
For example, a business selling high-volume products may work with a different margin structure from a business selling specialised products. Therefore, a margin percentage should be considered together with the costs and business model rather than viewed on its own.
Frequently Asked Questions
Subtract the cost price from the selling price to find the profit. Then divide the profit by the selling price and multiply by 100.
Profit Margin = (Profit ÷ Selling Price) × 100
The profit margin formula is:
Profit Margin % = [(Selling Price − Cost Price) ÷ Selling Price] × 100
Margin is calculated using the selling price as the base, while markup is calculated using the cost price.
Margin = Profit ÷ Selling Price × 100
Markup = Profit ÷ Cost Price × 100
No. A 20% margin and a 20% markup produce different selling prices because they use different bases.
For example, with a ₹1,000 cost, a 20% markup gives a selling price of ₹1,200. A 20% margin requires a selling price of ₹1,250.
Divide the cost by 0.80.
For example, if the cost is ₹800:
₹800 ÷ 0.80 = ₹1,000
A selling price of ₹1,000 gives a ₹200 profit, which is a 20% margin.
Subtract COGS from revenue to get gross profit, then divide gross profit by revenue and multiply by 100.
Gross Profit Margin = [(Revenue − COGS) ÷ Revenue] × 100
Yes. If you know the cost and your desired margin, use:
Selling Price = Cost Price ÷ (1 − Margin ÷ 100)
The second mode of this calculator performs this calculation for you.
Yes. Enter the selling price and your desired margin. The calculator will determine the maximum cost price that allows you to maintain that margin.
Profit percentage normally compares profit with cost price, while profit margin compares profit with selling price.