Curious Minds

Clear answers to science and history questions

Gross Margin Percentage: Formula & How to Calculate

· 5 min read · Science

Gross margin percentage is calculated by subtracting the cost of goods sold (COGS) from net revenue, dividing that result by net revenue, and multiplying by 100. The formula is: Gross Margin % = ((Revenue − COGS) / Revenue) × 100.

What Gross Margin Percentage Tells You

Gross margin percentage measures how much of every dollar of revenue remains after paying for the direct costs of producing the goods or services sold. It is expressed as a percentage, so a gross margin of 40% means that for every $100 in revenue, $40 is left over to cover operating expenses, taxes, interest, and profit. The remaining $60 went toward the cost of goods sold.

This metric is one of the most closely watched profitability ratios in business. It differs from net margin, which subtracts all operating expenses, interest, and taxes. Gross margin focuses narrowly on production efficiency and pricing power.

The Formula and How to Use It

The standard formula is:

Gross Margin % = ((Revenue − COGS) / Revenue) × 100

Where:

  • Revenue = total income from sales before any deductions (also called net sales if returns and allowances are subtracted).
  • COGS = direct costs attributable to producing the goods sold, including raw materials, direct labor, and manufacturing overhead. It does not include selling, general, and administrative expenses (SG&A), marketing, or distribution costs.

To apply it, take the revenue figure from the income statement, subtract the cost of goods sold, divide the result by revenue, and multiply by 100. For example, if a company has revenue of $500,000 and COGS of $300,000, the gross margin is (($500,000 − $300,000) / $500,000) × 100 = 40%.

Worked Example with Realistic Numbers

Consider a small furniture maker that sells $80,000 worth of tables in a month. The wood, hardware, and direct labor cost $48,000. Using the formula:

  1. Revenue = $80,000
  2. COGS = $48,000
  3. Gross profit = $80,000 − $48,000 = $32,000
  4. Gross margin % = ($32,000 / $80,000) × 100 = 40%

So the furniture maker keeps $0.40 of every sales dollar before considering rent, utilities, marketing, and other operating costs.

Gross Margin vs. Markup: A Common Confusion

People often confuse gross margin with markup, but they are different. Markup is the percentage added to cost to arrive at a selling price. The formula for markup is:

Markup % = ((Price − Cost) / Cost) × 100

In the furniture example, the markup is (($80 − $48) / $48) × 100 = 66.7%, while the gross margin is 40%. A 50% markup does not equal a 50% gross margin—a 50% markup yields a 33.3% gross margin. This distinction matters when setting prices or evaluating profitability.

What Is a “Good” Gross Margin?

There is no single universal target because margins vary widely by industry. Software companies often have gross margins above 80% because COGS is minimal (mainly hosting and support). Retailers and grocers typically operate with margins between 20% and 30%. Manufacturing can range from 30% to 50% depending on the product and scale.

Comparing your gross margin to the industry average is more useful than comparing to an arbitrary number. A margin that is significantly lower than peers may indicate pricing pressure, rising material costs, or inefficient production. A higher margin could signal strong pricing power or a cost advantage.

Common Mistakes When Calculating

Several errors can distort the gross margin calculation:

  • Including non-production costs in COGS: Shipping, sales commissions, and office rent are not part of COGS. Including them understates gross margin.
  • Using gross profit instead of revenue in the denominator: The formula divides by revenue, not by gross profit. Dividing by gross profit yields a meaningless number.
  • Mixing time periods: Revenue and COGS must cover the same period. Using quarterly revenue with annual COGS gives a wrong result.
  • Forgetting to subtract returns and allowances: If revenue is reported as gross sales, subtract returns and discounts first to get net revenue.
  • Rounding too early: Keep full precision in intermediate steps and round only the final percentage to avoid small errors.

Limitations of Gross Margin

Gross margin is a useful snapshot, but it has limits. It ignores operating expenses, interest, taxes, and other costs that determine overall profitability. A company can have a high gross margin but still lose money if its operating costs are excessive.

It also does not account for inventory valuation methods. Different methods (FIFO, LIFO, or weighted average) can produce different COGS, especially during inflation, leading to different gross margins even when the underlying business is identical.

Finally, gross margin is a percentage, so it does not reflect the absolute scale of profit. A 50% margin on $10,000 in sales yields $5,000, while a 30% margin on $1,000,000 yields $300,000. Always look at both the percentage and the dollar amount.

Frequently Asked Questions

What is the difference between gross margin and net margin?

Gross margin only subtracts the cost of goods sold from revenue. Net margin subtracts all operating expenses, interest, taxes, and other costs. Net margin is always lower than gross margin for a profitable company, and it reflects overall profitability, not just production efficiency.

Can gross margin be negative?

Yes. If COGS exceeds revenue, the gross margin is negative, meaning the company loses money on every unit sold before considering other expenses. This can happen during a price war, when production costs spike, or when a product is discontinued and sold below cost.

How do I calculate gross margin in Excel?

In Excel, if revenue is in cell A1 and COGS is in B1, enter the formula =(A1-B1)/A1 in cell C1, then format C1 as a percentage. For example, =(500000-300000)/500000 returns 0.4, which displays as 40% when formatted.

Does gross margin include salaries?

It depends. Direct labor—the wages of workers who physically make the product—is included in COGS and therefore affects gross margin. Salaries for administrative staff, salespeople, and executives are operating expenses and are not part of gross margin.

What is a good gross margin for a small business?

There is no single answer. Service businesses often have high margins (50–80%) because they have low direct costs. Product-based businesses typically range from 30–50%. Compare your margin to your industry’s typical range and track it over time to spot trends.

In this article
  1. What Gross Margin Percentage Tells You
  2. The Formula and How to Use It
  3. Worked Example with Realistic Numbers
  4. Gross Margin vs. Markup: A Common Confusion
  5. What Is a “Good” Gross Margin?
  6. Common Mistakes When Calculating
  7. Limitations of Gross Margin
  8. Frequently Asked Questions