Profit Margin & Markup Calculator
Margin vs markup: the difference that trips everyone up
Margin and markup both describe your profit, but they divide it by different things, and mixing them up quietly eats your earnings. Margin is profit as a share of the price you charge. Markup is profit as a share of the cost to you. The same job can be “a 50% markup” and “a 33% margin” at the same time, so if a client or supplier says “50%”, always ask which one they mean.
How to use this calculator
The first section takes a cost and a price you are considering and tells you the profit, margin and markup. Use it when you are sanity-checking a quote, a retainer or a product price. The second section works the other way: tell it your cost and the margin you want to keep, and it tells you the price you need to charge to get there.
For freelancers, “cost” should include more than obvious out-of-pocket expenses. If you are quoting a fixed project, include your own delivery time valued at your real rate, subcontractors, software bought for the job, payment-processing fees and any materials. A margin that ignores your own labor is not a real margin.
One practical habit is to run the calculation twice: once with the costs you are sure about, and once with a less comfortable version that includes the extra meeting, the second revision round and the payment fee. If the margin only looks healthy in the optimistic version, the quote is fragile. Raise the price, narrow the scope, or write a clearer change-order line before the project starts.
Common markups and the margins they give
Markup and margin are easy to mix up, so here are the conversions for the percentages people search for most. The price column assumes a cost of $100.
| Markup on cost | Profit margin on price | Price for a $100 cost |
|---|---|---|
| 10% | 9.1% | $110.00 |
| 20% | 16.7% | $120.00 |
| 25% | 20.0% | $125.00 |
| 30% | 23.1% | $130.00 |
| 40% | 28.6% | $140.00 |
| 50% | 33.3% | $150.00 |
| 60% | 37.5% | $160.00 |
| 75% | 42.9% | $175.00 |
| 100% | 50.0% | $200.00 |
A 30% markup is a 23.1% margin, a 40% markup is a 28.6% margin, and it takes a 100% markup (doubling the cost) to reach a 50% margin. Working the other way, to keep a target margin you need a larger markup:
| Target margin | Markup needed | Price for a $100 cost |
|---|---|---|
| 10% | 11.1% | $111.11 |
| 20% | 25.0% | $125.00 |
| 25% | 33.3% | $133.33 |
| 30% | 42.9% | $142.86 |
| 40% | 66.7% | $166.67 |
| 50% | 100.0% | $200.00 |
The formulas: margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin), with both written as decimals. Enter your own cost and price above to get exact figures.
A worked example
Suppose a project costs you $40 in time and tools, and you are thinking of charging $100. That is $60 profit: a 60% margin but a 150% markup. Now flip it. If a job costs $30 and you want to keep a 40% margin, you need to charge $30 / (1 - 0.40) = $50. Notice you cannot just add 40% to the cost; that would only give you a 28.6% margin. This is the trap the second section saves you from.
Where mixing them up costs money
- Reselling materials or licenses. You buy $300 of licensed assets for a client and want a 30% margin on them. Adding 30% gives $390, which is only a 23.1% margin. The price that keeps 30% is $300 ÷ 0.70 = $428.57.
- Subcontracted hours. An editor costs you $40 an hour. A 25% markup bills $50; a 25% margin bills $40 ÷ 0.75 = $53.33. Agree on which one the contract means before the work starts. The subcontractor markup calculator handles several subcontractors and your own management time.
- Doubling the cost. “I just double it” is a 100% markup but a 50% margin: half of each invoice is profit before overheads, not all of it. That can be a perfectly good price, as long as your plans use 50%.
- Comparing with benchmarks. Before comparing your margin with a published figure, check whether it is gross, operating or net margin and which costs it includes. Matching the percentage type without matching the cost base is still not a like-for-like comparison.
Write the base next to every percentage in a quote or contract: “40% of price” or “40% on top of cost”. That one habit prevents most of these errors.
Why margins matter for freelancers
Your margin is your breathing room. It absorbs scope creep, slow months and the costs you forgot to count. Thin margins mean every surprise comes straight out of your pocket. Pricing to a deliberate target margin, rather than guessing, is one of the simplest ways to make freelancing sustainable. The guide on how to price a project walks through the practical quote-building side.
Revisit the numbers whenever delivery changes.
Who this calculator is for
Use it if you have a cost and a price and need to know what is left in between: freelancers quoting fixed-price projects, makers pricing physical products, small agencies sanity-checking subcontracted work, and side hustlers trying to figure out whether a $25 product that costs $19 to make and ship is actually worth the effort. If you have ever added “a bit on top” of your costs and hoped for the best, this page is for you.
Assumptions and limitations
- Your cost must be fully loaded. Include your own time, subcontractors, software, transaction fees and shipping.
- Figures are pre-tax. Quote and compare prices net of sales tax or VAT you collect for the government.
- Target margin must stay below 100%. Price grows without bound as the target approaches 100%.
- Overheads spread across many jobs are not modeled. Annual software and insurance usually belong in your rate or yearly planning unless the job genuinely consumes them.
Frequently asked questions
What is the difference between margin and markup?
They measure the same profit against different bases. Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. A 50% markup on a $100 cost gives a $150 price, but that is only a 33% margin.
How do I calculate profit margin?
Profit margin % = (price - cost) / price x 100. If something costs you $40 and you sell it for $100, your profit is $60 and your margin is 60%.
How do I set a price from a target margin?
Price = cost / (1 - target margin). To hit a 40% margin on a $30 cost, use 30 / (1 - 0.40) = $50. The calculator does this in the second section.
Which should I use - margin or markup?
Use margin when you think in terms of what percentage of revenue is profit. Use markup when you price by adding a percentage on top of a known cost. The important thing is to be consistent and know which one you mean.
Does this work for services as well as products?
Yes. Treat your cost as everything it takes to deliver the service: your time valued at your rate, subcontractors, software and payment fees. The margin tells you how much breathing room you have.
Related guides
Freelancer Profit Margin: Define Owner Pay Before Judging the Percentage
There is no universal good margin for a solo freelancer. Calculate Schedule C-style net margin, then a separate owner-labor residual so the percentage answers a clear question.
The Hidden Costs of Freelancing You Must Price In
The costs new freelancers forget — and that quietly turn a "good" rate into barely breaking even. A specific, itemised reality check.
How to Protect Your Profit Margin from Scope Creep
Scope creep is where freelance profit goes to die. How to spot it early, word your quotes to prevent it, and reprice gracefully.