The Complete Guide to Profit Margin
By Arshi Khan, Founder of Just4Marketing · Last reviewed October 2026
Profit margin and markup are calculated from the same two numbers — revenue and costs — but they answer different questions and are two of the most commonly confused terms in business. This guide clears up the difference and shows exactly how each is calculated.
What is profit margin and why does it matter?
Profit margin measures how much of your revenue turns into profit, expressed as a percentage: Margin = (Revenue − Costs) ÷ Revenue × 100. It answers "of every dollar that comes in, how much do I keep?" — a figure that's directly comparable across products, time periods, and even different businesses, regardless of their size.
Markup answers a related but different question: "how much did I add on top of my cost?" It's calculated as Markup = (Revenue − Costs) ÷ Costs × 100. Both use the same profit figure (Revenue − Costs) in the numerator, but margin divides by revenue while markup divides by cost — which is exactly why the two percentages are never equal for the same sale.
Margin vs. markup: side by side
Using a product that costs $60 and sells for $100 (a $40 profit on every unit):
| Metric | Formula | Result |
|---|---|---|
| Gross profit | Revenue − Costs | $100 − $60 = $40 |
| Profit margin | Profit ÷ Revenue × 100 | $40 ÷ $100 = 40% |
| Markup | Profit ÷ Cost × 100 | $40 ÷ $60 = 66.7% |
How to price for a target margin
To hit a specific margin, divide your cost by what's left after the margin: selling price = cost ÷ (1 − target margin). A product that costs $30 needs a price of $30 ÷ 0.60 = $50 for a 40% margin.
The most common pricing mistake is adding the margin percentage to the cost instead. $30 plus 40% is $42, which is a 40% markup but only a 28.6% margin. Choose "Price for a target margin" above to get the right number directly.
| Target margin | Price for a $30 cost | Equivalent markup |
|---|---|---|
| 20% | $37.50 | 25% |
| 30% | $42.86 | 42.9% |
| 40% | $50.00 | 66.7% |
| 50% | $60.00 | 100% |
Things to keep in mind
Margin and markup are never the same number
Except at 0%, markup will always be a higher percentage than margin for the same sale, because it's calculated against the smaller base (cost) instead of the larger one (revenue).
Pricing by markup can undershoot your margin goal
If you want a 50% margin and instead apply a 50% markup, you'll actually land at a 33% margin — a common and costly pricing mistake for new businesses.
Be clear about which costs you're including
Gross margin (product cost only) and net margin (all business expenses) tell very different stories. Compare like with like, especially against industry benchmarks.
High margin doesn't always mean high profit
A high margin on low sales volume can still produce less total profit than a lower margin on high volume — margin percentage and total profit dollars are separate questions.
Frequently asked questions
What's the difference between profit margin and markup?
Profit margin is profit as a percentage of revenue: (Revenue − Costs) ÷ Revenue × 100. Markup is profit as a percentage of cost: (Revenue − Costs) ÷ Costs × 100. Because revenue is always larger than cost on a profitable sale, margin is always a smaller percentage than markup on the same numbers.
If I want a 50% profit margin, what markup do I need?
A 50% margin requires a 100% markup — you'd need to sell an item for double what it cost you. This is the most common mistake in pricing: setting a markup percentage equal to your target margin percentage actually produces a lower margin than intended.
What counts as a good profit margin?
It varies widely by industry. Grocery and retail often run on margins in the low single digits to around 10%, while software and services businesses can see margins of 20% or higher due to lower per-unit costs. Compare your margin against others in your specific industry rather than a universal benchmark.
Does 'costs' mean just the product cost, or everything?
It depends on which margin you're measuring. Gross margin typically uses only the direct cost of producing the good or service (cost of goods sold). Net margin subtracts all operating expenses, taxes, and interest as well. Be consistent about which one you're calculating and comparing.