What Is Gross Profit Margin? Formula and Meaning

By Markets & Investing DeskUpdated Nov 10, 2026

Gross Profit Margin
Illustration · Fintrev

Definition

Gross profit margin is the percentage of net sales a company keeps after paying the cost of goods sold, the direct costs of producing or delivering what it sells.

Key takeaways

  • The formula is net sales minus COGS, divided by net sales, then multiplied by 100.
  • Use net sales after returns, allowances and discounts, since gross revenue understates the margin.
  • An item costing $60 and selling for $100 has a 40% gross margin but a 66.7% markup.
  • Cutting office rent or marketing leaves gross margin unchanged and improves operating and net margins.

Gross profit margin is the percentage of net sales a company keeps after paying the cost of goods sold (COGS), the direct costs of producing or delivering what it sells. A 40% gross profit margin means that for every $1 of net sales, $0.40 remains after direct costs, and $0.60 went to materials, direct labor and other production costs. The figure is also called the gross margin ratio, gross profit ratio or gross profit percentage, and it is always stated as a percentage of sales.

How Gross Profit Margin Works

Gross profit is a dollar amount: revenue left after subtracting COGS. Gross profit margin divides it by net sales, which makes it possible to compare a small company with a large one, or the same company across quarters and years, even when total sales are very different.

What goes into COGS depends on the business. For a manufacturer, it typically includes raw materials, factory labor and production overhead tied to making the product. For a retailer, it is mainly the purchase cost of the merchandise sold. For a service business, it may be labeled “cost of revenue” and include the wages of staff who deliver the service. Expenses that are not tied directly to production, such as head-office salaries, marketing, rent for corporate offices and research spending, sit below gross profit as operating expenses.

Formula and Calculation

The gross profit margin formula is:

Gross profit margin = (Net sales − COGS) ÷ Net sales × 100

  1. Find net sales. Start with gross revenue and subtract returns, allowances and discounts. Using gross revenue instead would overstate the denominator and understate the margin.
  2. Subtract COGS to get gross profit. Many income statements already show a gross profit line.
  3. Divide gross profit by net sales and multiply by 100 to express it as a percentage.

Example of Gross Profit Margin

Hypothetical example. Company A reports $500,000 in gross revenue, with $20,000 in returns and discounts. Its net sales are $480,000. Its COGS is $288,000.

  • Gross profit = $480,000 − $288,000 = $192,000
  • Gross profit margin = $192,000 ÷ $480,000 = 0.40, or 40%

Company B, in the same industry, also has $480,000 in net sales but spends $384,000 on COGS. Its gross profit is $96,000, a 20% margin.

Company A keeps twice as much from each sales dollar after direct costs. That cushion gives it more room to fund marketing and research, absorb a rise in material costs, or cut prices to win customers while staying profitable.

Comparing one year with the next

When gross profit rises from one year to the next, check whether the margin rose too. Hypothetical example: last year a company had $1,000,000 in net sales and $350,000 in gross profit (35% margin). This year it has $1,300,000 in net sales and $416,000 in gross profit (32% margin).

  • Gross profit grew by $66,000, or 18.9% ($66,000 ÷ $350,000).
  • Gross margin fell by 3 percentage points, from 35% to 32%.

Gross profit dollars increased because the company sold more, but each sale became less profitable after direct costs. Margin changes are usually described in percentage points rather than percent, because “a 3% decline” in a 35% margin could be misread as a drop to 33.95%.

Interpreting Gross Profit Margin

A higher gross margin can indicate pricing power, an efficient production process, favorable supplier terms or a product mix weighted toward high-margin items. A lower or falling margin points to rising input costs, price competition, heavy discounting or a shift toward lower-margin products, and it leaves less money to cover operating expenses.

What counts as a high or low margin depends heavily on the industry. Software companies often report much higher gross margins than retailers or manufacturers because copying and delivering software costs little once it is built, while a grocer pays for every item it puts on the shelf. The most useful comparisons are:

  • the same company over several periods, to see whether margins are widening or eroding
  • direct competitors with similar products and cost structures

