TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is net margin? Formula and worked example

Net margin is the share of revenue left after every expense, interest and tax. The formula, a full income-statement walk showing why a SaaS company with 78% gross margin can lose money, and industry benchmarks.

Oliver Reed Reviewed by Emma Collins Also called net profit margin Last updated Nov 29, 2026 Glossary

Quick answer

Net margin, or net profit margin, is net income divided by revenue, expressed as a percentage: the share of each sale a business keeps after cost of goods sold, operating expenses, interest and income tax. A negative net margin means the company lost money in the period.

Formula: Net margin = Net income ÷ Revenue × 100%

What is net margin?

Net margin, or net profit margin, is the share of revenue a business keeps as profit after every expense has been paid: cost of goods sold, operating expenses such as sales, marketing, R&D and administration, interest and income tax. It is net income divided by revenue, expressed as a percentage, and it sits on the last line of the income statement, which is why net income is called the bottom line.

A net margin of 10% means that from every $100 of revenue, $10 is left for the owners after all costs. A negative net margin means the business lost money in the period. The number answers a different question from gross margin, which only subtracts the direct cost of what was sold. The gap between the two is where most surprises live: a software company can have a 78% gross margin and still lose money, because the expenses that sit below gross profit are large.

Net margin formula

Net margin = Net income ÷ Revenue × 100%

  • Revenue is net revenue: sales after returns, discounts and allowances.
  • Net income is what remains after cost of sales, operating expenses, depreciation, interest and income tax, plus or minus any other income.

The U.S. Securities and Exchange Commission's beginner's guide to financial statements describes the same walk: net revenues minus cost of sales gives gross profit; minus operating expenses gives income from operations; after interest and income tax "you arrive at the bottom line: net profit or net losses". Each step has its own margin, so it helps to compute all of them together.

Worked example: SaaS vs online store

Sample data: two companies each book $2.4 million of revenue in a year. For the software company this is a steady $2.4M in annual recurring revenue recognized over the year; the online store sells physical products. All figures are in thousands of dollars and were recomputed in Python.

Line ($ thousands)SaaS company% of revenueOnline store% of revenue
Revenue2,400100%2,400100%
Cost of goods sold (hosting and support; products, shipping and fulfilment)52822.0%1,32055.0%
Gross profit1,87278.0%1,08045.0%
Sales and marketing1,08045.0%60025.0%
Research and development60025.0%964.0%
General and administrative33614.0%24010.0%
Operating income−144−6.0%1446.0%
Interest income (expense)120.5%−24−1.0%
Pre-tax income−132−5.5%1205.0%
Income tax80.3%25.2 (21% assumed)1.1%
Net income−140−5.8%94.83.95%

The software company has the higher gross margin, 78.0% against 45.0%, and the lower net margin, −5.8% against 3.95%. Sales and marketing alone (45% of revenue) plus R&D (25%) consume more than the entire gross profit. The SaaS company still pays a small tax bill despite a pre-tax loss, which is common when minimum or local taxes apply. Read the table from top to bottom and each margin explains one layer of cost; read only the last line and you cannot tell whether the problem is pricing, delivery cost or spending on growth.

What is a good net margin?

There is no single good number; it depends on the industry's cost structure. Aswath Damodaran at NYU Stern publishes margins by industry for U.S. listed companies. In the January 2026 dataset:

Industry (number of firms)Gross marginNet margin
Software, system and application (309)71.72%25.49%
Software, internet (29)62.58%−0.93%
Retail, general (23)33.18%5.61%
All U.S. listed companies (5,994)37.76%9.74%

Two lessons for small companies: compare yourself with the right industry row, and remember these are mostly mature listed firms. A young SaaS business spending heavily on growth, like the example above, often runs a negative net margin by choice; the question is whether gross margin and retention will carry it to profit when growth spending slows.

Net margin vs gross, operating and contribution margin

MarginWhat is subtracted from revenueQuestion it answers
Gross marginCost of goods sold onlyIs each sale profitable before overheads?
Contribution marginAll variable costs, including variable selling costsHow much does each extra sale add toward fixed costs?
Operating marginCost of goods sold and operating expensesIs the core business profitable?
EBITDA marginOperating costs except depreciation and amortizationWhat is operating cash generation before capital costs?
Net marginEverything, including interest and taxWhat share of revenue do owners keep?

Use gross and contribution margin to price and to judge channels, operating margin to judge the business model, and net margin to judge the company as a whole, including how it is financed and taxed.

How to improve net margin

Each lever acts on one line of the table:

  1. Raise prices or cut discounting. In the online store, a 5% price rise with unchanged volume adds $120,000 of revenue and, with no extra cost, lifts net income before tax from $120,000 to $240,000.
  2. Lower cost of goods sold. Cheaper fulfilment or hosting moves gross margin first.
  3. Spend on acquisition where it returns. Cut channels whose acquisition cost is above what customers bring back; this is where sales and marketing, the largest expense line in both examples, is decided.
  4. Reduce refunds and returns. They reduce net revenue directly.
  5. Watch financing costs. Interest expense sits between operating and net income; refinancing changes net margin without changing the business.

Common mistakes

  • Using gross revenue. Net margin uses revenue after returns and discounts.
  • Confusing margin with markup. A product bought for $60 and sold for $100 has a 40% margin and a 66.7% markup.
  • Comparing across industries. A 4% net margin is weak for software and normal for general retail.
  • Reading one quarter. One-off gains, write-offs or tax credits move net income; look at several periods.
  • Treating ARR as revenue. ARR is a run rate; net margin uses revenue recognized in the period.

Revenue numbers for the net margin calculation in TapCub

TapCub does not do accounting and does not know your costs. It measures the revenue and acquisition side of the table above, which you then reconcile with your books.

  1. Track revenue from orders. Send a purchase event from your server with order id, amount and currency, and a refund event with the same order id. All-platform analytics › Business › Commerce & revenue shows revenue, orders, buyers and average order, converted into the site's base currency at the day's rate.
  2. Get net revenue right. Refunds are reported separately on that page and are not subtracted from revenue, so subtract them yourself before comparing with the accounting revenue line.
  3. Check the biggest expense line. Import ad spend by day, channel, source and campaign in All-platform analytics › Business › Channel ROI to see cost per acquisition (spend ÷ purchases) and return on ad spend per channel. That is where the store in the example decides which part of its $600,000 sales and marketing budget earns its place.
  4. Do the margin in the books. Take revenue and refunds from TapCub as a cross-check, and cost of goods sold, operating expenses, interest and tax from accounting, then compute net margin there.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Oliver Reed

Product Experience Specialist

Explores usability, user journeys, and feature adoption through practical examples of onboarding and everyday product use.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What does net margin mean?

Net margin tells you how many cents of profit a company keeps from each dollar of revenue after all expenses, interest and taxes. A 10% net margin means $10 of profit per $100 of sales; a negative figure means a loss.

What is the difference between gross margin and net margin?

Gross margin subtracts only the cost of goods sold, so it shows whether each sale is profitable. Net margin subtracts everything, including marketing, R&D, administration, interest and tax. A software company can have a 78% gross margin and a −5.8% net margin.

What is a good net profit margin?

It depends on the industry. In Damodaran's January 2026 data for U.S. listed companies, the overall net margin was 9.74%, system and application software 25.49% and general retail 5.61%. Compare with your own industry and stage.

Can net margin be higher than gross margin?

Rarely. It can only happen when other income, such as a gain on an asset sale, interest income or a tax benefit, is larger than all operating expenses, interest and tax. If you see it, look for a one-off item.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics