# Profit margin calculator: how to work out margin, profit and markup, and set a price for a target margin

> Margin and markup sound alike but give different percentages for the same sale. This guide shows how to calculate profit, margin and markup from cost and selling price, and how to find the price that gives the margin you want.

Published 2026-10-09 by Toolcloak. 3 minute read. Original: https://toolcloak.pages.dev/articles/profit-margin-calculator-how-to-work-out-margin-profit-and-markup-and-set-a-price-for-a-target-margin
Related free tool: [Profit Margin Calculator](https://toolcloak.pages.dev/tools/profit-margin-calculator)

**Profit margin** tells you what share of the selling price is profit. **Markup** tells you how much you added on top of the cost. They use the same two numbers, cost and selling price, but divide by different things, so the same sale shows a margin of 25% and a markup of 33%. Mixing them up is one of the commonest pricing mistakes.

> **In short**
> - **Profit = selling price − cost.**
> - **Margin = profit ÷ selling price × 100.** **Markup = profit ÷ cost × 100.**
> - Cost ₹600 and selling price ₹800 give profit ₹200, a margin of **25.00%** and a markup of **33.33%**.
> - To get a **30% margin** on a cost of ₹600, the price is cost ÷ (1 − 0.30) = **₹857.14**.

## The formulas, step by step

**Example: cost ₹600, selling price ₹800**

1. **Find the profit.** ₹800 − ₹600 = **₹200**.
2. **Margin on the selling price.** ₹200 ÷ ₹800 × 100 = **25.00%**.
3. **Markup on the cost.** ₹200 ÷ ₹600 × 100 = **33.33%**.
4. **Price for a 30% margin.** ₹600 ÷ (1 − 0.3) = **₹857.14**.

*Enter a target margin in the optional field and the tool also shows the price that would give it. If the selling price is below cost it says you are selling at a loss.*

Try it: [Profit Margin Calculator](https://toolcloak.pages.dev/tools/profit-margin-calculator). Enter your cost and selling price, and an optional target margin, to see profit, margin, markup and the target price.

## Margin and markup are not the same

**The same sale, two percentages**

| Margin | Markup |
| --- | --- |
| 25% | 33.3% |
| ₹200 profit out of ₹800 sold | ₹200 profit on a ₹600 cost |
| Divides by the selling price | Divides by the cost |
| Can never reach 100% | Can go above 100% |

*Margin is always the smaller number for a profitable sale, because the selling price is larger than the cost.*

| Markup on cost | Selling price for a ₹600 cost | Margin you actually get |
| --- | --- | --- |
| 10% | ₹660 | 9.1% |
| 25% | ₹750 | 20.0% |
| 50% | ₹900 | 33.3% |
| 100% | ₹1,200 | 50.0% |

*A 50% markup is a 33.3% margin, and a 100% markup (doubling the cost) is a 50% margin.*

## Going the other way: from the margin you want to a price

If you want a given margin, do not just add that percentage to the cost. A 30% markup gives only a 23% margin. The right formula is **price = cost ÷ (1 − margin)**. That is why the tool asks for the target margin and gives you the price.

| Target margin | Price for a ₹600 cost | Same thing as a markup of |
| --- | --- | --- |
| 20% | ₹750.00 | 25.0% |
| 30% | ₹857.14 | 42.9% |
| 40% | ₹1,000.00 | 66.7% |
| 50% | ₹1,200.00 | 100.0% |

*Targets above 50% need the price to be more than double the cost. A margin of 100% is impossible, and the tool rejects it.*

**Price needed on a ₹600 cost, by target margin (₹)**

|  | Selling price |
| --- | --- |
| 20% | ₹750 |
| 30% | ₹857 |
| 40% | ₹1,000 |
| 50% | ₹1,200 |

*Each extra 10 points of margin needs a bigger price jump than the one before it.*

## What the margin leaves out

- **Other costs.** If cost means only the purchase or production cost, this is a gross margin. Rent, wages, delivery, payment fees and returns come out of it.
- **Tax.** Enter prices without GST, or with it on both sides, so that the tax does not distort the margin.
- **Discounts.** A sale price that is lower than the list price changes the margin. Use the price the customer actually pays.
- **Volume.** A low margin on a fast-moving product can earn more in total than a high margin on a slow one.

> **Check which one a quote means:** When a supplier or a colleague says '30% profit', ask whether it is on cost or on selling price. The same words can mean a price that differs by several percent.

**The example sale in four numbers**

|  | Value | Note |
| --- | --- | --- |
| Profit | ₹200 | ₹800 − ₹600 |
| Margin | 25.00% | Profit ÷ selling price |
| Markup | 33.33% | Profit ÷ cost |
| Price for 30% margin | ₹857.14 | Cost ÷ (1 − 0.30) |

*Use the margin to compare products and the markup to set a price from a known cost.*

## A pricing routine

1. **List the full cost** of one unit, not just the purchase price.
2. **Decide the margin** you need to cover running costs and leave a profit.
3. **Work out the price** with cost ÷ (1 − margin).
4. **Check it against the market,** and against what customers will pay.
5. **Recalculate** whenever your costs or discounts change.

## Frequently asked questions

### How do I calculate profit margin?

Subtract the cost from the selling price to get the profit, divide by the selling price and multiply by 100. For a cost of 600 and a selling price of 800, the margin is 200 ÷ 800 = 25%.

### What is the difference between margin and markup?

Margin divides profit by the selling price. Markup divides profit by the cost. For the same sale the markup is always larger, 33.33% against 25% in this example.

### How do I find the selling price for a target margin?

Divide the cost by one minus the margin as a decimal. For a cost of 600 and a margin of 30%, the price is 600 ÷ 0.70 = 857.14.

### Can the margin be more than 100%?

No. Profit can never be more than the selling price, so margin stays below 100%. Markup can be above 100% when the price is more than double the cost.

### What happens if I sell below cost?

The profit and the margin become negative, and the tool tells you that you are selling at a loss.

### Is this the same as the markup calculator?

It shows both numbers. If you only need to add a markup to a cost, the [Markup and Margin Calculator](https://toolcloak.pages.dev/tools/markup-margin-calculator) is built for that. The [Profit Margin Calculator](https://toolcloak.pages.dev/tools/profit-margin-calculator) also finds the price for a target margin.

