Skip to content
Contania

Profit Margin Calculator

Profit margin is how much of each sale you keep, measured against the price. Enter the price and the cost to see the profit, the margin, and the markup that matches it — two numbers people constantly mix up.

Your numbers

$
$

Result

Profit margin
33.33%
Profit
$50.00
Equivalent markupprofit over cost
50%
The sale
ItemValue
Selling price$150.00
Cost$100.00
Profit$50.00

How to calculate profit margin

Margin is profit over price: (price − cost) ÷ price × 100. Selling a $100 item for $150 leaves $50 of profit and a 33.3% margin. The denominator is the whole point — margin answers "how much of each dollar the customer hands me do I keep?" That framing is why margin can never reach 100%: the cost is inside the price, so there is always something below the line unless the product is free to you. It also cannot exceed 100% no matter how high you price. Markup, which uses cost as the denominator, has no such ceiling. A useful reflex: margin × price = profit. A 33.3% margin on a $150 sale is $50, and on a $600 sale it is $200. The percentage travels; the dollars do not.

Margin and markup are not the same number

The same $50 of profit produces two different percentages depending on what you divide by. Against the $150 price it is a 33.3% margin. Against the $100 cost it is a 50% markup. Both are correct; they answer different questions, and mixing them up is the single most expensive arithmetic error in retail. Convert freely with margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin), entering both as decimals. A 100% markup is a 50% margin. A 50% markup is a 33.3% margin. A 25% markup is a 20% margin. The rule that follows: margin is always smaller than markup for the same sale, and the gap widens as both grow. At low percentages they look close enough to confuse — a 5% markup is a 4.8% margin — which is exactly how the habit of treating them as interchangeable survives.

Pricing by adding the margin to cost loses money

If you want a 30% margin and you add 30% to a $100 cost, you get $130. Check it: the $30 of profit divided by the $130 price is a 23.1% margin. You are almost seven points short of your target, and you will never see it on an invoice. The fix is division, not addition: price = cost ÷ (1 − margin). For 30%, that is 100 ÷ 0.70 = $142.86. For 40%, 100 ÷ 0.60 = $166.67. For 50%, 100 ÷ 0.50 = $200. The same trap catches fees. Wanting a 30% margin while paying a 5% payment-processing fee is not "price for 35%" by adding — it is cost ÷ (1 − 0.35) = 100 ÷ 0.65 = $153.85. Every percentage that is charged on the price belongs in the divisor, never as an addition to the cost.

Gross, operating and net margin

This calculator gives the gross margin: price minus the direct cost of the thing sold. It is the first and most useful cut, but it is not the bottom line. Operating margin subtracts the cost of running the business — rent, salaries, software, marketing — from gross profit. Net margin goes further and takes out interest and taxes. The three numbers can be very far apart: a business with a 60% gross margin and heavy fixed costs can easily post a low single-digit net margin, or none at all. When you compare your margin to anything you read elsewhere, make sure you are comparing the same layer. A quoted "margin" with no adjective is usually gross, and gross margins across industries are not remotely comparable — a grocery chain and a software company are playing different games with the same word.

What actually moves the margin

Four levers change the number, and they are not equally strong. Raising the price moves margin fastest, because it increases the numerator and the denominator is what you keep more of. Cutting cost works too, but a dollar saved on cost is worth less than a dollar added to price once fees scale with the price. Mix is the quiet one. Selling more of a high-margin line raises the blended margin without changing any individual price. Discounting is its mirror image: a 10% discount on a product with a 30% margin does not cost you 10% of profit, it costs you a third of it — the discount comes entirely out of the margin, never out of the cost. That last point is worth sitting with before running a sale. At a 25% margin, a 10% discount removes 40% of your profit per unit, and you would need to sell roughly 67% more units just to end up where you started.

Frequently asked questions

Sources

Embed this calculator

Copy the code and paste it into your site or blog. Credit with a link back to Contania is included, and the height adjusts itself.

<iframe src="https://contania.app/embed/business/profit-margin" title="Profit Margin Calculator — margin, profit and markup" width="100%" height="720" loading="lazy" style="border:1px solid #e5e0d8;border-radius:12px;max-width:640px"></iframe>
<script>window.addEventListener("message",function(e){if(e.data&&e.data.type==="contania:embed-height"){var f=document.querySelector('iframe[src="https://contania.app/embed/business/profit-margin"]');if(f){f.style.height=e.data.height+"px"}}});</script>

Related calculators

Business & Marketing

Markup

Apply a markup to your cost to get the selling price, and see the profit margin it produces. Understand why a markup and a margin are not the same percentage.

Calculate
Business & Marketing

Break-Even

Find how many units — and how much revenue — you need to cover all your costs and break even. Enter fixed costs, price and variable cost per unit.

Calculate
Business & Marketing

ROI

Calculate ROI (return on investment) as a percentage from the amount invested and the amount returned. See the profit and the return in one place.

Calculate
Business & Marketing

ROAS

Calculate ROAS (return on ad spend): how much revenue each dollar of advertising brought in. The core metric for judging paid campaigns.

Calculate
Business & Marketing

Sales Commission

Calculate a sales commission from the amount sold and the commission rate, plus any base pay. See the commission and the total the salesperson takes home.

Calculate
Business & Marketing

Selling Price

Find the selling price that hits your target profit margin after fees, from your cost — using the margin divisor method, not a simple markup.

Calculate