Fundamental Analysis

What is Gross Margin?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionGross margin is the share of revenue left after paying the direct cost of the goods or services sold, before salaries, rent, interest and tax. Illustrative Company Y sells ₹12,000 crore of products that cost ₹7,200 crore to make, so its gross profit is ₹4,800 crore and its gross margin is 40%.
Formula
Gross margin % = (Revenue − Cost of goods sold) ÷ Revenue × 100
Example
(₹12,000 crore − ₹7,200 crore) ÷ ₹12,000 crore × 100 = ₹4,800 crore ÷ ₹12,000 crore × 100 = 40%
Company Y · FY26 profit and loss, ₹ crore (illustrative)EPS ₹30 = ₹1,500 cr ÷ 50 cr shares12,000Revenue100%−7,200Cost of goods4,800Gross profit40%−2,400Opex + D&A2,400EBIT20%−400Interest−500Tax1,500Net profit12.5%Percentages are margins on revenue. Tax is 25% of profit before tax of ₹2,000 crore.
Figure 1. Illustrative Company Y, FY26, ₹ crore. Gross profit is the third bar: revenue of 12,000 less cost of goods of 7,200 leaves 4,800, a 40% gross margin. Operating costs, interest and tax come after it and bring the business down to a net profit of 1,500.

Calculating it from Indian results

Results prepared under Ind AS do not print a "gross profit" line. You build it from the expense lines near the top of the statement of profit and loss.

  1. Start with revenue from operations. Leave out other income, such as interest on surplus cash, which does not come from selling the product.
  2. Add up the direct cost lines: cost of materials consumed, purchases of stock-in-trade and changes in inventories. For Company Y these total ₹7,200 crore.
  3. Subtract: ₹12,000 crore − ₹7,200 crore = ₹4,800 crore of gross profit.
  4. Divide by revenue: ₹4,800 crore ÷ ₹12,000 crore = 40%.
  5. Repeat for the same quarter last year and for the trailing four quarters, so you compare like with like.

Some analysts and data providers also count power, freight or other direct costs in the cost of goods. Whichever version you use, keep it the same across quarters and across the peers you compare.

Reading the trend

Year (illustrative)RevenueCost of goodsGross profitGross margin
FY25₹10,000 cr₹6,200 cr₹3,800 cr38%
FY26₹12,000 cr₹7,200 cr₹4,800 cr40%

Revenue grew 20%, but gross profit grew about 26%, from ₹3,800 crore to ₹4,800 crore, because the margin widened by two percentage points. That gain could come from price increases, cheaper inputs or a shift to higher-margin products. The management commentary with results usually says which; note it in your thesis.

How traders use gross margin

  • Results-season trades: the change in gross margin against the same quarter last year is one of the first lines analysts look at, next to revenue. Log revenue growth, gross margin and the change in basis points before and after the result.
  • Input cost cycles: for companies that buy commodities such as crude derivatives, metals or farm produce, a sharp move in that input shows up in gross margin with a lag that depends on inventory.
  • Peer screens: within one sector, a gross margin that held steady through past cost swings is evidence of pricing power.
  • Journal tag: mark swing trades whose thesis rests on margins as "margin thesis", and check after each result whether the margin moved the way your note said.

Gross margin vs operating margin

Gross margin

40%
Revenue minus direct costs only. Shows the economics of the product itself.
Company Y: ₹4,800 cr ÷ ₹12,000 cr

Operating margin

20%
Also subtracts salaries, other overheads and depreciation. Shows how efficiently the whole business runs.
Company Y: ₹2,400 cr ÷ ₹12,000 cr
Common mistake
Comparing a manufacturer’s gross margin with a trading company’s. A distributor that buys finished goods for resale runs on a thin gross margin by design; the right comparison is another distributor.
For Indian traders
Revenue from operations in Indian results is reported net of GST, so GST does not inflate revenue or gross margin. For IT services and other service businesses, materials are a small cost and employee cost is the main one, so gross margin is rarely quoted; EBITDA or operating margin is used instead.

Reference guide

ContextValueReading
Stable or rising over several yearsPricing powerThe company has passed cost increases on to customers
Falling while revenue growsSqueezeSales may be growing on discounts or costlier inputs; profit can lag revenue
Compared across unrelated sectorsMisleadingA retailer and a software company have very different cost structures; compare with peers

Questions

What is a good gross margin?

It depends on the sector. Software and branded consumer businesses can run high gross margins, while distributors and commodity processors run thin ones by design. Compare with peers and with the company’s own five-year range.

How do you calculate gross margin from Indian quarterly results?

Take revenue from operations, subtract cost of materials consumed, purchases of stock-in-trade and changes in inventories, then divide by revenue. Illustrative: (₹12,000 crore − ₹7,200 crore) ÷ ₹12,000 crore = 40%.

What is the difference between gross margin and operating margin?

Gross margin subtracts only direct costs of what was sold. Operating margin also subtracts salaries, overheads and depreciation, so it is always lower; Company Y runs 40% and 20%.

Why does gross margin fall?

Higher input costs not yet passed on, discounting to drive volume, or a shift towards cheaper products. The management commentary with results usually names the reason.

Related terms