Margin vs markup: the difference and how to price profitably
We earn a commission if you buy through some links on this page, at no extra cost to you. It never affects the order. How we make money.
Margin vs markup is one of the most common sources of pricing mistakes in small businesses. Both describe the difference between cost and price, but margin measures it as a share of the selling price, while markup measures it as a share of the cost. Confusing them leads to prices that are lower than intended and profits that never appear. This guide explains both clearly, gives formulas and a conversion table, works through examples, and shows how to set prices that cover all your costs.
The definitions
Markup is how much you add to the cost of a product to get the selling price, expressed as a percentage of cost:
Markup % = (Price − Cost) ÷ Cost × 100
Gross margin is how much of the selling price is profit after the cost of the product, expressed as a percentage of price:
Margin % = (Price − Cost) ÷ Price × 100
If a product costs 60 and sells for 100, the profit is 40. Markup is 40 ÷ 60 = 66.7%. Margin is 40 ÷ 100 = 40%. Same product, same profit, different percentages.
Why the difference matters
Suppose you want a 40% margin and mistakenly apply a 40% markup. A product costing 60 would sell for 84 (60 × 1.4). The margin is then 24 ÷ 84 = 28.6%, not 40%. Across all your products, that mistake can wipe out most of your intended profit. Accountants and financial reports usually talk in margins; many retailers and suppliers talk in markups. Make sure everyone in your business uses the same term.
Converting between margin and markup
Markup = Margin ÷ (1 − Margin)
Margin = Markup ÷ (1 + Markup)
Common conversions:
- 20% margin = 25% markup.
- 25% margin = 33.3% markup.
- 30% margin = 42.9% markup.
- 40% margin = 66.7% markup.
- 50% margin = 100% markup.
- 60% margin = 150% markup.
Our profit margin calculator converts between them and works out prices from either.
Setting a price from a target margin
To hit a target margin, use:
Price = Cost ÷ (1 − Target margin)
For a 40% margin on a product costing 60: price = 60 ÷ 0.6 = 100. For a 30% margin on a product costing 45: price = 45 ÷ 0.7 ≈ 64.29. This is the most reliable way to set prices if you think in margins.
What counts as cost
For gross margin, cost usually means the cost of goods sold: the purchase price or production cost of the product, plus costs directly tied to getting it ready for sale, such as import duties, freight in and packaging. Some businesses also include payment fees, delivery and returns in a "contribution margin" to see what each sale really contributes. Be clear which you are using. Leaving out direct costs makes margins look healthier than they are.
Gross margin vs net margin
Gross margin covers only the direct cost of products. Net margin is what remains after all costs: rent, salaries, marketing, software, interest and taxes. A business can have a healthy gross margin and still lose money if overheads are high. Gross margin must be large enough to cover overheads and leave profit. See how to calculate break-even point for how gross margin and fixed costs combine.
Worked example: a clothing shop
A shop buys shirts for 15 each, plus 2 for import duty and shipping, a cost of 17. It wants a 55% gross margin. Price = 17 ÷ 0.45 ≈ 37.78, rounded to 38. Markup is (38 − 17) ÷ 17 ≈ 124%. If the shop sells online, it should also account for payment fees, packaging and delivery when checking contribution per order.
Worked example: an online store
An online store sells a product for 50. Product cost is 20; packaging 2; payment fees about 1.50; average delivery cost absorbed by the store 4. Gross margin on product cost alone is 60%, but contribution after all direct costs is 22.50, or 45%. If the store also spends an average of 12 on ads per order, contribution after acquisition is 10.50, or 21%. This shows why margin on product cost alone can mislead online sellers. See the cost to start an online store.
Worked example: a service business
Margin applies to services too. A design agency charges 5,000 for a project. Direct costs, mainly freelancer fees and software for the project, are 2,000. Gross margin is 60%. The remaining 3,000 must cover the agency's salaries, rent and other overheads. Tracking margin per project shows which types of work are most profitable. See how to set your freelance rate.
Discounts and margins
Discounts reduce margin more than people expect. A product with a 40% margin sold at 20% off has a margin of only 25%: price falls from 100 to 80, cost stays at 60, profit falls from 40 to 20. You would need to sell twice as many units to earn the same gross profit. Before running promotions, calculate the new margin and the extra sales needed to break even on the promotion.
Typical margins vary by industry
Healthy margins differ widely by industry and business model. Grocery retail runs on thin gross margins with high volume; fashion, cosmetics and software often have much higher gross margins. Rather than chasing an industry average, work out the margin your business needs to cover its overheads and marketing and make a profit, then check whether the market accepts the resulting prices.
Pricing beyond cost
Cost-based pricing ensures you do not lose money, but it ignores what customers are willing to pay. Also consider competitors' prices, the value customers place on your product, your brand position, and psychological pricing. If customers value your product highly, cost-plus pricing leaves money on the table. If competitors sell for less, you may need to cut costs or differentiate.
Track margins in your systems
Record product costs in your POS or e-commerce platform so reports show margin by product and category. Review regularly: supplier price increases, currency changes and shipping costs can erode margins quietly. See POS system cost and the POS ranking for systems with margin reporting, and e-commerce platforms for online stores.
Common mistakes
- Applying a markup percentage when you meant a margin.
- Leaving duties, freight or packaging out of cost.
- Ignoring payment fees and delivery for online sales.
- Discounting without calculating the new margin.
- Not updating prices when costs rise.
- Assuming a good gross margin means the business is profitable.
Margins with VAT or sales tax
Calculate margins on prices excluding VAT or sales tax, because the tax is collected for the government and is not your revenue. If your shelf price includes VAT, remove the tax first: for a VAT-inclusive price of 116 at 16% VAT, the net price is 100. A common mistake is calculating margin on the VAT-inclusive price, which overstates it. Use the VAT calculators for your country, such as Kenya or the UK, to move between gross and net prices.
Currency and import costs
For imported products, the landed cost includes the supplier price converted at the exchange rate you actually paid, international shipping, insurance, import duties, clearing and local transport. Exchange rate movements between ordering and selling can change your margin significantly. Recalculate landed costs for each shipment and update prices when costs move. See how to pay overseas suppliers for managing currency costs.
Margin by channel
The same product can have different margins in different channels. In-store sales may carry card fees; online sales add delivery and payment fees; marketplace sales add commissions; wholesale sales have lower prices but larger volumes. Track margin by channel to see which is most profitable, and price each channel accordingly. A product that looks profitable in-store may barely break even on a marketplace after commissions.
Using margin to make product decisions
Rank products by gross margin and by total gross profit (margin times volume). High-margin, high-volume products are your stars: keep them in stock and promote them. Low-margin, low-volume products may be candidates to drop or reprice. Low-margin, high-volume products may still be valuable if they bring customers who buy other items. Review this every quarter using sales reports from your POS or store platform.
Raising prices without losing customers
When costs rise, margins shrink unless prices follow. Raise prices in modest steps, communicate value clearly, adjust packaging or bundles if needed, and watch sales closely. Many customers accept reasonable increases, especially when competitors raise prices too. Avoid long periods without increases followed by a large jump, which feels more painful. Calculate how much volume you could lose before a price increase reduces gross profit, as explained in how to calculate break-even point.
Margin in a spreadsheet
A simple product pricing spreadsheet has columns for product, unit cost, landed extras, total cost, selling price (excluding tax), gross profit, margin and markup. Add columns for payment fees and delivery for online sales to calculate contribution. Formulas make it easy to test new prices or costs. Many store platforms and POS systems store cost per item and report margins automatically.
Wholesale and retail pricing
If you sell both wholesale and retail, set wholesale prices that leave your retailers enough margin to resell at your recommended retail price, while still covering your own costs and profit. A common approach is to set the retail price first, then work backwards: if retailers expect a 50% margin, the wholesale price is half the retail price excluding tax. Check that this wholesale price still gives you an acceptable margin over your cost. If it does not, revisit costs or the retail price.
Service pricing with margins
For service businesses, the main direct cost is people's time. Calculate the cost of each hour, including salary and employment costs for staff or the fee for freelancers, and price to achieve your target margin on that cost. For fixed-price projects, estimate hours carefully and add a buffer. Track actual hours to see real margins per project, and adjust pricing or scope for the next one.
Quick reference
Keep these rules of thumb handy: margin is always lower than markup for the same sale; to double your cost, you need a 100% markup, which is a 50% margin; a margin can never reach 100%, but a markup can be any size; and when someone quotes a percentage, ask whether it is margin or markup before acting on it. A shared definition across your team and suppliers prevents costly misunderstandings.
Questions
What is the difference between margin and markup?
Markup is profit as a percentage of cost; margin is profit as a percentage of selling price. The same sale gives a higher markup percentage than margin percentage.
Can margin be more than 100%?
No. Margin is profit divided by price, so it is always below 100%. Markup can exceed 100%.
Do payment fees reduce gross margin?
Many businesses treat payment fees as selling costs rather than cost of goods, but they still reduce what each sale contributes. Include them in contribution margin.
Is keystone pricing the same as a 50% margin?
Keystone pricing doubles the cost, which is a 100% markup and a 50% margin.
Should I use margin or markup for pricing?
Either works if you are consistent. Many businesses set prices using target margins, because margins relate directly to profit as a share of sales.
What is contribution margin?
Selling price minus all variable costs per sale, such as product cost, payment fees and delivery, showing what each sale contributes to fixed costs and profit.
How do I convert markup to margin?
Margin equals markup divided by one plus markup. A 50% markup is a 33.3% margin.
How do I set a price for a target margin?
Divide cost by one minus the target margin. For a 40% margin on a cost of 60, price is 60 ÷ 0.6 = 100.
Is a 50% markup the same as a 50% margin?
No. A 50% markup gives a 33.3% margin. A 50% margin needs a 100% markup.
What is a good profit margin?
It depends on your industry and overheads. Your margin must cover overheads and marketing and leave a profit.
How do discounts affect margin?
Discounts reduce margin sharply. A 20% discount on a product with a 40% margin cuts the margin to 25%.
Should I include shipping in cost?
Include inbound freight and duties in product cost. For online sales, also consider outbound delivery and payment fees in contribution.