Skip to main content
Stock Analysis

Profit Margin Formula Explained: A Clear Guide for Investors

JS
Written by Javier Sanz
6 min read
Share:

Profit Margin Formula Explained: A Clear Guide for Investors

profit margin formula — chart and analysis

The profit margin formula divides a profit figure by revenue, then multiplies by 100 to express the result as a percentage. Which profit figure you use determines which margin you are measuring. Gross profit margin uses revenue minus cost of goods sold. Operating margin uses earnings before interest and taxes. Net profit margin uses the bottom-line net income. EBITDA margin adds depreciation and amortization back. Each formula answers a different question about where a business makes or loses money.

This guide walks through every major variant with the actual arithmetic, real stock numbers, and a comparison table. By the end you will know which margin to read first for any business you are analyzing.

Key Takeaways

  • The profit margin formula always has the same structure: (profit metric / revenue) x 100. The only variable is which profit metric you choose.
  • Gross profit margin strips out only the direct cost of making the product. It reveals pricing power and supply chain efficiency.
  • Operating margin captures all recurring operating costs. It is the clearest signal of how well management runs the business day to day.
  • Net profit margin is the fully loaded number that includes interest and taxes. It is the margin that flows to shareholders.
  • Apple (AAPL) runs a net margin near 25% on revenue above $390 billion, which reflects a high-margin services mix layered on top of hardware. Microsoft (MSFT) runs even higher, near 35%, because software carries near-zero variable costs.
  • A single margin number means little without context. Compare against the company's own five-year average and against the median for its industry.

The Four Core Profit Margin Formulas

Each formula isolates a different layer of the income statement. Reading them top to bottom follows the same logic as reading the income statement itself.

Gross profit margin: Gross Profit Margin = ((Revenue - COGS) / Revenue) x 100

Operating profit margin: Operating Profit Margin = (Operating Income / Revenue) x 100

Net profit margin: Net Profit Margin = (Net Income / Revenue) x 100

EBITDA margin: EBITDA Margin = (EBITDA / Revenue) x 100

EBITDA adds depreciation and amortization back to operating income, so it approximates cash generation before financing and tax decisions. Capital-intensive industries like industrials and telecoms often use it because large D&A charges can make operating income look thin even when cash flows are healthy.

How to Calculate Profit Margin Step by Step

The arithmetic is straightforward. Here is a worked example using Apple's most recent annual figures.

Apple reported revenue of approximately $391 billion and net income of approximately $97 billion.

Net Profit Margin = ($97B / $391B) x 100 = 24.8%

That means for every dollar Apple collects from customers, roughly 25 cents ends up as net income after paying suppliers, employees, interest, and taxes.

For gross margin, Apple's cost of goods sold is approximately $211 billion.

Gross Profit Margin = (($391B - $211B) / $391B) x 100 = 46.0%

The gap between 46% gross margin and 25% net margin shows how much Apple spends on R&D, sales, marketing, and administration in between.

Profit Margin Formula Applied to Real Stocks

Running the same formulas across a few well-known names shows how dramatically margins differ by business model.

CompanyTickerGross MarginOperating MarginNet MarginEBITDA Margin
AppleAAPL46.0%31.5%24.8%33.2%
MicrosoftMSFT69.8%44.6%35.1%52.3%
Johnson & JohnsonJNJ68.3%24.1%19.2%35.8%
Coca-ColaKO58.7%30.9%22.4%34.1%
Berkshire Hathaway BBRK.B14.2%11.8%9.3%13.5%

Berkshire's low gross margin reflects its insurance and railroad operations, which carry high costs by nature. Microsoft's 70% gross margin reflects pure software economics where marginal cost of an extra license is nearly zero. Neither number is wrong. They are just measuring different business models.

Why the Profit Margin Formula Differs by Industry

Industry structure determines what a "good" margin looks like. Comparing a grocery chain's 2% net margin to a software company's 30% net margin tells you nothing useful. Comparing the grocery chain against its peers tells you everything.

Sectors where margins are structurally thin include retail, food and beverage manufacturing, airlines, and construction. Sectors where margins are structurally wide include enterprise software, pharmaceuticals with patent protection, financial exchanges, and consumer brands with pricing power.

For value investing purposes, the margin level matters less than two things: is it stable or expanding, and is it materially above the cost of capital? A 5% net margin with 15% revenue growth and high capital turnover can create more shareholder value than a 30% margin at a stagnating business.

How to Use the Profit Margin Formula in a Screener

Running margin filters in our screener is faster than pulling income statements one at a time. The screener covers 120+ indicators across 73 global exchanges, so you can filter for net margin above 15% alongside return on invested capital above 20% and see which businesses pass both tests at once.

