Profit Margin Calculator

Work out how much profit a sale makes. Enter a selling price and a cost to find the gross profit, the profit margin, and the markup. Or start from a cost and a target margin to find the price you need to charge. The result updates as you type.

What do you want to find?

Your result

Profit margin—
Gross profit—
Profit margin—
Markup—
Selling price—
Cost—

Enter your numbers to see the result.

Worked Example

Example, with the default numbers. You sell an item for $100 and it costs you $60. The gross profit is $100 minus $60, which is $40. The profit margin is $40 divided by the selling price of $100, which is 40%. The markup is $40 divided by the cost of $60, which is about 66.67%. Going the other way, if an item costs $60 and you want a 40% margin, the price you need is $60 divided by (1 minus 0.40), which is $60 divided by 0.60, or $100. Both directions agree, because the same $40 profit is 40% of the $100 price and 66.67% of the $60 cost.

Common Mistakes

Confusing margin with markup. Margin divides the profit by the selling price, while markup divides it by the cost. A 40% margin on a $100 sale is a 66.67% markup on a $60 cost. They are different numbers for the same sale, so say which one you mean.

Forgetting costs beyond the purchase price. The cost here should include everything it takes to make the sale: materials, shipping, packaging, payment fees, and any marketplace commission. Leaving those out makes the margin look better than it really is.

Setting a price from a markup when you need a margin. A 40% markup on a $60 cost gives a price of $84, but a 40% margin needs a price of $100. If your goal is a margin, use the second mode of this calculator, or the price will come out too low.

Treating gross profit as net profit. Gross profit only subtracts the direct cost of the item. Rent, wages, advertising, and taxes still come out of it, so the money you keep at the end of the month is less than the gross profit shown here.

Related Tools

Work out a discount with the Discount Calculator, see what a sale is worth after tax with the VAT and GST Calculator, plan your monthly budget with the Budget Calculator, or browse every calculator in the Tools hub.

Frequently Asked Questions

What is profit margin?

Profit margin is the share of the selling price that is profit. It is gross profit divided by the selling price, times 100. A $40 profit on a $100 sale is a 40% margin, which means 40 cents of every dollar of sales is gross profit before other expenses.

What is the difference between margin and markup?

Margin is profit as a share of the selling price, while markup is profit as a share of the cost. For the same sale, markup is always the larger number, because the cost is smaller than the price. A 40% margin equals a 66.67% markup when the cost is $60 and the price is $100.

How do I work out the price for a target margin?

Divide the cost by one minus the margin as a decimal. For a $60 cost and a 40% margin, divide $60 by 0.60 to get $100. Use the second mode of this calculator and it does the division for you.

What is a good profit margin?

It depends on the business. Grocery stores often run on margins of 1 to 3%, while software and digital products can run above 70%. Compare your margin with businesses like yours, and remember that a low margin can still pay well if you sell a large volume.

Is profit margin the same as net profit margin?

No. The margin on this page is the gross margin, which subtracts only the direct cost of the item. Net profit margin subtracts every expense, including rent, wages, marketing, and taxes, so it is always lower than the gross margin.