Gross Profit Explained: Formula, Gross Margin, COGS, and Industry Benchmarks

May 9, 2026 · guides · 11 min read

Gross Profit Explained: Formula, Margin, and Why It Matters for Stock Analysis

Gross profit explained simply: it is the revenue a company keeps after subtracting the direct costs of producing its goods or services. Before taxes, before interest, before executive salaries, there is gross profit. It sits at the top of the income statement and sets the ceiling for everything that follows.

For self-directed investors, gross profit is one of the first places to look when evaluating a business. It tells you whether the core product or service is profitable on its own, independent of how the company is managed, financed, or organized. A business with weak gross profit rarely overcomes that weakness through cost-cutting alone.

This guide covers the gross profit formula, how gross margin works, what belongs inside and outside of COGS, how gross profit compares to operating income and net income, gross margin benchmarks by industry, and how to use this metric when researching stocks.

What Is Gross Profit?

Gross profit is the difference between revenue and the cost of goods sold (COGS). It represents how much money a company makes from its products or services before accounting for overhead, interest, and taxes.

Here is how it appears on the income statement:

Revenue minus Cost of Goods Sold (COGS) equals Gross Profit

A company that generates $500 million in revenue and incurs $300 million in COGS reports $200 million in gross profit. That $200 million is then used to cover operating expenses, pay interest on debt, fund research and development, and ultimately produce net income.

Gross profit is a dollar figure. It grows when revenue grows faster than costs, or when costs fall while revenue holds steady. A rising gross profit number looks good in isolation, but the margin tells the real story.

The Gross Profit Formula

The gross profit formula is:

Gross Profit = Revenue - Cost of Goods Sold

Gross profit margin (the percentage version) is calculated as:

Gross Profit Margin = Gross Profit / Revenue

Multiply by 100 to express it as a percentage.

Example: A software company reports $1 billion in revenue and $150 million in COGS. Gross profit is $850 million. Gross profit margin is 85%.

Example: A grocery distributor reports $10 billion in revenue and $9.2 billion in COGS. Gross profit is $800 million. Gross profit margin is 8%.

Both companies have similar gross profit in dollar terms, but the margin tells a completely different story about the underlying business model.

Gross Profit vs Gross Margin

Gross profit and gross margin are related but not the same. Gross profit is the raw dollar amount. Gross margin is the ratio, expressed as a percentage of revenue.

Why does the distinction matter? Because gross profit in dollars can increase even as the business deteriorates. If a company doubles its revenue but doubles its COGS at the same rate, gross profit in dollars doubles while gross margin stays flat. Investors who only watch the dollar figure may miss a business that is growing without improving its unit economics.

Gross margin is the more informative signal for:

When analysts say a company has a high-margin or low-margin business, they are referring to gross margin, not gross profit dollars.

What Is Included in COGS

Cost of goods sold captures the direct costs tied to producing a product or delivering a service. These costs move up and down with production volume. The three primary components are:

Direct materials: Raw materials and components that become part of the finished product. For a car manufacturer, this is steel, glass, electronics, and rubber. For a pharmaceutical company, this is active pharmaceutical ingredients and excipients.

Direct labor: Wages paid to workers who are directly involved in production. Assembly-line workers, machinists, and factory floor supervisors typically fall here. This excludes corporate staff and back-office employees.

Manufacturing overhead: Costs tied to the production process that are not direct materials or direct labor. Factory rent, equipment depreciation, utilities for the production facility, and quality control costs belong in this bucket.

For service businesses, COGS is sometimes labeled as cost of revenue. A cloud software company might include server hosting costs, data center expenses, and the labor cost of engineers who maintain the infrastructure. A consulting firm might include the direct labor hours of its consultants.

What Is Excluded from COGS

Several major expense categories are deliberately kept out of COGS because they are not directly tied to producing a single unit. Excluding them from COGS is standard accounting practice under GAAP and IFRS.

