Margin and markup both describe the gap between what something costs you and what you sell it for. They are often used interchangeably, but they are calculated against different bases, and mixing them up is one of the most common pricing mistakes in small businesses. A business that wants a 40% margin but adds a 40% markup to its costs is underpricing every sale.
This guide explains both, shows the formulas with worked examples, and gives you an exact table for converting one to the other.
The definitions
Profit (more precisely, gross profit per unit) is the selling price minus the cost:
Profit = Price − Cost
Margin expresses that profit as a percentage of the selling price:
Margin = (Price − Cost) ÷ Price × 100
Markup expresses the same profit as a percentage of the cost:
Markup = (Price − Cost) ÷ Cost × 100
Same profit, different denominator. Because the price is always larger than the cost (if you are making money), the margin is always a smaller percentage than the markup for the same product.
A worked example
Suppose a product costs you 60 to buy or make, and you sell it for 100.
- Profit = 100 − 60 = 40
- Margin = 40 ÷ 100 = 40%
- Markup = 40 ÷ 60 = 66.7%
If you’d said “I want a 40% markup” on that 60 cost, you would charge 60 × 1.4 = 84, leaving a profit of 24 and a margin of only 28.6%.
Our profit margin calculator shows margin, markup and profit side by side, so you can see both at once.
Setting a price from a target
From a target margin
If you know the margin you need, divide the cost by one minus the margin:
Price = Cost ÷ (1 − Margin)
For a 40% margin on a cost of 60: 60 ÷ 0.6 = 100.
From a target markup
If you work with markup, multiply the cost by one plus the markup:
Price = Cost × (1 + Markup)
For a 50% markup on a cost of 60: 60 × 1.5 = 90, which is a 33.3% margin.
Markup to margin conversion table
These figures are exact conversions using margin = markup ÷ (1 + markup), rounded to one decimal place.
| Markup | Margin |
|---|---|
| 10% | 9.1% |
| 20% | 16.7% |
| 25% | 20.0% |
| 30% | 23.1% |
| 33.3% | 25.0% |
| 40% | 28.6% |
| 50% | 33.3% |
| 60% | 37.5% |
| 75% | 42.9% |
| 100% | 50.0% |
| 150% | 60.0% |
| 200% | 66.7% |
| 300% | 75.0% |
| 400% | 80.0% |
To go the other way, use markup = margin ÷ (1 − margin). A 20% margin needs a 25% markup; a 50% margin needs a 100% markup.
Notice two things. Markup can be any size — a 400% markup is perfectly possible — but margin can never reach 100%, because that would mean the product cost nothing. And the gap between the two grows quickly as prices rise.
Which one should you use?
Neither is “right”. They answer different questions.
- Margin answers “what share of each sale do I keep?” It is the language of accountants, financial statements and most business plans, and makes it easy to compare products with different prices.
- Markup answers “how much do I add to my cost?” It is convenient for quickly pricing items on a shelf or a quote.
The important thing is that everyone in your business uses the same term the same way. Write it down in your pricing policy.
What counts as “cost”?
A margin is only as good as the cost figure behind it. For product businesses, the cost of goods usually includes:
- The purchase price or manufacturing cost.
- Inbound shipping, duties and import fees.
- Packaging.
- Payment processing fees, if you want a per-sale view.
- Marketplace or platform fees charged per sale.
For service businesses, the equivalent is the direct cost of delivering the work: your team’s time at its true cost, subcontractors, and tools used only for that job.
Overheads such as rent, salaries for non-delivery staff, marketing and software are usually not included in gross margin. They come out of gross profit to give net profit. A product can have a healthy gross margin and still lose money if overheads are too high.
Gross margin vs net margin
- Gross margin = (revenue − cost of goods sold) ÷ revenue. It measures how profitable your products or services are before overheads.
- Net margin = net profit ÷ revenue, where net profit is what remains after all expenses, interest and taxes. It measures how profitable the whole business is.
Both are useful. Gross margin guides pricing decisions on individual products; net margin tells you whether the business as a whole works.
How discounts eat margin
Discounts reduce your price but not your cost, so they cut into profit much more sharply than the headline percentage suggests.
Take the product that costs 60 and sells for 100 (40% margin). A 20% discount brings the price to 80:
- New profit = 80 − 60 = 20
- New margin = 20 ÷ 80 = 25%
A 20% discount has halved your profit per unit. To earn the same total profit, you would need to sell twice as many units.
Before running a promotion, work out how many extra sales it needs to break even. The percentage calculator helps with the discount arithmetic, and our checkout UX guide covers how coupon fields can affect conversion.
Sales tax, VAT and GST
Calculate margins on prices excluding sales taxes such as VAT or GST. That tax is collected on behalf of the tax authority, not kept as revenue.
Suppose you sell to consumers at a tax-inclusive price of 120 with a 20% tax rate:
- Price excluding tax = 120 ÷ 1.2 = 100
- Tax = 20
- With a cost of 60, the margin is 40 ÷ 100 = 40%, not 60 ÷ 120
A common mistake is to take 20% off the tax-inclusive price (giving 96) instead of dividing by 1.2. Our VAT, GST and sales tax calculator adds or removes tax at any rate. Rates and rules vary by country and product, so confirm what applies with your tax authority or accountant.
Margins for service businesses
Margin thinking isn’t only for products. Agencies, consultancies and freelancers can apply the same formulas to their time.
Suppose a team member’s fully loaded cost — salary, employment costs, equipment, software and a share of overheads — works out at 40 per billable hour. If you bill that hour at 70:
- Profit = 70 − 40 = 30
- Margin = 30 ÷ 70 ≈ 42.9%
- Markup = 30 ÷ 40 = 75%
Two things often go wrong here:
- Underestimating the real cost of an hour. If only 60% of paid hours are billable, the cost of each billable hour is much higher than the salary divided by contracted hours.
- Forgetting unbilled work on fixed-price projects. Extra revision rounds and scope creep add cost without adding revenue, quietly reducing the margin on the project.
Tracking time against fixed-price projects, even roughly, shows which kinds of work are genuinely profitable. Over a few projects you’ll see patterns: perhaps small websites earn a healthy margin while complex integrations consistently overrun.
Resold items and pass-through costs
When you resell software licences, hosting, stock photography or subcontracted work, decide whether you are charging a markup or passing the cost through at cost with a separate management fee. Both are legitimate, but be consistent and transparent with clients, and make sure the time you spend managing those items is paid for somewhere.
Break-even: how many units do you need to sell?
Margin also tells you how many sales you need to cover fixed costs. The break-even point in units is:
Break-even units = Fixed costs ÷ Profit per unit
If your monthly fixed costs are 6,000 and each product earns 40 in gross profit, you need to sell 150 units a month to break even. Every unit beyond that contributes to net profit. Running this calculation before a discount or a price change shows whether the plan is realistic.
Pricing in practice
- Know your true cost per unit, including shipping and fees.
- Decide the gross margin you need to cover overheads and leave a profit. Look at your total overheads and expected sales volume, not just the product in isolation.
- Calculate the price using the margin formula.
- Check it against the market. If competitors sell for less, find out why: different costs, different quality, or a loss-leader strategy.
- Plan discounts deliberately, knowing how many extra sales each one needs.
- Review regularly. Supplier prices, shipping costs and fees change.
When you quote services that include resold items — software licences, hosting, hardware — apply the same thinking. Freelancers will find our guide to calculating freelance rates useful for pricing their own time.
If you are planning an online store or a quoting system that calculates margins automatically, KRA Digital builds e-commerce websites and pricing tools. Our e-commerce glossary defines related terms such as AOV, SKU and chargeback.
Frequently asked questions
What is the difference between margin and markup?
Both compare profit to a base. Margin divides profit by the selling price; markup divides profit by the cost. For a product costing 60 and selling for 100, the profit is 40, the margin is 40% and the markup is 66.7%.
How do I convert markup to margin?
Divide the markup by one plus the markup. A 50% markup is 0.5 ÷ 1.5 = 33.3% margin. To convert margin to markup, divide the margin by one minus the margin: a 25% margin is 0.25 ÷ 0.75 = 33.3% markup.
What is a good profit margin?
It depends entirely on your industry, business model and overheads. A business with low overheads and high volume can work with thinner margins than one with high fixed costs. Work out the gross margin you need from your own overheads and sales forecasts rather than relying on general rules.
Can a margin be more than 100%?
No. Margin is profit divided by price, and profit can never exceed the price unless the cost is negative. Markup, which divides by cost, can be any size.
Should I include VAT or GST when calculating margin?
No. Calculate margin on prices excluding sales tax, because the tax is passed to the tax authority rather than kept as revenue.