Margin vs markup
Learn the difference between margin and markup, how to calculate each, and how to price for your target margin.
Published Wednesday 30 September 2026
Table of contents

Key takeaways
- Margin measures profit as a percentage of the selling price, while markup measures profit as a percentage of cost
- A 50% markup gives you a 33.3% margin, and a 50% margin needs a 100% markup
- Markup helps you set prices, while margin helps you report on and benchmark profitability
- To hit a target margin, price with Price = Cost ÷ (1 − target margin) instead of adding the margin percentage to cost
Margin vs markup: what is the difference?
Margin is profit as a percentage of your selling price, while markup is profit as a percentage of your cost. Both start with the same profit figure: selling price minus cost of goods sold (COGS).
The only difference is the number you divide by, which is why the two percentages always differ for the same sale. Here’s how they compare:
- Margin divides profit by the selling price; markup divides profit by cost
- Margin shows the share of revenue you keep; markup shows how much you added to cost
- Markup is always the higher percentage for the same profitable sale
- A 30% markup on a RM100 cost gives a RM130 price and a 23.1% margin
- Markup suits pricing decisions; margin suits financial reporting
When someone quotes a single percentage, check which measure they mean. The answer changes your profit expectations.
What is margin?
Margin is the share of your selling price you keep as profit: Margin = (Revenue − COGS) ÷ Revenue × 100. It’s often called gross profit margin, and it shows how much of every ringgit in revenue you keep.
Say you buy a product for RM100 and sell it for RM130. Your profit is RM30, so you divide RM30 by the RM130 selling price.
Margin = (RM130 − RM100) ÷ RM130 × 100 = 23.1%
That means 23.1% of the revenue from this sale is profit.
What is markup?
Markup is the percentage you add on top of your cost to reach a selling price: Markup = (Revenue − COGS) ÷ COGS × 100. It shows how much more you charge than you paid.
Using the same example, you buy a product for RM100 and sell it for RM130. Your profit is still RM30, but this time you divide it by the RM100 cost.
Markup = (RM130 − RM100) ÷ RM100 × 100 = 30%
That means you marked up the product by 30% above your cost.
How to calculate margin and markup
You can calculate both margin and markup once you know the cost and the selling price. The examples below use a product that costs RM100 and sells for RM150.
How to calculate margin
Follow these four steps to find your gross profit margin on any product or service. If you’d rather skip the maths, a margin calculator does it for you.
- Start with your selling price, which is RM150 in this example.
- Subtract your COGS to find gross profit: RM150 − RM100 = RM50.
- Divide the gross profit by the selling price: RM50 ÷ RM150 = 0.333.
- Multiply by 100 to get the percentage: 0.333 × 100 = 33.3% margin.
How to calculate markup
Follow these four steps to find the markup on the same product. You can also check your answer with a markup calculator.
- Start with your COGS, which is RM100 in this example.
- Subtract the cost from the selling price to find gross profit: RM150 − RM100 = RM50.
- Divide the gross profit by the cost: RM50 ÷ RM100 = 0.50.
- Multiply by 100 to get the percentage: 0.50 × 100 = 50% markup.
The same RM50 profit produces a 33.3% margin and a 50% markup. The gap comes entirely from the number you divide by.
How to set a price from a target margin
To hit a set margin, use Price = Cost ÷ (1 − target margin). This reverse formula is the starting point for many pricing strategies. These four steps show how it works for a RM100 product with a 40% target.
- Write your target margin as a decimal: 40% = 0.40.
- Subtract it from 1: 1 − 0.40 = 0.60.
- Divide your cost by the result: RM100 ÷ 0.60 = RM166.67.
- Check the margin: (RM166.67 − RM100) ÷ RM166.67 × 100 = 40%.
Markup to margin conversion chart
To convert markup to margin, use Margin = Markup ÷ (1 + Markup), with the percentage written as a decimal. Here are common markup percentages with their matching margins:
- 10% markup = 9.1% margin
- 15% markup = 13% margin
- 20% markup = 16.7% margin
- 25% markup = 20% margin
- 30% markup = 23.1% margin
- 33.3% markup = 25% margin
- 40% markup = 28.6% margin
- 50% markup = 33.3% margin
- 75% markup = 42.9% margin
- 100% markup = 50% margin
- 150% markup = 60% margin
- 200% markup = 66.7% margin
To go the other way, use Markup = Margin ÷ (1 − Margin). For example, a 25% margin converts to 0.25 ÷ (1 − 0.25) = 0.333, or a 33.3% markup.
When to use margin vs markup
Use markup when you set prices and margin when you review profitability. Each one answers a different question about your business.
When to use markup
Markup is your go-to for pricing, because it starts from what a product costs you. It answers the question: “How much do I add on top of my cost?”
For example, if your cost is RM80 and you want a 50% markup, your selling price is RM80 + (RM80 × 0.50) = RM120.
When to use margin
Margin is the standard for financial reporting and profitability analysis. Investors, lenders and accountants look at margin because it shows how well you turn revenue into profit.
Use margin to compare your results with industry benchmarks, prepare financial statements or check whether your pricing strategy is sustainable.
What is a good margin?
A good gross margin depends on your industry, so compare yours with businesses in the same sector. Gross margin is one of several profitability ratios you can track over time.
NYU Stern’s January 2026 margins by sector dataset puts average gross margins at:
- 33.18% for general retailers
- 35.30% for special lines retailers
- 26.31% for grocery and food retailers
- 33.38% for business and consumer services
These figures are averages for US listed companies, so margins for Malaysian small businesses may differ. Use them as a rough guide alongside local benchmarks for your sector.
Common mistakes when using margin and markup
Mixing up margin and markup can quietly cut into your profit. Watch for these four mistakes.
Adding your target margin directly to cost
Adding a target margin percentage straight to cost gives you a lower margin than you planned. If your cost is RM100 and you want a 40% margin, RM100 × 1.4 = RM140 looks right.
That price gives you a 28.6% margin, because RM40 ÷ RM140 = 28.6%. To reach 40%, price at RM100 ÷ 0.60 = RM166.67.
Assuming equal percentages mean equal profit
A 25% margin and a 25% markup produce different profits in ringgit. A 25% margin on a RM100 sale is RM25 in profit.
A 25% markup on a RM80 cost also leads to a RM100 sale, but the profit is RM20. Confirm which percentage you’re working with before you make decisions.
Reporting percentages without labels
A figure like “30%” in a report means different things depending on whether it’s margin or markup. Label every percentage clearly so your team, lender or accountant reads it the way you intended.
Forgetting overhead when calculating net margin
Gross margin covers only the direct cost of the goods you sell, leaving out rent, salaries, utilities and marketing. To see your full picture, work out your net profit margin.
Net profit margin = Net profit ÷ Revenue × 100, where net profit is gross profit minus operating expenses and taxes.
Track your margins with Xero
Knowing the difference between margin and markup helps you set prices with confidence and check they’re working. Xero brings your revenue and costs together in real-time reports, so you can see your profit and loss whenever you need it.
With customisable reports and bank reconciliation, you’ll spend less time on manual sums and more time growing your business. Start tracking your margins today and get one month free.
FAQs on margin vs markup
Here are quick answers to common questions about margin and markup.
Is a 50% markup the same as a 50% margin?
A 50% markup adds half the cost on top, which gives you a 33.3% margin. A 50% margin means half your selling price is profit, which needs a 100% markup.
What’s the difference between a 30% margin and a 30% markup?
On a RM100 cost, a 30% markup gives a RM130 price, while a 30% margin needs a RM142.86 price (RM100 ÷ 0.70). The margin-based price earns you RM12.86 more per sale.
How do you convert margin to markup?
Divide the margin by 1 minus the margin, using decimals. For example, a 20% margin is 0.20 ÷ 0.80 = 0.25, so it’s the same as a 25% markup.
How much margin is a 40% markup?
A 40% markup gives a 28.6% margin (0.40 ÷ 1.40). To earn a 40% margin, you need a markup of about 66.7%.
Why is markup always higher than margin?
Markup divides profit by cost, and margin divides profit by revenue. On a profitable sale, revenue is larger than cost, so dividing by cost gives the bigger percentage.
What’s the difference between margin and profit?
Profit is an amount in ringgit, while margin is that profit as a percentage of revenue. For example, a RM50 profit on a RM200 sale is a 25% margin.
Related terms
Learn more about margin vs markup
Handy resources
Advisor directory
You can search for experts in our advisor directory
Xero Small Business Guides
Discover resources to help you do better business
Financial reporting
Keep track of your performance with accounting reports
Disclaimer
This glossary is for small business owners. The definitions are written with their requirements in mind. More detailed definitions can be found in accounting textbooks or from an accounting professional. Xero does not provide accounting, tax, business or legal advice.