Selling, General, and Administrative expenses (SGA): Marketing budgets, sales commissions, executive salaries, legal fees, accounting, and corporate office rent all belong in SGA. These costs exist whether or not a single unit is produced.

Research and Development (RD): Product development spending appears as a separate line on the income statement. The cost of developing next year's product is not part of this year's cost of producing current products.

Depreciation of non-production assets: Depreciation on corporate headquarters, IT systems for administrative functions, and similar assets stays out of COGS even though it shows up elsewhere on the income statement.

Interest expense: Financing costs are entirely separate from the cost of production. Two companies with identical operations but different debt levels will report identical gross profit.

Income taxes: Taxes are calculated after all other income and expense items, well below the gross profit line.

Understanding these exclusions matters because COGS manipulation is one of the more common accounting games. Companies sometimes shift expenses into or out of COGS to make gross margin look better or worse than it actually is. Comparing how companies classify costs is essential for fair peer comparisons.

Gross Profit vs Operating Income

Moving from gross profit to operating income means subtracting operating expenses, which primarily consist of SGA and RD.

Operating Income = Gross Profit - Operating Expenses

A company can have excellent gross profit but poor operating income if it spends heavily on sales and marketing, maintains a large corporate structure, or invests aggressively in research. High-growth technology companies often fall into this category: strong gross margins in the 70-80% range paired with operating losses because customer acquisition spending is intense.

This is why gross profit and operating income tell different stories. Gross profit answers the question: is the product itself profitable? Operating income answers the question: is the business, as currently operated, generating a profit from its core activities?

Both metrics matter. A company with low gross margin cannot offset that weakness through operating efficiency alone. Conversely, a company with high gross margin but consistently poor operating income may have a structural cost problem or a deliberate growth-investment strategy.

Gross Profit vs Net Income

Net income is the bottom line: what the company retains after COGS, operating expenses, interest expense, and income taxes. It is the most familiar profitability metric and the basis for earnings per share calculations.

Net Income = Gross Profit - Operating Expenses - Interest Expense - Taxes

Gross profit and net income can diverge significantly. A company with high gross margin might report low or negative net income because of heavy debt service, large one-time write-downs, high tax rates, or aggressive expensing of stock-based compensation.

For stock analysis purposes, gross profit is often a more stable and revealing metric than net income. Net income is subject to accounting decisions, non-recurring items, and financing structure. Gross profit reflects the fundamental economics of what the company makes and sells.

When net income looks unusually high or low relative to gross profit, that gap deserves scrutiny. It often points to unusual items, changes in tax treatment, or financing decisions that distort the reported bottom line.

Gross Margin by Industry

Gross margin varies enormously across sectors, which is why comparing a software company to a grocery chain on gross margin alone is meaningless. The relevant benchmark is always within an industry.

Software and SaaS: Gross margins typically run between 65% and 85%. Once software is written, the incremental cost of delivering it to one more user is minimal. This is the defining economic feature of the software business model.

Pharmaceuticals and biotechnology: Branded drug manufacturers often report gross margins of 70-85% or higher. The marginal cost of manufacturing a pill is far below the price charged, which reflects the R&D investment and patent protection embedded in the price.

Medical devices: Typically 50-70% gross margin. More physical manufacturing than software, but strong pricing power from proprietary technology.

Financial services: Gross margin calculations look different here because the cost structure is unique, but traditional banks and asset managers tend to report high revenue retention before operating costs.

Consumer electronics: Apple, as a hardware company with strong brand pricing power, sustains gross margins around 40-45%. Most hardware manufacturers operate well below this.

Retail (apparel, specialty): Generally 30-50% gross margin depending on brand positioning. Luxury brands sit at the high end; discount retailers at the low end.

Automotive: Margins in the 10-20% range are typical. Material and labor costs are high relative to the selling price, and competition is intense.

Grocery and food distribution: Among the lowest gross margins of any industry, often 15-25%. Volume is the only path to significant profit dollars.

These benchmarks set expectations. A software company reporting 40% gross margin warrants investigation. A grocery chain at 40% gross margin is exceptional.

