Profit Margin Calculator
Enter your cost and selling price to see your profit margin, profit per unit and markup instantly. Switch tabs to work out the selling price you need for a target margin or markup.
How Do You Use This Profit Margin Calculator?
This profit margin calculator has three tabs, because people usually arrive with one of three questions. Pick the tab that matches yours.
- Find my margin. You already know what an item costs you and what you sell it for. Enter both, and the calculator shows your profit margin, your profit per unit and your markup.
- Find my selling price. You know your cost and you have a margin in mind, for example 40%. Enter both, and the margin calculator tells you the price you need to charge.
- Price from markup. Some shops and wholesalers price by adding a fixed markup to cost, such as 50%. Enter the cost and the markup, and you get the selling price and the margin that price really gives you.
Two optional fields make the profit margin calculator even more useful. Units sold multiplies the profit, so you can see what a batch of 200 units or a month of orders will earn. Currency changes the symbol, so the numbers read naturally whether you sell in dollars, pounds, euros or rupees. The colored bar under the profit margin calculator results shows how much of each sale goes to cost and how much stays with you as profit.
If the selling price is lower than the cost, the profit margin calculator turns the result red and tells you how much each sale loses. That warning alone has saved plenty of small sellers from running a "sale" that quietly cost them money.
What Is Profit Margin?
Profit margin is the share of the selling price that you keep as profit. It is written as a percentage. A 30% margin means that out of every 100 you take in, 30 is profit and 70 went on costs.
That is why margin matters, and why a profit margin calculator is one of the first tools a new seller should bookmark. Two products can both earn 20 per sale, but if one sells for 40 and the other sells for 400, they are very different businesses. The first has a 50% margin. The second has a 5% margin, which leaves almost no room for a discount, a returned parcel or a price rise from a supplier.
Most people who use a profit margin calculator are looking at gross profit margin, which compares the selling price with the direct cost of the product. Accountants also talk about operating margin and net margin. We cover all three below, because each one answers a different question.
What Is the Profit Margin Formula?
The basic margin formula is short:
Profit = Selling price − Cost
Profit margin (%) = (Profit ÷ Selling price) × 100
Here is a quick example you can copy into the profit margin calculator. You buy a phone case for $12 and sell it for $30.
- Profit = $30 − $12 = $18
- Profit margin = $18 ÷ $30 × 100 = 60%
Notice that the profit is divided by the selling price, not by the cost. That small detail is the source of most margin mistakes, and it is exactly what a good profit margin calculator gets right for you every time. Dividing by cost gives you markup instead, which is a different number. More on that in a moment.
For a whole business, you use the same idea with totals: total revenue minus total cost of goods sold (COGS), divided by total revenue. The Corporate Finance Institute's guide to profit margin walks through the accounting version in more detail if you want the textbook view.