A practical starting screen for quality businesses:

  • Net margin > 15%
  • Operating margin > 20%
  • ROIC > 20% (Apple's ROIC sits at 45.1%, a benchmark worth knowing)
  • Gross margin stable or expanding over five years

Businesses that clear all four thresholds are rare. When you find one, you have identified a company with genuine pricing power, operational discipline, and capital efficiency. That is where deep fundamental work begins.

A company with a 10% net margin expanding by 200 basis points per year is a more interesting candidate than one with a 25% net margin that has been compressing for three years.

Margin compression signals one of three things: pricing pressure from competitors, rising input costs the company cannot pass on, or management decisions to spend more on growth. The first two erode intrinsic value. The third can create it, but only if the spending generates returns above the cost of capital.

When you run the profit margin formula for any business, calculate it for the last five fiscal years and plot the trend. A flat or gently rising line signals pricing stability. A declining line demands an explanation before you go further.

How the Profit Margin Formula Connects to Return on Equity

The DuPont decomposition breaks return on equity into three components: net profit margin, asset turnover, and financial leverage. The profit margin formula supplies the first term.

ROE = Net Profit Margin x Asset Turnover x Equity Multiplier

This matters because a high ROE built on thin margins and high leverage is fragile. A high ROE built on expanding margins and modest debt is durable. When you see a company with ROE above 30%, the margin analysis tells you whether that return is coming from business quality or balance sheet engineering.

Johnson & Johnson's ROE runs above 25% on a net margin near 19% and conservative leverage. That combination reflects genuine competitive advantage, not financial engineering.

Further reading: SEC EDGAR · FRED Economic Data

Why net profit margin formula Matters

This section anchors the discussion on net profit margin formula. The detailed treatment, formula, and worked examples appear in the body of this article above. The points below summarize the most important takeaways for value investors who want to apply net profit margin formula in real portfolio decisions. ValueMarkers exposes the underlying data on every covered ticker via the screener and stock profile pages, so the concepts in this article translate directly into actionable filters.

Key inputs for net profit margin formula

See the main discussion of net profit margin formula in the sections above for the full treatment, including the inputs, the calculation methodology, the typical sector benchmarks, and the most common pitfalls to avoid. The ValueMarkers screener lets value investors filter the full universe of 100,000+ stocks across 73 exchanges using net profit margin formula alongside the rest of the 120-indicator composite, with sector percentiles and historical trends shown on every stock profile.

Sector benchmarks for net profit margin formula

See the main discussion of net profit margin formula in the sections above for the full treatment, including the inputs, the calculation methodology, the typical sector benchmarks, and the most common pitfalls to avoid. The ValueMarkers screener lets value investors filter the full universe of 100,000+ stocks across 73 exchanges using net profit margin formula alongside the rest of the 120-indicator composite, with sector percentiles and historical trends shown on every stock profile.

Frequently Asked Questions

what is gross profit

Gross profit is revenue minus the cost of goods sold. It represents the money left over after paying the direct costs to produce a product or deliver a service, before any operating expenses, interest, or taxes are deducted. Apple's gross profit runs near $180 billion on $391 billion of revenue, giving a gross profit margin around 46%.

what is profit margin

Profit margin is the percentage of revenue that a company retains as profit after subtracting a defined set of costs. The most commonly cited version is net profit margin, which subtracts all costs including taxes and interest. A 20% net margin means the company keeps 20 cents of every dollar it collects from customers.

what is net margin

Net margin is net income divided by revenue, expressed as a percentage. It is the most comprehensive profitability measure because it accounts for every cost a business incurs: production, operations, interest on debt, and income taxes. Microsoft's net margin runs near 35%, meaning it converts 35 cents of every revenue dollar into shareholder earnings.

what is ebitda margin

EBITDA margin is EBITDA divided by revenue, expressed as a percentage. EBITDA stands for earnings before interest, taxes, depreciation, and amortization. It strips out non-cash charges and financing costs to approximate operating cash generation. Analysts use it to compare businesses across different capital structures and tax regimes, particularly in capital-intensive sectors like telecom and energy.

what is financial leverage ratio formula

The financial leverage ratio is calculated as total assets divided by total equity. A ratio of 2.0 means a company finances half its assets with equity and half with debt. In the DuPont model, this ratio multiplies with net profit margin and asset turnover to produce return on equity. High leverage amplifies both gains and losses, which is why margin stability matters more when a company carries significant debt.

how to calculate net profit margin

Net profit margin = (Net Income / Revenue) x 100. Take the net income figure from the bottom of the income statement, divide it by total revenue from the top line, and multiply by 100 to get the percentage. If a company earns $5 billion of net income on $25 billion of revenue, its net margin is 20%. Run this across five consecutive annual periods to understand the trend before drawing conclusions.

Start screening for businesses with expanding margins, strong ROIC, and stable gross margins using our screener. Filter by net margin, operating margin, and ROIC in one pass to identify quality businesses across 73 global exchanges.

Written by Javier Sanz, Founder of ValueMarkers. Last updated April 2026.


Ready to find your next value investment?

ValueMarkers tracks 120+ fundamental indicators across 100,000+ stocks on 73 global exchanges. Run the methodology above in seconds with our stock screener, or see today's top-ranked names on the leaderboard.

Related tools: DCF Calculator · Methodology · Compare ValueMarkers

Disclaimer: This content is for informational and educational purposes only and does not constitute investment advice, a recommendation, or an offer to buy or sell any security. Past performance does not guarantee future results. Consult a licensed financial advisor before making investment decisions.

Key Metrics Mentioned

Weekly Stock Analysis - Free

5 undervalued stocks, fully modeled. Every Monday. No spam.

Cookie Preferences

We use cookies to analyze site usage and improve your experience. You can accept all, reject all, or customize your preferences.