Skip to content
DeviceCheckHub

Profit Margin Calculator

Margin, markup and profit from any two figures, the price for the margin you want, and what a discount really costs.

Your figures

Enter the cost and the selling price.

Prices for other margins

The selling price and markup that give each margin on your cost
MarginMarkupPrice
Enter your figures to see prices for other margins.

What a discount does

Enter a discount to see its effect on your profit.

How to use the profit margin calculator

  1. Choose which two figures you know: the cost and the selling price, or one of them with the margin or markup you want.
  2. Enter them. The cost is what the item costs you to buy or make; the selling price is what the customer pays, before any sales tax.
  3. Read the margin, markup and profit, and the figure you didn’t enter. Add the number of units sold to see the totals.
  4. Compare the prices for other margins in the table, and enter a discount to see how much more you would need to sell to make the same profit.

Margin and markup formulas

Both start from the same profit: the selling price minus the cost.

Take an item that costs $60 and sells for $100. The profit is $40, so the margin is 40 ÷ 100 = 40% and the markup is 40 ÷ 60 = 66.67%. The same sale gives two quite different percentages, which is why it matters which one a price list, a supplier or a business plan means.

The most common pricing mistake

Adding a percentage to the cost does not give you that percentage as a margin. If you want a 40% margin on a $60 item and add 40% to the cost, you charge $84 and make $24, which is only a 28.57% margin. To keep 40% of the price, divide instead: 60 ÷ 0.60 = $100. The gap grows with the percentage: a 50% markup is a 33.33% margin, and a 100% markup, doubling the cost, is a 50% margin.

Markup to margin

MarkupMargin
10%9.09%
20%16.67%
25%20%
50%33.33%
75%42.86%
100%50%
150%60%
200%66.67%

Margin to markup

MarginMarkup
10%11.11%
20%25%
25%33.33%
30%42.86%
40%66.67%
50%100%
60%150%

Gross profit in your accounts

For a whole business, the same idea is gross profit. The IRS’s Tax Guide for Small Business (Publication 334) explains that a business selling products first figures its net receipts, gross receipts less returns and allowances, and then subtracts the cost of goods sold; the result is the gross profit. Its illustration for a retail business shows gross receipts of $400,000, less $14,940 of returns and allowances, for net receipts of $385,060; less $288,140 of cost of goods sold, the gross profit is $96,920. A business that sells services rather than products, the IRS adds, doesn’t have to figure the cost of goods sold, and its gross profit is the same as its net receipts.

In the same illustration, the cost of goods sold is the inventory at the start of the year, $37,845, plus purchases of $285,900 less $2,650 of items withdrawn for personal use, less the inventory at the end of the year, $32,955: $288,140. Enter your cost of goods sold as the cost and your net receipts as the price, and the margin the calculator shows is your gross margin for the year: in the IRS illustration, 96,920 ÷ 385,060 = 25.17%.

Checking your books with the margin

Publication 334 also suggests a test for retail and wholesale businesses: divide the gross profit by net receipts, which measures the average spread between the cost of goods sold and the selling price, and compare it with your markup policy. Little or no difference suggests the gross profit figure is accurate; a large difference may mean that sales, purchases or inventory were figured wrongly. In the IRS example, a retailer that prices to make a gross profit of 33⅓% on its sales has net receipts of $300,000 and cost of goods sold of $200,000, and $100,000 ÷ $300,000 confirms the 33⅓%. Note that the IRS states the policy as a share of sales; as a markup on cost, the same prices are a 50% markup.

What discounts cost you

A discount comes straight out of the profit, so it costs far more of the profit than the percentage suggests. On the item that costs $60 and sells for $100:

DiscountMarginMore sales needed
10% ($90)33.33%33.33%
20% ($80)25%100%
25% ($75)20%166.67%
30% ($70)14.29%300%

A 20% discount halves the profit on each sale, from $40 to $20, so you need to sell twice as many, 100% more, just to make the same total profit. Before running a sale, check that the extra sales are likely; the discount box above works this out for your own figures.

Gross margin and net margin

The margin on an item, or on the cost of goods sold, is a gross margin: it does not count the other costs of running the business, such as rent, wages, advertising and insurance, which the IRS treats as business expenses deducted after gross profit. Net margin is what is left after all of them, divided by sales. A healthy gross margin is the starting point, but only the net margin shows whether the business as a whole makes money.

Sales tax and your margin

Work out margins on prices without sales tax. The IRS notes that if you collect state and local taxes that are imposed on the buyer and pass them on to the government, you generally don’t include them in income, so they are not part of your price or your profit.

Your data stays on your device

Everything is worked out in your browser and nothing you type is sent anywhere. Only your currency choice is remembered on this device.

Frequently asked questions

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. An item that costs $60 and sells for $100 makes $40 of profit, a 40% margin.

What is the difference between margin and markup?

Both use the same profit, but margin divides it by the selling price and markup divides it by the cost. The $40 profit on a $60 item sold for $100 is a 40% margin and a 66.67% markup. Markup is always the larger number when there is a profit.

How do I find the selling price for a target margin?

Divide the cost by one minus the margin as a decimal. For a 40% margin on a $60 cost: 60 ÷ (1 − 0.40) = $100. Adding 40% to the cost would give only $84, a 28.57% margin.

Can a margin be more than 100%?

No. Margin is a share of the selling price, and profit can never be more than the whole price, so it stays below 100% while anything is spent on the item. Markup has no upper limit: selling a $10 item for $50 is a 400% markup.

What is a good profit margin?

It depends on the business. Gross margins differ widely between industries, and what matters is whether the gross profit covers your other costs, such as rent, wages and marketing, and leaves a profit. Compare with your own past results and with businesses like yours.

Is my information saved or sent?

Nothing is sent: everything is worked out in your browser. Only your currency choice is remembered on this device.

Last updated · About DeviceCheckHub