What Is the Difference Between Gross, Operating and Net Profit Margin?
All three are a type of profit percentage, but they count different costs.
- Gross profit margin only subtracts the direct cost of what you sold: stock, raw materials, packaging, the freelancer you paid for that specific job. It tells you whether the product itself is priced well.
- Operating profit margin also subtracts running costs such as rent, salaries, software, marketing and utilities. It tells you whether the business model works.
- Net profit margin subtracts everything, including interest and tax. It is the bottom line: what is really left for the owner.
A simple yearly example makes the gap clear. A profit margin calculator handles the gross line; the rest comes from your accounts.
| Line | Amount | Margin |
|---|---|---|
| Revenue | 500,000 | 100% |
| Cost of goods sold | 300,000 | |
| Gross profit | 200,000 | 40% gross margin |
| Operating expenses (rent, wages, ads) | 120,000 | |
| Operating profit | 80,000 | 16% operating margin |
| Interest and tax | 30,000 | |
| Net profit | 50,000 | 10% net margin |
A 40% gross margin sounds healthy, yet only 10% reaches the owner. This is why it pays to know both numbers. Use the profit margin calculator above for gross margin on each product, and look at your full accounts for net profit margin. If you are valuing a company to buy or sell, our guide on business valuation and profitability explains how buyers look at these figures.
What Is the Difference Between Margin and Markup?
This is the question that trips up more sellers than any other, so it is worth slowing down.
- Margin is profit divided by the selling price.
- Markup is profit divided by the cost.
Same profit, different base, which is why a profit margin calculator should always show both. Go back to the phone case: cost $12, price $30, profit $18. The margin is 18 ÷ 30 = 60%. The markup is 18 ÷ 12 = 150%. Both are correct. They simply answer different questions.
Margin tells you how much of each sale you keep. Markup tells you how much you added on top of cost. Retail buyers and wholesalers often talk in markup, while finance teams and investors almost always talk in margin. Mixing them up is expensive. If you "add a 30% markup" thinking it gives you a 30% margin, you actually end up with about 23%.
That is why this profit margin calculator works as a markup calculator and a margin calculator at the same time. Every result shows both numbers side by side.
Markup to Margin Conversion Table
| Markup | Margin |
|---|---|
| 10% | 9.09% |
| 20% | 16.67% |
| 25% | 20% |
| 33.33% | 25% |
| 50% | 33.33% |
| 75% | 42.86% |
| 100% | 50% |
| 150% | 60% |
| 200% | 66.67% |
| 300% | 75% |
The conversion formulas, if you want to check the profit margin calculator by hand:
- Margin = Markup ÷ (1 + Markup)
- Markup = Margin ÷ (1 − Margin)
Use decimals in these formulas, so 50% becomes 0.5. A 100% markup, for example, means you doubled the cost, which is a 50% margin.
How Do You Find the Selling Price for a Target Margin?
Many owners use a profit margin calculator backwards. They decide they need a certain margin to cover overheads and then set the price. The formula is:
Selling price = Cost ÷ (1 − Target margin)
Say an item costs $45 and you want a 40% margin. The price is 45 ÷ (1 − 0.40) = 45 ÷ 0.60 = $75. Your profit is $30, which is 40% of $75. Check it in the "Find my selling price" tab of the profit margin calculator and you will get the same answer.
A common shortcut is to take the cost and add 40%. That gives $63, not $75, and the real margin at $63 is only about 28.6%. On one item the gap looks small, and a margin calculator makes it obvious. On a year of sales it can be the difference between a good year and a worrying one.
One more thing the formula shows: a margin of 100% is impossible, because you would be dividing by zero. Even a "free" digital product has some cost, such as payment fees or hosting. The profit margin calculator warns you if you type 100% or more.

