Margin vs markup: how to calculate both, and why a 20% margin is not a 20% markup
Margin is the share of profit in the selling price: how much of every hundred in revenue is left after the cost of goods. Markup is calculated on cost instead, so for the same profit it always looks bigger. Mixing the two costs businesses real money.

On this page
- Two meanings of "margin"
- The formulas: margin and markup
- A worked example
- Conversion table and how not to slip
- How to set a price for a target margin
- Gross, operating and net margin
- Contribution margin and the break-even point
- Margin, profit and profitability: how they differ
- Common mistakes in the calculation
- Margin in trading: a different meaning
- How to calculate it in a spreadsheet
- Numbers you can see: the TASE dashboard
- What to do today
- Frequently asked questions
Two meanings of "margin"
When a shop owner says "our margin is 30 percent," they mean the business sense: the gap between the selling price and the cost of the goods. When a broker writes "margin required," they mean collateral for a leveraged trade. Same word, different meaning.
The rest of this piece is mostly about the first meaning, because it's the one people search for and confuse with markup. There's a short section on trading margin near the end.
The formulas: margin and markup
Profit on one sale is easy: price minus cost. But you can express it as a percentage in two ways.
- Margin is profit divided by the selling price. It answers "what part of my revenue do I keep?"
- Markup is profit divided by cost. It answers "by what percent did I raise the price over my costs?"
Both measure the same earnings, from different bases. That's why markup is bigger than margin for any profit.
A worked example
An item cost you 80 and you sell it for 100. Profit is 20.
Margin = 20 / 100 = 20 percent. Markup = 20 / 80 = 25 percent. The profit is the same, the numbers differ, and that isn't a mistake.
One more, for a shop: an item costs 1,000 and brings in 1,500. Profit is 500. Margin is 500 / 1,500 = 33.3 percent, markup is 500 / 1,000 = 50 percent.

