Profit Margin & Markup Calculator

FreeNo sign-upRuns in your browserUpdated 2026-06-10

1. From cost & price

What it costs you to deliver.
What you charge the client.
Profit
Profit margin (% of price)
Markup (% of cost)

2. Set your price from a target margin

That price is a markup of
Profit per sale
Note: this tool gives pricing estimates for general planning. It is not accounting or financial advice — your real margins depend on all your costs and your tax situation.

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 a supplier says "50%", always ask which one they mean. For the full story with more worked examples, see our guide: margin vs. markup, explained.

How to use this calculator

A worked example

Suppose a project costs you $40 in time and tools, and you're thinking of charging $100. That's $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 can't just add "40%" to the cost — that would only give you a 28.6% margin. This is exactly the trap the second section saves you from.

Why margins matter for freelancers

Your margin is your breathing room — it's what 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 — see how to price a project — rather than guessing, is one of the simplest ways to make freelancing sustainable.

Who this calculator is for

Anyone who has a cost and a price and needs to know what's left in between: freelancers quoting fixed-price projects, makers and resellers pricing physical products, 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 (that's a 24% margin — tight). If you've ever added "a bit on top" of your costs and hoped for the best, this page is for you.

Assumptions and limitations

The results are per-sale gross margin, not your business's net profit. A few things to keep in mind when you read the numbers:

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. Confusing the two is one of the most common (and expensive) pricing mistakes.

How do I calculate profit margin?

Profit margin % = (price − cost) ÷ price × 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: 30 ÷ (1 − 0.40) = $50. The calculator does this for you in the second section.

Which should I use — margin or markup?

Use margin when you think in terms of "what percentage of my revenue is profit" (most service businesses and retailers report margin). Use markup when you price by adding a percentage on top of a known cost. Just 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 the price as what you charge. The margin tells you how much breathing room you have.

Working out a rate from scratch? Start with the freelance hourly rate calculator, then use this tool to price individual projects with a healthy margin.

Related guides