Skip to content
Q3.Labs, Home

Free Tool

Profit Margin Calculator

Enter a cost and a selling price to see your profit (or loss), profit margin and markup, with the working shown. Margin and markup are not the same thing, and the calculator shows both.

  • Free
  • · No signup
  • · Margin and markup
  • · Runs in your browser

Private by design. Calculations run in your browser; the numbers you enter are not sent to Q3 Labs.

What the item or service cost you

What you sold it for

Display only: no currency conversion.

Result

Enter the cost and the revenue to see your profit, margin and markup.

What is a profit margin calculator?

A profit margin calculator tells you how much of each sale you keep. You enter what something cost you and what you sold it for, and it works out the profit and the profit margin: the profit as a percentage of the selling price.

This calculator computes the simple margin on the figures you enter. It isn't a company's accounting net margin, which subtracts every expense, overheads, interest and tax included. See the FAQ below for how that differs from gross margin.

How to calculate profit margin

  1. Work out the profit: revenue − cost. For cost 600 and revenue 1,000, that's 400.
  2. Divide the profit by the revenue: 400 ÷ 1,000 = 0.4.
  3. Multiply by 100 to get a percentage: 0.4 × 100 = 40%.

Profit margin formula

Profit = Revenue − Cost

Profit margin = Profit ÷ Revenue × 100

Markup = Profit ÷ Cost × 100

Profit margin vs markup

These two are often confused, and mixing them up is one of the most common pricing mistakes. They describe the same profit, measured against different amounts:

Profit margin

"How much of the selling price is profit?"

Profit ÷ Revenue × 100

Markup

"How much was added on top of the cost?"

Profit ÷ Cost × 100

Say an item costs ₹60.00 and sells for ₹100.00, a profit of ₹40.00. The margin is ₹40.00 ÷ ₹100.00 × 100 = 40.00%, but the markup is ₹40.00 ÷ ₹60.00 × 100 = 66.67%. Same sale, two different percentages.

Margin can never reach 100% (the profit can't exceed the price), while markup has no upper limit. A 100% markup doubles the cost, but it is only a 50.00% margin.

Profit margins and the equivalent markups
Profit marginEquivalent markup
10.00%11.11%
20.00%25.00%
25.00%33.33%
33.33%49.99%
40.00%66.67%
50.00%100.00%
60.00%150.00%
75.00%300.00%

How to calculate markup

Divide the profit by the cost and multiply by 100, or use the Markup Calculator, which also finds the selling price for a markup. To convert between the two: markup = margin ÷ (100 − margin) × 100, and margin = markup ÷ (100 + markup) × 100.

Profit margin examples

A profitable sale

Cost
₹600.00
Revenue
₹1,000.00
Profit
₹400.00
Margin
40.00%
Markup
66.67%

A sale at a loss

Cost
₹1,000.00
Revenue
₹800.00
Loss
₹200.00
Margin
-25.00%
Markup
-20.00%

A higher margin

Cost
$40.00
Revenue
$100.00
Profit
$60.00
Margin
60.00%
Markup
150.00%

In the last example, a 150% markup is a 60% margin: marking something up by 150% doesn't mean 150% of the price is profit.

How to calculate profit from cost and revenue

Profit is simply revenue minus cost. If the answer is negative, it's a loss.

You can also work backwards from a margin you want:

  • Selling price for a target margin: price = cost ÷ (1 − margin ÷ 100). For a 40% margin on a cost of 600: 600 ÷ 0.6 = 1,000.00.
  • Maximum cost for a target margin: cost = price × (1 − margin ÷ 100). To keep a 40% margin at a price of 1,000: 1,000 × 0.6 = 600.00.

A common mistake is adding the margin to the cost: 600 plus 40% is 840, which is only a 28.57% margin.

Profit vs revenue vs cost

  • Revenue is the money received from sales: the selling price times the number sold.
  • Cost is what it cost to make, buy or deliver what you sold. Which costs you include depends on the question you're asking.
  • Profit is the difference between the two: revenue − cost.

Include only the direct cost of the item and you get a gross margin. Include overheads such as rent, salaries and marketing and the margin falls toward an operating or net margin. The calculator uses exactly the cost you enter.

Understanding a negative profit margin

A negative margin means a loss. Selling for ₹800.00 something that cost ₹1,000.00 loses ₹200.00, a margin of -25.00% and a markup of -20.00%. The calculator labels this result "Loss" and says so in words, so it's never shown as profit.

Frequently Asked Questions

How do I calculate profit margin?

Subtract the cost from the revenue to get the profit, then divide the profit by the revenue and multiply by 100. Cost 600 and revenue 1,000 give a profit of 400 and a margin of 400 ÷ 1,000 × 100 = 40%.

What is the profit margin formula?

Profit margin = (Revenue − Cost) ÷ Revenue × 100, or Profit ÷ Revenue × 100.

What is the difference between margin and markup?

Margin is profit as a share of the selling price; markup is profit as a share of the cost. With cost 60 and price 100, the profit of 40 is a 40.00% margin but a 66.67% markup. They describe the same profit from different starting points, so they're never the same number (except when both are 0).

How do I calculate markup?

Markup = Profit ÷ Cost × 100. Cost 600 and price 1,000 give a markup of 400 ÷ 600 × 100 = 66.67%.

Can profit margin be more than 100%?

No. Profit can never be more than the selling price, so the margin tops out just below 100% (it is exactly 100% only if the cost is 0). Markup, on the other hand, can be any size: 150%, 300% or more.

What does a negative profit margin mean?

It means a loss: you sold for less than it cost. Cost 1,000 and revenue 800 give a loss of 200 and a margin of -25.00%. The calculator labels the result "Loss" rather than "Profit".

Why does it say the margin is not defined?

Margin divides by revenue, so with revenue of 0 there's nothing to divide by. The same applies to markup when the cost is 0. The calculator still shows the profit or loss and explains which figure can't be calculated.

Is this the same as gross margin or net margin?

Not automatically. The calculator works out the simple margin on the cost and revenue you enter. If you enter revenue and cost of goods sold, that is the gross margin. A business's operating or net margin also subtracts overheads, interest and tax, so it needs those costs included.

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

Divide the cost by (1 − margin ÷ 100). For a 40% margin on a cost of 600: 600 ÷ 0.6 = 1,000.00. Adding 40% to the cost instead would only give a 28.57% margin.

Can I enter decimals and large numbers?

Yes. Decimals, thousands separators and amounts up to 1 trillion are accepted. Negative amounts aren't, because costs and revenues can't be below zero.

Does the currency selector convert currencies?

No. It only adds a symbol to the results. Margins and markups are percentages, so they're the same whatever the currency.

Are my numbers saved or sent anywhere?

No. The calculation runs in your browser; the numbers you enter are not sent to Q3 Labs or stored.

Is this calculator free?

Yes. It is free and needs no account.

Explore more

Find how many sales you need to cover your costs with the Break-Even Point Calculator, work out a sale price and savings with the Percent Off Calculator, find a price before a change with the Reverse Percentage Calculator, or estimate what extra traffic could be worth with the SEO ROI Calculator. Browse all our free tools.

Keep exploring

Related services

Guides & articles

Tools

  • Percent Off CalculatorSee how much a percentage discount saves and the final sale price, with the formula and every step shown.
  • Salary Increase CalculatorCalculate a salary increase and new salary from a raise percentage, or the percentage change between an old a…

More from Q3 Labs

  • Free ToolsFree marketing and website tools from Q3 Labs.

We use cookies for analytics to understand site usage. Privacy Policy