Conversion table and how not to slip
The link between them: markup = margin / (1 minus margin), and margin = markup / (1 plus markup). A few ready pairs (rounded):
- 10 percent margin - 11.1 percent markup;
- 20 percent margin - 25 percent markup;
- 30 percent margin - 42.9 percent markup;
- 40 percent margin - 66.7 percent markup;
- 50 percent margin - 100 percent markup.
Notice how fast the gap grows? A 100 percent markup sounds big but gives only a 50 percent margin. If you want a 25 percent margin and add a 25 percent markup to cost, you end up with a margin of just 20. That's the most common beginner mistake.
How to set a price for a target margin
The formula: price = cost / (1 minus margin). Say cost is 80 and you want a 25 percent margin. Price = 80 / 0.75 = 106.67. Check: profit 26.67, margin 26.67 / 106.67 = 25 percent. It matches.
If you simply add a 25 percent markup, the price is 100 and the margin is 20. The price difference is small, but the margin is short by five points.
More on percentage math in general is in the article on calculating percentages.
Gross, operating and net margin
"Margin" often comes with a qualifier. It tells you the step at which you measure.
An example with illustrative numbers. Revenue is 10,000. Cost of goods sold is 6,000. Gross profit is 4,000, a gross margin of 40 percent. Operating expenses (rent, salaries, advertising) are 2,500. Operating profit is 1,500, an operating margin of 15 percent. Taxes and loan interest are 300. Net profit is 1,200, a net margin of 12 percent.
See how 40 turned into 12? A high gross margin doesn't mean the business earns well. It all depends on the costs below it. How the cost of goods itself is calculated is covered in the article on cost of goods sold.
Contribution margin and the break-even point
Contribution margin is revenue minus only variable costs, the ones that grow with every sale. Fixed costs like rent aren't included.
An example. The price is 100 and variable cost per unit is 60. Contribution per unit is 40, or 40 percent. Fixed costs are 2,000 a month. To break even you need to sell 2,000 / 40 = 50 units. That's the break-even point.
Margin, profit and profitability: how they differ
- Profit is an amount of money. For example, 500 from one sale.
- Margin is profit as a percentage of revenue (the price).
- Profitability is profit as a percentage of what was put in: costs, assets or capital, depending on the measure.
The same company can look different depending on which measure you pick. More on each: what profit is and what profitability is.
Common mistakes in the calculation
- Mixing up margin and markup and getting a price that doesn't deliver the percentage you wanted.
- Leaving out part of the cost. Packaging, shipping, marketplace fees and returns are costs too.
- Using the discounted price against the full-price cost and getting unrealistic numbers.
- Looking only at the percent. A 50 percent margin on a 10 item gives 5 of profit, a 10 percent margin on a 1,000 item gives 100. Money matters more than percentages.
- Forgetting taxes. They're calculated separately and by your country's rules.
An example with real-life costs (illustrative). Price 100, purchase cost 60, marketplace fee 15, shipping 8, a reserve for returns 5. Profit is 100 minus 60 minus 15 minus 8 minus 5 = 12. A margin of 12 percent, although by purchase cost alone it looked like 40. So the final calculation has to include every cost.
Margin in trading: a different meaning
In trading, "margin" is the amount you put up as collateral to open a position larger than your own money. It isn't a share of profit. If the price moves too far against the position, the collateral runs short and the exchange closes the position. How this works in practice is explained in the article on perpetual futures.
So when you see the word "margin," check the context: business or exchange.
How to calculate it in a spreadsheet
In Excel or Google Sheets, put cost in column A and price in column B. Margin as a percentage is =(B2-A2)/B2, markup is =(B2-A2)/A2, with the cell formatted as a percent. Drag the formula down to get every item. If you need to pull a price from a price list, VLOOKUP helps.
Numbers you can see: the TASE dashboard
Any calculation is good when the numbers are in front of you. In TASE, decisions come from proprietary algorithms and machine learning, and an independent AI module checks each signal. The system trades futures on Binance, Bybit, OKX and BingX around the clock, the API key is issued for trading only with no withdrawal rights, and every position is visible in the dashboard. Accounts start at $10,000. More in the transparency section. Exchange availability depends on your country, so check the terms before registering.
What to do today
Take one of your products or services and calculate both numbers, margin and markup, then check whether every cost is counted. Chances are the final margin comes out lower than it seemed. That's a good moment to revisit the price.
Educational material. Examples are illustrative; taxes and mandatory payments depend on the country and are not included.
Frequently asked questions
What is margin in simple terms?
It is the share of profit in the selling price. Margin = (price minus cost) / price. If an item cost 80 and sold for 100, profit is 20 and margin is 20 percent. So out of every hundred in revenue, twenty stays with you.
What is the difference between margin and markup?
Profit is measured from different bases. Margin is taken from the selling price, markup from cost. So for the same profit, markup is bigger: for 80 and 100, the margin is 20 percent and the markup is 25 percent.
How do I calculate margin as a percentage?
Subtract cost from price, divide the result by the price and multiply by 100. For example, a price of 1,500 and a cost of 1,000: (1,500 minus 1,000) / 1,500 = 33.3 percent. In a spreadsheet the formula looks like =(B2-A2)/B2.
How do I convert margin to markup?
Use markup = margin / (1 minus margin). A 20 percent margin gives 0.2 / 0.8 = 25 percent markup, and a 50 percent margin gives 100. To go back: margin = markup / (1 plus markup).
What is gross margin?
It is the share of revenue left after subtracting the cost of goods sold, but before rent, salaries and taxes. If revenue is 10,000 and the cost of goods is 6,000, the gross margin is 40 percent.
How is business margin different from margin in trading?
In business, margin shows the share of profit in the price. In trading, it is collateral for a leveraged position: the amount you put up to open a trade bigger than your own money. Same word, different meaning, so look at the context.
Educational content, not investment advice. Trading crypto and derivatives carries a high risk of losing all invested capital.



