Business
Profit Margin vs. Markup: Formulas and Examples
Margin and markup describe the same profit from different starting points. Margin compares profit with revenue. Markup compares profit with cost. A product that costs $60 and sells for $100 has a 40% margin, but a 66.67% markup. Confusing those percentages can leave a business charging less than intended.
Use margin when you want to know how much of each sales dollar remains after the costs you included. Use markup when you are adding a percentage to a known cost to choose a selling price. Neither measure tells you net business profit unless your cost figure includes all relevant expenses.

The two formulas use different denominators
Start with profit: revenue minus cost. Then divide profit by revenue for margin, or by cost for markup. Multiply the result by 100 to express it as a percentage. Keep revenue and cost on the same basis: per item, per order, or for the same reporting period.
For a $100 sale with a $60 cost, profit is $40. Margin is 40 / 100 x 100 = 40%. Markup is 40 / 60 x 100 = 66.67%. The profit did not change; only the denominator changed.
profit = revenue - cost
margin (%) = profit / revenue x 100
markup (%) = profit / cost x 100Price for a target margin, not just a markup
To reach a target margin, divide cost by one minus the target margin expressed as a decimal. With a $60 cost and a 40% target margin, the price is 60 / (1 - 0.40) = $100. Simply adding 40% to cost gives $84, which produces only a 28.57% margin.
A positive-cost product cannot achieve a 100% margin at a finite selling price. If a pricing spreadsheet produces a negative price or divides by zero at that target, the target is invalid rather than a usable price recommendation.
selling price = cost / (1 - target margin / 100)Choose costs that match the question
For a product-level gross margin, you might include purchase or manufacturing cost. For a contribution-style analysis, include variable selling costs such as payment fees, packaging, shipping you pay, and marketplace commissions. Rent and salaries normally need a separate overhead analysis. Label the result so another person knows which costs are included.
Taxes collected on behalf of a government are not automatically revenue available to the business. Returns, discounts, and refunds can also change realized revenue. Use a consistent accounting treatment and ask an accountant when preparing formal statements.
Check your result in the calculator
Enter 100 as revenue and 60 as cost in the Profit Margin Calculator, then compare the answer with the example below. Use the Markup Calculator to check the same sale on a cost basis. When comparing several products, calculate the combined margin from total profit divided by total revenue, not the simple average of individual margin percentages.
If revenue is zero, percentage margin is undefined. If cost is zero, percentage markup is undefined. A negative profit is a loss, not a formatting error. Round displayed percentages at the end of the calculation so intermediate rounding does not distort your price.
- Use the same currency and period for revenue and cost.
- Calculate profit before dividing by either denominator.
- Decide whether you need a revenue-based margin or a cost-based markup.
- Recheck your price after fees, discounts, or costs change.
One sale, two different percentages
| Measure | Calculation | Result |
|---|---|---|
| Profit | $100 - $60 | $40 |
| Margin | $40 / $100 x 100 | 40% |
| Markup | $40 / $60 x 100 | 66.67% |
| Price with 40% markup | $60 x 1.40 | $84 |
Related tools
- Open Markup Calculator
Calculate selling price from cost and markup.
- Open Break-Even Calculator
Estimate units needed to cover fixed costs.
Common questions
Is a 50% markup the same as a 50% margin?
No. A $100 cost with 50% markup sells for $150. The $50 profit is 33.33% of revenue. A 50% margin on that cost requires a $200 selling price.
What is a good profit margin?
There is no universal target. Cost structure, industry, volume, risk, and the distinction between gross and net margin all matter. Compare like-for-like measures rather than borrowing a percentage from another business.