Skip to main content
Tallyvane
Open menu

How to calculate profit margin: gross, operating and net

Profit margin is the share of each dollar of sales you keep as profit. There are three versions, each answering a different question. Here is how to work out all three, with one set of numbers carried through.

Updated 4 min readHow we check facts

Gross, operating or net: which margin matters?

Key takeaways

  • Profit margin = profit ÷ revenue × 100. Which profit you use decides which margin you get.
  • Gross margin subtracts only the direct cost of what you sold. Operating margin also subtracts overheads. Net margin subtracts everything, including interest and tax.
  • Margin and markup are different: a 40% margin is a 66.7% markup.
  • To price for a target margin, divide cost by (1 − margin). A $30 item at a 40% margin sells for $50.

The basic formula

Every profit margin is a profit figure divided by revenue, shown as a percentage. If you sell $100 of goods and keep $25 as profit, your margin is 25%.

The three common margins differ only in which costs come out before you divide. Each tells you something different, so most businesses track all three.

  • Gross margin: is each sale priced well above what it costs you to make or buy?
  • Operating margin: does the business make money from its day-to-day work, after rent, wages and other overheads?
  • Net margin: what is left for the owners after every cost, including interest and tax?

Profit margin % = Profit ÷ Revenue × 100

At a glance: Profit margin = profit ÷ revenue × 100. Which profit you use decides which margin you get. Gross margin subtracts only the direct cost of what you sold. Operating margin also subtracts overheads. Net margin subtracts everything, including interest and tax. Margin and markup are different: a 40% margin is a 66.7% markup. To price for a target margin, divide cost by (1 − margin). A $30 item at a 40% margin sells for $50.
At a glance: the key facts from this guide.

Gross profit margin

Gross profit is revenue minus the cost of goods sold (COGS). COGS is the direct cost of the products you sold: what you paid to buy or make them, including materials, direct labor and inbound shipping. For a service business it is the direct cost of delivering the service, such as subcontractors.

COGS counts only the goods you actually sold in the period, not everything you bought. Stock still on the shelf at the end of the period is not part of it.

Gross margin is the number to watch when you set prices, choose suppliers or decide which products to push. A falling gross margin usually means costs rose and prices did not.

Gross profit = Revenue − Cost of goods sold Gross margin % = Gross profit ÷ Revenue × 100

Free toolProfit margin calculatorFind your margin and markup from cost and price, or the price you need for a target margin.

Operating margin

Operating profit, also called operating income or income from operations, is gross profit minus operating expenses. Operating expenses are the costs of running the business that are not tied to a single sale: rent, salaries, software, marketing, insurance, accounting fees and depreciation.

Operating margin shows whether the business model works before financing and tax. Two companies selling the same products at the same prices can have very different operating margins if one runs a much leaner operation.

Operating profit = Gross profit − Operating expenses Operating margin % = Operating profit ÷ Revenue × 100

Net profit margin

Net profit, also called net income or the bottom line, is what is left after every cost: operating expenses, interest on loans and income tax, plus any one-off gains or losses.

Net margin is the broadest measure of profitability. It is affected by how the business is financed and taxed, so it is less useful than operating margin for comparing how well two businesses are run, but it is the number that tells you what the owners actually earn.

Net profit = Operating profit − Interest − Taxes (± other items) Net margin % = Net profit ÷ Revenue × 100

Worked example: all three margins from one profit and loss statement

A small online homeware shop has $250,000 of sales in a year. The products it sold cost $140,000. Rent, wages, software and advertising come to $75,000. It pays $5,000 of interest on a loan and $6,000 of income tax.

The shop keeps 44 cents of each sales dollar after paying for the goods, 14 cents after running the business, and 9.6 cents at the end. If its gross margin slipped by 4 points to 40%, gross profit would fall by $10,000, and with the same overheads, interest and tax, net profit would drop from $24,000 to $14,000. That is why small changes in gross margin matter so much.

Profit and loss statement and margins
LineAmountMargin
Revenue$250,000
Cost of goods sold−$140,000
Gross profit$110,00044.0% gross margin
Operating expenses−$75,000
Operating profit$35,00014.0% operating margin
Interest−$5,000
Income tax−$6,000
Net profit$24,0009.6% net margin
Free toolProfit and loss statement generatorBuild a simple P&L from your revenue and costs, see gross and net margin, and save it as PDF.
Worked example: all three margins from one profit and loss statement

Margin vs markup

Markup is profit as a share of cost. Margin is profit as a share of the selling price. The same sale always has a higher markup than margin. An item that costs $30 and sells for $50 has a $20 profit: that is a 40% margin ($20 ÷ $50) but a 66.7% markup ($20 ÷ $30).

Confusing the two is a common pricing mistake. If you want a 40% margin and add 40% to a $30 cost, you charge $42 and get a margin of only 28.6%.

Markup % = (Price − Cost) ÷ Cost × 100 Markup needed for a margin = Margin ÷ (1 − Margin)

Gross margin and the markup that produces it
Gross marginMarkup on costPrice of a $30 item
20%25%$37.50
25%33.3%$40.00
30%42.9%$42.86
40%66.7%$50.00
50%100%$60.00
60%150%$75.00
Free toolMarkup calculatorAdd a markup to your cost to get a selling price, or find the markup on a price you already charge.

Pricing for a target margin, and ways to improve it

To set a price that gives a chosen gross margin, divide the cost by one minus the margin as a decimal. For a 40% margin on a $30 cost, divide $30 by 0.6 to get $50.

There are only two levers on gross margin: price and cost. On the $30 item selling for $50, raising the price 5% to $52.50 lifts the margin from 40% to 42.9%. Cutting the cost by $1.50 to $28.50 at the original price lifts it to 43%. Fees count as costs too: if you sell through a marketplace or take cards, include those fees in cost when you work out the margin on each sale.

Operating and net margins improve when revenue grows faster than overheads. Many overheads stay roughly fixed as sales rise, so the same business at higher volume usually has a better operating margin.

Price = Cost ÷ (1 − Target margin % ÷ 100)

Frequently asked questions

What is a good profit margin?

It depends heavily on the industry. Grocery and fuel businesses often work on thin gross margins, while software and many services run much higher. Compare your margins with businesses like yours and with your own past results rather than a single benchmark.

Is profit margin the same as gross margin?

Not always. “Profit margin” on its own often means net margin, but people also use it for gross margin. Say which one you mean, and check which one someone else is quoting.

Do I include shipping and payment fees in cost of goods sold?

Shipping to bring stock in is usually part of COGS. Shipping to customers and payment or marketplace fees are often treated as selling expenses instead. For per-product pricing, it is safest to include every cost that comes with each sale so the margin reflects what you really keep.

Can profit margin be negative?

Yes. A negative margin means costs were higher than revenue, so the business or product lost money in that period. A negative gross margin means you are selling below cost, which needs fixing before anything else.

Should I use margin or markup to set prices?

Either works if you are consistent. Many retailers think in markup because it starts from cost, but margin is what shows up in your accounts. Use the table or the formula above to convert between them.

Sources

General information, not financial, tax or legal advice. Rules change and differ by place; check with the official source or a qualified adviser before you act.