Fundamental Analysis

GrossMargin

Last Updated
Quick Definition

Gross Margin — Gross margin is (Revenue minus COGS) divided by Revenue, expressed as a percentage — measuring how much profit remains after direct production costs.

Track Gross Margin with JournalPlus

Gross margin measures how much revenue a company retains after subtracting the direct cost of producing its goods or services, expressed as a percentage. It is one of the first metrics institutional analysts examine before taking a position — and for active traders, the trend in gross margin across consecutive quarters is a more powerful signal than any single quarter’s number.

Key Takeaways

  • Gross margin trajectory (expanding or contracting quarter-over-quarter) is a leading indicator of earnings misses, often visible 1–2 quarters before price breaks down.
  • Sector benchmarks vary widely — software runs 65–75%, retail 22–26%, pharma 60–80% — so always compare within the sector, not against a universal standard.
  • When a stock trades at a premium P/E ratio, it is pricing in margin stability; gross margin compression triggers swift re-rating.

How to Calculate Gross Margin

Gross Margin (%) = (Revenue − Cost of Goods Sold) / Revenue × 100

Revenue is total sales before any expenses. Cost of Goods Sold (COGS) includes only direct production costs — raw materials, manufacturing labor, and direct overhead. It excludes operating expenses like marketing, R&D, and administrative costs, which is why gross margin differs from operating margin and net margin. A company with $500M in revenue and $150M in COGS has a gross margin of 70%.

Quick Reference

AspectDetail
Formula(Revenue − COGS) / Revenue × 100
Software / SaaS65–75% typical; below 60% raises scalability concerns
Retail22–26% typical (WMT: ~24% in fiscal 2024)
Pharma / Biotech60–80% typical
Auto Manufacturers15–18% typical
Warning SignsDeclining margin for 2+ consecutive quarters, margin miss vs. analyst consensus

Practical Example

A swing trader is evaluating two stocks both trading at 25x forward P/E. Company A is an e-commerce platform with a 68% gross margin. Company B is an electronics retailer with a 23% gross margin.

Company A generates $0.68 in gross profit for every $1 of revenue — giving it room to absorb a marketing spend spike or a modest pricing concession without collapsing earnings. Company B needs roughly $4 in additional revenue to generate the same $1 in gross profit as Company A.

When supply chain costs rose in Q3, Company B’s gross margin dropped from 23% to 19% — a 400 basis point miss versus analyst estimates. The stock fell 22% in a single session. Company A’s margin held at 67%, and the stock was flat on earnings day.

The trader who checked gross margin trends before the print — not just revenue growth — avoided the blowup entirely.

Real-world parallels are instructive: NVIDIA’s gross margin expanded from roughly 56% in 2022 to approximately 74% by Q4 2024 as data center revenue scaled and displaced lower-margin gaming chips. Traders tracking that trajectory had fundamental conviction to hold through volatility as the stock moved substantially higher. Peloton’s path ran the opposite direction — gross margin fell from 43% in FY2021 to negative territory in FY2022, foreshadowing a 90%+ stock drawdown that consensus analysts were slow to price in.

Gross margin is the percentage of revenue left after subtracting the direct cost of making a product. A higher gross margin means more profit per dollar of sales, more room to invest in growth, and a stronger case for a premium stock valuation.

Common Mistakes

  1. Comparing gross margin across sectors. A 30% gross margin is strong for a grocery chain and alarming for a SaaS company. Always benchmark against sector peers — Microsoft’s ~69% gross margin (fiscal 2024) is not a reasonable reference point for evaluating Walmart’s ~24%.
  2. Focusing on the absolute level instead of the trend. A stable 25% gross margin is fine; a gross margin that has dropped from 32% to 25% over four quarters is a warning sign worth acting on before earnings.
  3. Ignoring the gross margin line in the earnings release. For earnings traders, the gross margin beat or miss often drives the stock’s initial reaction more than revenue. Analysts model gross margin explicitly — a 50 basis point miss can trigger a significant selloff even on a revenue beat.
  4. Overlooking product-mix shifts. Companies can grow revenue while compressing gross margin by shifting sales toward lower-margin products. Tracking gross margin separately from revenue growth exposes this dynamic early.

How JournalPlus Tracks Gross Margin

JournalPlus lets traders attach fundamental data — including gross margin snapshots and quarter-over-quarter comparisons — directly to trade journal entries. When reviewing an earnings trade, the pre-trade gross margin trend is visible alongside the entry, exit, and outcome, making it easy to identify whether margin trajectory was a reliable signal for that ticker. Over time, this builds a personal dataset showing which fundamental filters actually predicted trade outcomes.

Common Questions

What is a good gross margin for a stock?

It depends entirely on the sector. Software and SaaS companies typically post 65–75% gross margins, pharma 60–80%, retail 22–26%, and auto manufacturers 15–18%. Always compare a company's gross margin to its sector median, not an absolute benchmark.

How is gross margin different from net margin?

Gross margin only subtracts the cost of goods sold (COGS) from revenue. Net margin subtracts all expenses — operating costs, interest, and taxes. Gross margin is a purer measure of pricing power and production efficiency.

Why does gross margin matter for stock traders?

Gross margin trajectory — whether it's expanding or contracting quarter-over-quarter — is a leading indicator of earnings surprises. Margin compression often appears 1–2 quarters before a full earnings miss hits consensus estimates.

What does declining gross margin signal?

A declining gross margin typically signals rising input costs, pricing pressure from competitors, or a shift toward lower-margin products. It can foreshadow earnings misses and P/E multiple compression, both of which drive stock price lower.

How do institutional investors use gross margin?

Institutional analysts use gross margin to assess pricing power and scalability. A high gross margin gives a company room to reinvest in R&D and buybacks — which justifies paying a premium P/E multiple. When that margin erodes, re-rating happens quickly.

Share this article

Track Gross Margin Automatically

JournalPlus calculates your gross margin and other key metrics from your trade data. Import trades and get instant insights.

SSL Secure
One-Time Payment
7-Day Money-Back
4.9/5 (1,287 reviews)
Track Gross Margin automatically 7-Day Money-Back
Buy Now - ₹6,599 for Lifetime Buy Now - $159 for Lifetime