Free profit margin calculator
Enter your cost and price for profit, margin and markup, or the margin you want for the price that delivers it.
Enter details
Cost ($)
Selling price ($)
Quantity sold
Fixed costs ($)
Quick examples
Your profit estimate
$50.00
Profit - $100 cost $150 price
Profit = Selling - Cost = 150 - 100 = $50. Margin = Profit / Selling * 100 = 50 / 150 * 100 = 33.33%. Markup = Profit / Cost * 100 = 50 / 100 * 100 = 50%
Watch the calculator fill itself in
The same panel you used above, pricing a $40 item three ways: from a price you have in mind, from the margin you need, and from a markup. Every figure on the right updates as the fields are typed.
Your profit estimate
$0.00
Profit per unit
Margin = Profit / Selling price * 100
If you discount
Start with a $40 cost
Jump to any part to replay it. The formulas behind these numbers are set out further down the page.
Gross, operating and net profit margin: which one is this?
Three different numbers go by the name, and quoting the wrong one is how a business that looks fine job by job still runs out of money. The calculator above works out the first.
Gross profit margin
(Revenue − COGS) ÷ Revenue × 100This is what the calculator gives you. Cost of goods sold means the direct cost of what you sold: materials, the hours that went into it, delivery. Nothing else. It tells you whether the price on a job or a product is right.
Operating profit margin
Operating profit ÷ Revenue × 100Gross profit after the costs of running the business: rent, software, insurance, wages that are not on a job. It answers whether the whole operation works, not whether one price does.
Net profit margin
Net profit ÷ Revenue × 100Everything taken off, including interest and tax. It is the figure a lender or an accountant means, and it is always the smallest of the three.
A 40% gross margin can still leave a business losing money, because gross margin has not paid the rent yet. Price with gross margin, check the health of the business with net.
How to use your profit margin when you quote and invoice
A margin only counts if the paperwork backs it up. Here are four places where a good number on this page shrinks before you get paid.
Price the quote, not the invoice
Add 40% instead of dividing and you would quote $140, a 28.6% margin. The quote maker keeps the line items you priced.
Every line carries its own margin
Run the margin per line here, then itemize them on the invoice so you can see afterwards which part of the work paid.
Quick margin, markup, selling price and break-even calculators
Work out a margin
Full calculatorProfit: $50 | Margin: 33.33% | Markup: 50%
Work out a markup
Full calculatorSelling price: $150 | Profit: $50 | Margin: 33.33%
Price from a target margin
Full calculatorSelling price: $142.86 | Profit: $42.86 | Formula: Cost / (1 - Margin)
Find the break-even point
Full calculatorBreak even: 200 units | Contribution: $50 per unit
| Cost | Price | Profit | Margin | Markup | ROI |
|---|
| Margin % | Markup % | Example on a $100 cost | Selling price |
|---|
How to calculate profit margin in three modes
Enter quantity and fixed costs
Enter quantity sold 100 units to see total profit $5,000 = $50 * 100. Enter fixed costs $2,000 to see break even 40 units = 2000 / 50 contribution.
Review results and export
View profit, margin, markup, ROI, total profit, break even, cost vs profit bar. Copy the figures, or carry the price straight into an invoice or a quote with the buttons under the result.
Profit margin examples by industry
Retail example: 33% margin
Cost $100 | Selling $150 | Profit $50 | Margin 33.33% | Markup 50% | ROI 50%
Total profit 100 units = $5,000 | Fixed $2,000 break even 40 units
Restaurant dish example: 66% margin
Cost $5 | Selling $15 | Profit $10 | Margin 66.67% | Markup 200% | ROI 200%
Total profit 200 plates = $2,000 | Fixed $1,000 break even 100 plates
This is the margin on the food alone; staff and rent come out of it afterwards.
Software example: 80% margin
Cost $20 | Selling $100 | Profit $80 | Margin 80% | Markup 400% | ROI 400%
Total profit 500 users = $40,000 | Fixed $10,000 break even 125 users
High because each extra user costs little to serve.
Construction example: 20% margin
Cost $80,000 | Selling $100,000 | Profit $20,000 | Margin 20% | Markup 25% | ROI 25%
Total profit 10 jobs = $200,000 | Fixed $50,000 break even 2.5 jobs
How is profit margin calculated? Margin and markup formulas
Profit margin formula
Profit = Selling - Cost. Margin = Profit / Selling * 100%. Example $100 cost $150 selling profit $50 margin 50 / 150 * 100 = 33.33%. Margin shows percent of selling price that is profit.
Markup formula
Markup = Profit / Cost * 100%. Example $100 cost $150 selling profit $50 markup 50 / 100 * 100 = 50%. Markup shows percent added to cost. Margin is always lower than markup.
Selling price from margin
Selling = Cost / (1 - Margin). Example $100 cost 30% margin selling = 100 / (1 - 0.3) = 100 / 0.7 = $142.86. Useful when you know desired margin.
Selling price from markup
Selling = Cost * (1 + Markup). Example $100 cost 50% markup selling = 100 * 1.5 = $150. Useful when you know markup to apply.
Break even formula
Contribution margin = Selling - Variable cost. Break even units = Fixed costs / Contribution margin. On $10,000 of fixed costs with $50 of contribution per sale, that is 200 units before any of it is profit. Break even dollars = break even units * selling price.
ROI vs margin
ROI = Profit / Cost * 100% same as markup. Margin = Profit / Selling * 100%. Example $100 cost $50 profit ROI 50% margin 33.33%. Use margin for pricing, ROI for investment return.
Profit margin and markup questions, answered
Margin, markup, profit and price, answered briefly.
How do you calculate profit margin?
Subtract the cost from the selling price to get the profit, divide the profit by the selling price, and multiply by 100. On a $100 cost and a $150 price the profit is $50, and 50 divided by 150 is a 33.33% profit margin. The calculator above does it as you type.
What is the difference between margin and markup?
Margin is profit divided by the selling price; markup is profit divided by cost. The same $50 of profit on a $100 cost and a $150 price is a 33.33% margin and a 50% markup. Because the price is always bigger than the cost, margin is always the smaller number, which is also why profit margin is calculated on revenue, not on cost. To convert: margin = markup / (1 + markup), and markup = margin / (1 - margin).
How do I calculate profit?
Selling price minus cost. $150 minus $100 is $50 of profit on one sale, and 100 sales at that price is $5,000. Enter a quantity above to see the total.
How do I calculate break-even units?
Divide fixed costs by the contribution each sale makes, which is the selling price minus the variable cost. $10,000 of fixed costs at $50 per sale is 200 units, or $30,000 of sales at a $150 price. Enter fixed costs above to see it, or use the break-even calculator for revenue, invoices a month and margin of safety.
Should every line on an invoice carry the same margin?
Rarely. Labor usually carries more than materials, and call-out or disposal charges often carry very little. Pricing each line on its own margin is what stops a job with heavy materials from quietly earning nothing.
A client wants a discount. How do I set the price?
Work backwards from the lowest margin you can accept rather than down from your price: put the cost in here and that margin, and the price it gives you is your floor. Then offer something that costs you less than the profit does, such as a smaller scope, a longer lead time or payment up front, so the margin you calculated survives the conversation.
What margin covers unpaid invoices?
If one invoice in twenty goes bad, every other job needs to carry that loss. On a 30% margin, a 5% write-off rate takes roughly a sixth of your profit, which is an argument for deposits and clear payment terms rather than for higher prices.
Can margin be more than 100%?
No. Margin is profit as a share of the selling price, so it approaches 100% but cannot reach it. Markup has no ceiling: a $5 cost sold at $50 is a 900% markup and a 90% margin.
How do I calculate margin on a subscription or retainer?
Use the monthly figures: what delivering the service costs you each month against what the client pays each month. Long agreements are worth checking every quarter, because costs drift while the retainer stays put.
How much should I raise prices to keep the same margin after a cost increase?
By the same percentage as the cost rise. On a 30% margin, a $70 cost that rises 10% to $77 needs a $110 price, 10% up, to keep the 30% margin. A 7% rise to $107 keeps the same $30 of profit per sale but lets the margin slip to 28%.
Is the profit margin calculator free and private?
Yes. There is no signup and nothing is uploaded: every figure is worked out in your browser and disappears when you close the tab.
What margin should I quote a client?
Work back from what the job costs you, including unbilled time, then add the margin your business needs rather than the one you think the client expects. Price the quote at that figure and hold it: negotiating scope protects the margin, negotiating price does not.
How do I show margin on an invoice?
You do not. Clients see prices, not your costs. Keep the margin working in the background and itemize the invoice by what was delivered, which is also what makes it easy to check afterwards which lines actually paid.
How do late payments affect my margin?
Every day an invoice is unpaid is a day you are financing the client. On a thin margin, 60 day terms can cost more than the job earned, so clear due dates and a stated late fee are part of pricing, not an afterthought.
Should deposits change the price I quote?
They change the risk, not the cost, so they rarely justify a lower margin. What a deposit does is remove the financing cost and the chance of not being paid, which is often worth more than the discount a client is asking for.
What is COGS and what should I include in it?
Cost of goods sold is the direct cost of delivering the thing you sold: materials, the labor that went into it, and delivery. Leave out rent, insurance, software and your own admin time, which belong in operating costs.
Does profit margin include labor and overhead?
Gross margin includes the labor that went into the job, because it is a direct cost, but not overhead such as rent or software. Net margin includes both. If you enter a cost that already contains a share of overhead, the margin here is closer to a net figure for that job.