A company at the lower end of its industry’s range is not automatically in trouble. It may follow a low-price, high-volume strategy and make up the difference through scale. What matters is whether gross profit covers operating expenses and still leaves a profit.

Gross Profit Margin vs. Other Margins

Gross margin is the first of three profit margins analysts read together, each one subtracting more costs from revenue.

Operating profit margin

Operating margin subtracts COGS and all operating expenses, including selling, general and administrative costs, research, depreciation and amortization. The result, divided by revenue, shows how profitable the core business is after the cost of running it.

Net profit margin

Net margin subtracts everything: COGS, operating expenses, other expenses, interest and taxes. Net profit divided by revenue shows what share of each sales dollar finally reaches shareholders. Because it includes financing and tax effects, it reflects capital structure and tax position as well as operations.

Reading the three margins side by side shows where profit is lost. A gap between gross and operating margin points to overhead; a gap between operating and net margin points to interest or taxes.

Gross margin vs. markup

  • Gross margin = gross profit ÷ selling price
  • Markup = gross profit ÷ cost

An item that costs $60 and sells for $100 has a 40% gross margin but a 66.7% markup ($40 ÷ $60). Confusing the two leads to underpricing: a seller who wants a 40% margin and applies a 40% markup to a $60 cost charges $84, which yields only a 28.6% margin.

Gross profit vs. gross margin

Gross profit is a dollar figure; gross margin is a ratio. A large company can earn far more gross profit than a small rival while having a lower gross margin. The terms are sometimes used loosely, so check whether a figure is quoted in dollars or as a percentage.

How a Company Can Raise Its Gross Margin

Because the ratio depends only on price and direct cost, improvements come from:

  • Raising prices faster than costs, where customers will accept it; a sharp increase can reduce sales volume if customers switch to cheaper alternatives
  • Lowering COGS through cheaper sourcing, better supplier terms, less waste or automation, though automation may require heavy upfront spending before lower labor costs show up in COGS
  • Improving productivity so each unit takes less labor or material
  • Shifting the product mix toward higher-margin items, including selling add-ons or premium versions to existing customers

Cutting operating expenses such as office rent or marketing does not change gross margin; it improves operating and net margins instead.

Limitations of Gross Profit Margin

  • It ignores overhead. Gross margin says nothing about selling, administrative or research costs, debt or taxes, so a strong figure can coexist with a net loss.
  • COGS definitions vary. Companies make different choices about which costs to classify as COGS and which as operating expenses, and inventory methods such as FIFO and LIFO change reported COGS when input prices are moving. Two companies with identical economics can report different gross margins.
  • Single periods can mislead. One-time inventory write-downs, seasonal discounts or a temporary spike in input costs can distort a quarter’s margin, so trends over several periods are more reliable.

FAQs

Is the profit margin ratio the same as the gross profit ratio?

Not necessarily. "Profit margin" on its own usually refers to net profit margin, which subtracts all expenses, interest and taxes. The gross profit ratio subtracts only COGS, so it is always equal to or higher than net margin for the same company and period.

Can gross profit margin be negative?

Yes. If COGS exceeds net sales, gross profit is negative and so is the margin. This means the company is losing money on its products before paying any overhead, which can happen during heavy discounting, inventory write-downs or an early-stage launch with high unit costs.

The Bottom Line

Investors and business owners can use gross profit margin to see how much each sales dollar leaves after direct costs. The ratio works best when tracked across several periods or compared with direct competitors, because typical margins vary widely by industry. A strong figure still needs to cover operating expenses, interest and taxes, so read it alongside operating and net margins.

About this page

Written by Markets & Investing Desk

The Markets & Investing Desk covers investing guides, the financial dictionary, companies, people, economics and market data.

Published
Last updated

Spotted an error? Tell the editors. This page is general information, not financial advice.