Margin Calculator
Profit margin, markup, and gross, operating and net margin
Enter a cost and a price to see your profit margin and markup, or find the price you need for the margin you want. Running the numbers for the whole business? Switch to gross, operating and net margin. Free, no signup.
Selling price
100.00
Profit per unit
60.00
Margin
60.0%
Markup
150.0%
Margin and markup equivalents
| Margin | Same as markup | Price at 40.00 cost |
|---|---|---|
| 10% | 11.1% | 44.44 |
| 20% | 25.0% | 50.00 |
| 25% | 33.3% | 53.33 |
| 30% | 42.9% | 57.14 |
| 40% | 66.7% | 66.67 |
| 50% | 100.0% | 80.00 |
| 60% | 150.0% | 100.00 |
| 70% | 233.3% | 133.33 |
| 75% | 300.0% | 160.00 |
| 80% | 400.0% | 200.00 |
Amounts work in any currency. Nothing you enter is saved; the numbers are added to the page address so you can share or bookmark them.
Add the Margin Calculator to your site.
Free for blogs, newsletters, client sites and courses. Paste the code into an HTML or custom code block. Please keep the credit line under the tool.
<iframe id="am-profit-margin-calculator" src="https://www.ahmadmujtaba.com/tools/profit-margin-calculator?embed=1" title="Margin Calculator" width="100%" height="950" style="border:0;max-width:100%;" loading="lazy"></iframe>
<p style="font-size:13px;margin:6px 0 0;">Free <a href="https://www.ahmadmujtaba.com/tools/profit-margin-calculator">Margin Calculator</a> by <a href="https://www.ahmadmujtaba.com/">Ahmad Mujtaba</a></p>
<script>addEventListener("message",function(e){if(e.origin==="https://www.ahmadmujtaba.com"&&e.data&&e.data.amEmbed==="profit-margin-calculator"){var f=document.getElementById("am-profit-margin-calculator");if(f)f.style.height=e.data.height+"px";}});</script>The script line resizes the frame to fit the tool. If your site strips scripts, the tool still works at the fixed height and scrolls inside the frame.
How to calculate margin and markup.
Margin is profit as a share of the selling price: (price − cost) ÷ price. Markup is profit as a share of the cost: (price − cost) ÷ cost. A product that costs 40 and sells for 100 makes 60 profit, which is a 60% margin and a 150% markup.
Confusing the two is a common pricing mistake. A 50% markup is only a 33% margin, and a 100% markup (doubling the cost) is a 50% margin. To price for a target margin, divide the cost by one minus the margin: for a 60% margin on a 40 cost, 40 ÷ 0.4 = 100.
Gross margin only takes off what the products cost. Operating margin also takes off the costs of running the business, such as ads, salaries and software. Net margin takes off everything, including interest and taxes, so it is what you actually keep.
For a Shopify store, a healthy gross margin on paper can still disappear per order. Payment fees, shipping you don't charge for, ads and returns all come out of it, which is why the Shopify profit margin calculator works them out order by order.
Common questions.
How do I calculate profit margin?
Subtract the cost from the selling price, divide by the selling price and multiply by 100. A product that costs 30 and sells for 75 makes 45 profit, and 45 ÷ 75 × 100 = 60% margin.
What's the difference between margin and markup?
Margin is profit divided by the selling price. Markup is profit divided by the cost. The same product always has a higher markup than margin: a 50% margin is a 100% markup.
How do I convert markup to margin?
Margin = markup ÷ (100 + markup) × 100. A 25% markup is 25 ÷ 125 = 20% margin. To go the other way, markup = margin ÷ (100 − margin) × 100, so a 40% margin is a 66.7% markup.
What is the difference between gross, operating and net margin?
Gross margin is revenue minus the cost of the goods sold, as a share of revenue. Operating margin also subtracts operating expenses such as ads, salaries, rent and software. Net margin subtracts everything, including interest and taxes.
What is a good profit margin for an online store?
It varies by category. Many direct-to-consumer brands aim for a gross margin of 60% or more on products, because advertising, shipping, fees and returns all come out of it. Resellers of branded goods often work with much thinner margins.
How do I calculate selling price from a target margin?
Price = cost ÷ (1 − margin). For a 40 cost and a 60% margin, 40 ÷ 0.4 = 100. Choose Price for a target margin in the calculator to do it for you.
Selling on Shopify? The Shopify profit margin calculator takes off payment fees, shipping, ad spend and returns per order, and the Shopify fee calculator shows what each plan charges. Then see how much you can spend on ads with the break-even ROAS calculator, or what a sale does to your margin with the discount impact calculator.
Need help making your store more profitable?
I'm Ahmad Mujtaba, a Shopify Select Partner. My team builds and maintains Shopify stores, from speed and SEO to checkout and tracking.