Markup and margin calculator
Markup and margin are easy to mix up. Enter your cost and either your price or the margin you want.
Useful for selling products
As an Amazon Associate I earn from qualifying purchases. Links open Amazon search results; we don't pick or test specific products.
Markup vs margin
Markup is profit as a share of cost: (price − cost) ÷ cost. Margin is profit as a share of price: (price − cost) ÷ price. A $40 item sold for $60 has a 50% markup but only a 33.3% margin.
| Markup | Margin |
|---|---|
| 25% | 20% |
| 50% | 33.3% |
| 100% | 50% |
| 200% | 66.7% |
How to use this calculator
- Enter what the item or service costs you.
- Choose what you already know: the selling price, a target margin or a target markup.
- Enter that number. The calculator shows the price, profit, margin and markup together.
Worked example
You buy a product for $40 and sell it for $60. Your profit is $20, which is a 50% markup on cost but only a 33.3% margin on the price.
If you want a 40% margin on the same $40 cost, the price is $40 ÷ (1 − 0.40) = $66.67. Adding 40% to the cost would only give $56, which is a 28.6% margin. That difference is why it matters which one your supplier, accountant or client is talking about.
Margin and markup for services
Freelancers and agencies use the same math when they resell something: a subcontractor's time, stock photos, printing or hosting. If a subcontractor charges you $50 an hour and you bill the client $75, your markup is 50% and your margin is 33.3%. Many agencies set a target margin on outsourced work so they can cover project management and risk.
Margin is also the figure most often used in accounting reports, because it shows how much of each dollar of revenue is left after direct costs.
Common mistakes to avoid
- Adding the target margin percentage to cost. That gives a markup, and the margin will be lower than you wanted.
- Forgetting fees. Payment processing, marketplace fees and shipping reduce your real margin; include them in the cost.
- Comparing a supplier's markup with a competitor's margin. Make sure both figures use the same base before comparing.
Frequently asked questions
What is the difference between markup and margin?
Markup is profit divided by cost. Margin is profit divided by selling price. The same sale always has a higher markup than margin.
How do I convert markup to margin?
Margin = markup ÷ (1 + markup). A 50% markup is 0.5 ÷ 1.5 = 33.3% margin.
How do I convert margin to markup?
Markup = margin ÷ (1 − margin). A 25% margin is 0.25 ÷ 0.75 = 33.3% markup.
Can margin be more than 100%?
No. Margin is a share of the price, so it is always below 100%. Markup has no upper limit.
Related calculators
- Freelance project quote calculator: Turn estimated hours, buffer, revisions and expenses into a fixed price.
- Freelance hourly rate calculator: The hourly rate you need to reach a target income after expenses, tax and time off.
- Day rate calculator: Turn an hourly rate into day, week and project prices.
Last reviewed November 24, 2026. Found a mistake? Let us know.