Gross Margin Trends: What They Signal

A single gross margin figure is a snapshot. The trend over multiple quarters and years is the signal.

Expanding gross margin: The company is either raising prices faster than costs are rising, benefiting from economies of scale as production volumes increase, improving its product mix toward higher-margin offerings, or reducing input costs through better supplier relationships or process improvements. Expanding gross margin over time is one of the clearest indicators of pricing power or operational improvement.

Contracting gross margin: Input costs may be rising faster than the company can pass along to customers. Competition may be forcing price concessions. The company may be shifting toward lower-margin products or geographies. Gross margin compression often appears before revenue growth slows, making it a useful early warning indicator.

Volatile gross margin: This can reflect commodity price exposure (a company that buys copper, oil, or grain as inputs), foreign exchange fluctuations on cross-border supply chains, or seasonal patterns in certain industries.

Investors tracking gross margin trends alongside revenue growth get a more complete picture than either metric provides alone. A company growing revenue at 20% annually while maintaining or expanding gross margin is demonstrating genuine business quality.

Product Mix and Gross Margin

Few companies sell a single product at a single price point. Most sell multiple products, serve multiple customer segments, and operate in multiple geographies. Each carries a different gross margin. The overall reported gross margin is a weighted average.

Product mix shift describes what happens when the proportion of revenue coming from different products changes. A company that grows its high-margin software subscription revenue faster than its low-margin professional services revenue will see its blended gross margin improve, even if neither product line's individual margin changes.

This effect is common and important. Technology companies often report improving gross margins not because any individual product got more profitable, but because the software-heavy portion of the business grew faster than the hardware-heavy portion.

When a company reports gross margin improvement, it is worth asking: is this the result of genuine pricing or cost improvements, or is it a product mix effect? Both are valid, but they have different durability. Pricing power improvements tend to persist. Mix shifts can reverse if growth rates change.

Management commentary in earnings calls and 10-K filings often addresses this explicitly. Analysts routinely ask about the drivers of gross margin changes for exactly this reason.

Using Gross Profit in Stock Analysis

Gross profit and gross margin are foundational inputs in fundamental analysis. Here is how they connect to valuation and stock research.

Margin-based comparisons: Screening for companies with gross margins above a certain threshold within an industry helps identify potential quality businesses. High gross margin is often associated with durable competitive advantage, brand pricing power, or proprietary technology.

Trend analysis: Comparing a company's gross margin today against its five-year average reveals whether the business is strengthening or weakening at the product level. Equity Rank surfaces gross margin trends alongside other financial metrics so investors can evaluate trajectory, not just current state.

Valuation multiples: Companies with higher gross margins typically trade at higher revenue multiples. The market prices the margin structure into the enterprise value. When comparing EV/Revenue multiples across peers, gross margin is the primary variable that explains the spread.

DCF inputs: In a discounted cash flow model, gross margin is an early driver. Higher gross margin means more revenue flows down to fund operations, R&D, and ultimately free cash flow. Even small differences in gross margin assumptions compound significantly in multi-year projections.

Competitive moat analysis: Sustained high gross margin over many years, especially when competitors cannot match it, is evidence of competitive advantage. This might reflect patents, brand loyalty, network effects, or proprietary processes.

On Equity Rank, every public company page displays gross profit margin alongside the SAVE score and valuation analysis. Investors can track gross margin trends, compare them to sector peers, and see how the metric feeds into the platform's multi-method fair value estimate.

Key Takeaways

Gross profit explained in six points:

Gross profit is where fundamental analysis begins. It does not complete the picture, but without a clear understanding of gross profit and gross margin, the rest of the income statement is harder to interpret correctly.


This article is for educational purposes only. Nothing in this article constitutes investment advice or a recommendation to take any action regarding any security. All financial metrics discussed are based on publicly available financial statement data. Past performance of any company or metric does not guarantee future results. Investors are encouraged to conduct their own research and consult qualified financial professionals before making investment decisions.