What Are Some Real Profit Margin Examples?
Numbers make more sense with real situations. Here are four quick examples worked out with the same profit margin calculator formulas.
Online Store Selling a Product
A seller buys water bottles at $8 each, pays $2 per unit for packaging and payment fees, and sells them for $25. Cost per unit is $10, so profit is $15. Margin is 60% and markup is 150%. With 300 sales a month, gross profit is $4,500 before ads and other running costs.
Freelancer or Agency Project
A designer quotes £2,000 for a website. Direct costs, such as a paid theme, stock images and a subcontracted developer, come to £700. Profit is £1,300, which gives a 65% margin and a markup of about 185.7%. If the client asks for a 10% discount, the price drops to £1,800, profit drops to £1,100, and the margin falls to about 61.1%.
Restaurant Dish
A dish sells for Rs 1,200 and the ingredients cost Rs 450. Gross profit is Rs 750, so the food margin is 62.5% and the markup is about 166.7%. Restaurants then need that gross profit to pay staff, rent and gas, which is why their net margins are much lower.
Reseller Using a Fixed Markup
A wholesaler adds a 50% markup to everything. An item that costs $40 sells for $60. Profit is $20, and the margin is 33.33%, not 50%. Type it into the "Price from markup" tab and the margin calculator shows the real figure straight away.
What Is a Good Profit Margin?
There is no single good number. A good margin depends on your industry, your volume and your costs. A supermarket can survive on a thin margin because it sells huge volumes every day. A software company needs a high margin because it spends heavily on development before it sells anything.
Professor Aswath Damodaran at NYU Stern publishes margin data by industry for US companies. His figures, based on data as of January 2026, give a useful sense of scale:
| Industry (US) | Gross margin | Net margin |
|---|---|---|
| Grocery and food retail | 26.31% | 1.32% |
| General retail | 33.18% | 5.61% |
| Restaurants and dining | 32.24% | 9.37% |
| Advertising | 36.24% | −0.30% |
| Apparel | 56.88% | 3.85% |
| Software | 71.72% | 25.49% |
| All industries | 37.76% | 9.74% |
These are averages for large public companies, so a small business can look quite different from what your own profit margin calculator results show. Still, they help. If your gross margin is far below the average for your sector, your pricing or your supplier costs probably need attention. If it is far above, check that you are counting all of your direct costs.
As a rough rule, many small product businesses aim for a gross margin of 40% or more so there is room for marketing, returns and overheads. Service businesses often aim higher, because their main cost is time. Run your own numbers through the profit margin calculator and compare them with your sector.
How Can You Improve Your Profit Margin?
Once the profit margin calculator has shown you your margin, the next question is how to grow it. There are only a few levers, and each one has a cost of its own.
- Raise prices carefully. Even a small increase lifts margin because the extra money is almost all profit. Test it on one product or one group of customers first.
- Lower the cost of goods. Ask suppliers for volume pricing, compare two or three suppliers each year, and cut packaging that customers do not notice.
- Sell more of your high-margin items. Use the margin calculator on every product, then give the best ones better placement, bundles and more ad budget.
- Cut waste in the process. Returns, mistakes and manual admin all eat margin. Our guides on streamlining business operations and business process automation show where small fixes save real money.
- Lower what it costs to win a customer. Paid ads can swallow a margin fast. Content that keeps bringing in buyers for free helps a lot, and Semityn Journal's list of content marketing examples is a good source of ideas.
For a wider view of how pricing, growth and cash fit together, read our guide to the business finance trinity.
What Mistakes Do People Make When Calculating Margin?
Even experienced owners get these wrong. A profit margin calculator helps, but only if the numbers going in are right.
- Dividing by cost instead of price. That gives markup, not margin. It is the most common mistake by far.
- Leaving costs out. Shipping, packaging, payment fees, platform commission and returns are all part of the cost of a sale. Add them to the cost field.
- Forgetting about discounts. Run the discounted price through the profit margin calculator before you launch a sale. A 20% discount does not cut your margin by 20 points; it can cut your profit by half or more.
- Mixing tax into the price. If your price includes sales tax or VAT, take the tax out first. The tax is not yours to keep.
- Looking at averages only. One star product can hide three loss-makers. Check the margin of each product, not just the store as a whole.
Who Should Use a Margin Calculator?
Almost anyone who sells something can use a margin calculator, and a free profit margin calculator like this one costs nothing to try. Online store owners use it to price new products and plan sales. Freelancers and agencies use it to check whether a quote is worth taking. Restaurant owners use it to cost menu items. Wholesalers and resellers use it to turn their markup into a real margin. Students use a profit margin calculator to check homework answers.
Because it runs in your browser, the profit margin calculator does not store your numbers. You can try different prices as many times as you like until you find one that works for you and for your customers.
Frequently Asked Questions About the Profit Margin Calculator
How do I calculate profit margin?
Subtract the cost from the selling price to get the profit, then divide the profit by the selling price and multiply by 100. For example, a product that costs 60 and sells for 100 has a profit of 40 and a profit margin of 40%.
What is the difference between margin and markup?
Margin is profit divided by the selling price, while markup is profit divided by the cost. A product that costs 50 and sells for 100 has a 50% margin but a 100% markup. This calculator shows both numbers for every result.
How do I find the selling price from a margin?
Divide the cost by one minus the target margin. For a cost of 45 and a 40% margin, the price is 45 divided by 0.6, which is 75. Use the "Find my selling price" tab to do this instantly.
What is a good profit margin for a small business?
It depends on the industry. Many product businesses aim for a gross margin of 40% or more, while grocery retailers work on much thinner margins. NYU Stern data for January 2026 puts the average US gross margin across all industries at about 37.8%.
Can a profit margin be more than 100%?
No. A margin is a share of the selling price, so it can never reach 100% unless the cost is zero. Markup, however, can be far above 100%, for example a 300% markup gives a 75% margin.
Is gross margin the same as net margin?
No. Gross margin only subtracts the direct cost of goods sold. Net margin subtracts every cost, including rent, salaries, interest and tax, so it is always lower than gross margin.
Does this profit margin calculator include tax?
No. Enter prices without sales tax or VAT, and add shipping, packaging and payment fees to the cost field if you want them included in the result.