Profit Margin Calculator

This free profit margin calculator finds gross, operating and net margin from revenue and costs — enter revenue, COGS and operating expenses and get every margin instantly, plus the price you need to charge for any target margin. It shows gross, operating and net margin in one view, adds reverse target-margin pricing, and runs 100% client-side with no signup.

Profit Margin Calculator

Gross, operating and net margin in one view, plus reverse pricing. Free, private, no signup.

Gross profit$40.00
Gross margin40.00%
Operating profit$25.00
Operating margin25.00%
Net profit$25.00
Net margin25.00%
Markup66.67%
Cost ratio60.00%

Reverse pricing: price for a target margin

Price$100.00
Profit at target margin$40.00

100% client-side — nothing is uploaded or stored.

How to use the Profit Margin Calculator

  1. Enter your revenue for the period.
  2. Enter COGS, your direct cost of goods sold.
  3. Enter operating expenses, then a tax rate if you want net margin after tax.
  4. Read gross, operating and net margin instantly, plus markup and cost ratio.
  5. Use reverse pricing: enter a cost and a target margin to get the price you must charge.

How to calculate profit margin

Profit margin is profit divided by revenue, multiplied by 100. Gross margin uses gross profit (revenue minus COGS), operating margin uses operating profit (gross profit minus operating expenses), and net margin uses net profit after tax. For example, $100 of revenue with $60 of COGS gives $40 of gross profit and a 40% gross margin. See also the Markup Calculator and the COGS Calculator for the inputs behind these figures.

Gross vs operating vs net margin

Gross margin shows how efficiently you produce or buy what you sell. Operating margin adds rent, wages, marketing and other running costs, so it shows how the business itself performs. Net margin goes one step further and deducts tax and any other remaining costs, giving the share of revenue that is left as final profit. A healthy business can have a strong gross margin and a much thinner net margin once overheads are included.

Markup vs margin: why they differ

Markup is profit as a percentage of cost, while margin is profit as a percentage of price, so the same sale gives two different percentages. A $60 cost sold for $100 gives $40 of profit: that is a 66.67% markup on cost but only a 40% margin on price. Confusing the two is a common pricing mistake — a 40% markup is not a 40% margin. For print-on-demand sellers, the POD Profit Calculator applies the same idea to product-by-product pricing.

Limitations

This calculator uses the figures you enter and does not audit them: it cannot tell whether COGS, operating expenses or tax are complete, and it treats a single period as representative. Seasonal costs, one-off expenses, discounts and returns can all change the real margin, so use the result as a pricing guide and check it against your accounts.

Frequently asked questions

What is a good profit margin?

It depends on the industry, but many healthy businesses aim for a net margin of 10% to 20%. Retail is often lower and software is often higher, so compare gross, operating and net margin together and track the trend over time rather than judging a single month alone.

How do you calculate profit margin?

Divide profit by revenue and multiply by 100. For gross margin, use gross profit (revenue minus COGS); for operating margin, use operating profit; for net margin, use net profit after tax. For example, $40 of profit on $100 of revenue is a 40% margin.

What is the difference between margin and markup?

Markup is profit as a percentage of cost, while margin is profit as a percentage of selling price. A $60 cost sold for $100 has a 66.67% markup but only a 40% margin, because the denominators are different.

How do I price for a 40% margin?

Divide your cost by 1 minus the target margin as a decimal: price equals cost divided by 0.60 for a 40% margin. A $60 cost therefore needs a $100 price, and the reverse-pricing section of this calculator does that calculation for you.