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. For the full story with more worked examples, see margin vs markup, explained.
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.
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.
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
Finding Your Freelance Break-Even Point
How to work out the break-even point for a freelance or one-person business — what contribution margin is, why your own pay belongs in fixed costs, and how much cushion to aim for.
What Is a Good Profit Margin for a Freelancer Running Solo?
What is a good profit margin for a freelancer? Real benchmark bands, a worked $90k P&L, the owner's-pay trap, and how 5 points becomes real take-home.
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 Price a Project (Not Just an Hour)
A repeatable way to turn a vague project into a confident fixed price — estimating hours, adding a buffer, and protecting your margin.
Margin vs. Markup: The Difference That Quietly Costs You Money
Margin and markup are not the same number — confusing them eats your profit. A clear, example-led explanation for freelancers.
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.