ILOMRAHomeStudy topicsFree toolsTest zoneSearch any topic
Free online tool

Profit Margin Calculator

Find your profit, profit margin and markup from cost and selling price, or work out what price to charge for the margin you want.

Last updated: 24 November 2026

Profit from cost and price

Price needed for a target margin

How it works

Profit = selling price − cost
Margin % = profit ÷ selling price × 100
Markup % = profit ÷ cost × 100
Price for margin m = cost ÷ (1 − m/100)

Margin and markup are not the same. If an item costs 800 and sells for 1,000, the profit is 200. The margin is 20% of the selling price, but the markup is 25% of the cost. To get a 30% margin on a cost of 800, you must sell at 1,142.86, not at 800 + 30%.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost, so markup is always the larger number.

How do I calculate profit percentage?

Divide the profit by the cost price and multiply by 100. That is the markup. For margin, divide by the selling price instead.

How do I set a price for a 25% margin?

Divide the cost by 0.75. For example a cost of 600 gives a price of 800.

Can the profit margin calculator show a loss?

Yes. If the selling price is below the cost, the result is shown as a loss with a negative margin.

How do I include a discount?

First work out the sale price with the Discount Calculator, then enter it here as the selling price.

More free tools

All free tools

Studying this topic?

Free notes and MCQs: Accounting equation and financial statements.