Gross Profit Margin
Gross profit margin is the percentage of net sales that remains as gross profit after subtracting the cost of goods sold (COGS). It measures the portion of sales retained after the costs assigned to goods sold, before operating and other expenses are considered.
Markup vs Margin Calculator
Convert between profit margin percentage, markup percentage, cost, and selling price.
What Is Gross Profit Margin?
Gross profit margin tells you how much gross profit a business generates from each dollar of net sales after accounting for COGS.
For example, suppose a retailer has:
- Net sales = $100,000
- COGS = $60,000
- Gross profit = $40,000
The gross profit margin is:
$40,000 ÷ $100,000 = 40%
This means the business generated $0.40 of gross profit for every $1.00 of net sales.
The remaining $0.60 represents the portion of sales consumed by COGS.
That does not mean the business earned $0.40 in final profit. The business may still have operating expenses such as salaries, rent, advertising, software, administrative costs, depreciation, interest, and taxes.
Gross profit margin therefore measures profitability at the gross-profit level, not the final profitability of the business.
Gross profit margin and gross margin are commonly used as names for the same percentage measure. The more explicit term “gross profit margin” makes the relationship clear: it is gross profit expressed as a percentage of net sales.
How It Works
Gross profit margin is calculated through a simple sequence:
- Determine gross sales or revenue.
Start with the business's sales for the period. - Determine net sales.
Account for applicable returns, allowances, discounts, and similar reductions to arrive at the sales figure used in the calculation. - Determine COGS.
Identify the costs assigned to the goods sold during the period. For a retailer, this commonly includes merchandise or product costs. Depending on the business and its accounting policies, other costs may also be included in COGS. - Calculate gross profit.
Subtract COGS from net sales. - Calculate gross profit margin.
Divide gross profit by net sales and multiply by 100. - Analyze the percentage.
Compare the result across periods, products, categories, channels, or other consistent segments.
The calculation itself is simple. The more difficult issue is making sure the sales and COGS figures are defined consistently.
Different businesses can classify certain costs differently. For example, retailers may differ in how they classify distribution, fulfillment, freight, warehousing, occupancy, or other costs. Consequently, gross profit margins may not always be directly comparable between businesses without understanding their accounting policies.
Gross profit margin is therefore both a calculation and an analytical measure. The percentage is meaningful only when the underlying sales and cost figures are properly determined.
Formula & Calculation Method
1. Gross Profit
Gross Profit = Net Sales − COGS
Where:
- Net Sales = sales after applicable returns, allowances, discounts, and similar reductions
- COGS = costs assigned to the goods sold during the period
2. Gross Profit Margin
Gross Profit Margin (%) = Gross Profit ÷ Net Sales × 100
The formula can also be written directly as:
Gross Profit Margin (%) = (Net Sales − COGS) ÷ Net Sales × 100
3. Net Sales
A simplified retail calculation is:
Net Sales = Gross Sales − Returns − Allowances − Discounts
The exact presentation can vary depending on the transaction and applicable accounting treatment.
4. Basic Inventory COGS Flow
For an inventory-based business, a basic inventory flow is:
COGS = Beginning Inventory + Inventory Purchases − Ending Inventory
This is a simplified inventory-flow calculation. Actual inventory accounting can require additional adjustments and applicable inventory costs based on the business's accounting system and policies.
5. Gross Profit From Gross Profit Margin
If net sales and gross profit margin are known:
Gross Profit = Net Sales × Gross Profit Margin %
For example:
$500,000 × 40% = $200,000 gross profit
6. COGS From Gross Profit Margin
If net sales and gross profit margin are known:
COGS = Net Sales × (1 − Gross Profit Margin %)
For example, if net sales are $500,000 and gross profit margin is 40%:
COGS = $500,000 × (1 − 0.40)
COGS = $300,000
7. Relationship Between Gross Profit Margin and COGS Percentage
When both are calculated against the same net sales figure:
Gross Profit Margin % + COGS % = 100%
Therefore:
Gross Profit Margin % = 100% − COGS %
For example, if COGS equals 65% of net sales, gross profit margin is 35%.
Worked Example
Consider a U.S. online apparel retailer reviewing its annual performance.
Step 1: Determine gross sales
The retailer records:
Gross Sales = $2,000,000
During the year:
- Customer returns = $80,000
- Sales discounts and allowances = $120,000
Step 2: Calculate net sales
Net Sales = $2,000,000 − $80,000 − $120,000
Net Sales = $1,800,000
Step 3: Determine COGS
Assume the retailer's accounting policy assigns the following costs to COGS:
- Merchandise costs = $900,000
- Applicable inbound freight = $45,000
- Inventory shrinkage and related inventory adjustments = $15,000
COGS = $960,000
The exact composition of COGS varies by business and accounting policy. These classifications are assumptions for this example rather than a universal rule for every retailer.
Step 4: Calculate gross profit
Gross Profit = $1,800,000 − $960,000
Gross Profit = $840,000
Step 5: Calculate gross profit margin
Gross Profit Margin = $840,000 ÷ $1,800,000 × 100
Gross Profit Margin = 46.67%
The retailer therefore generated:
- $840,000 of gross profit
- 46.67% gross profit margin
This means approximately $0.467 of every $1.00 of net sales remained as gross profit after the costs included in COGS.
Step 6: Understand what the 46.67% does not represent
Suppose the retailer also incurs:
- Advertising = $180,000
- Salaries and administrative expenses = $250,000
- Software and technology = $50,000
- Other operating expenses = $100,000
These expenses occur after the gross-profit calculation if they are classified outside COGS.
They therefore do not change the 46.67% gross profit margin in this example.
Instead, they reduce the amount of gross profit remaining to cover the business's other expenses and ultimately generate net income.
This is why gross profit margin should never be interpreted as the company's final profit margin.
How to Interpret Results
What the percentage means
A gross profit margin of 40% means that the business generates $0.40 of gross profit for every $1.00 of net sales.
A gross profit margin of 65% means that $0.65 of every $1.00 of net sales remains after the costs included in COGS.
The percentage therefore provides a standardized way of examining gross profitability even when businesses have very different sales volumes.
Gross profit margin is not net profit margin
Gross profit margin considers only the relationship between net sales and COGS.
A simplified income statement progression is:
Net Sales → COGS → Gross Profit → Operating Expenses → Other Items → Net Income
Gross profit margin sits near the beginning of this progression.
Net profit margin occurs much later and reflects the income remaining after the broader set of expenses and income items applicable to the business.
A higher margin is not automatically better in every context
A higher gross profit margin generally means more gross profit is generated from each dollar of net sales, all else equal.
However, the percentage must be interpreted alongside:
- Sales volume
- Gross profit dollars
- Product mix
- Operating expenses
- Capital requirements
- Inventory turnover
- Pricing
- Business model
- Growth strategy
A business with a lower gross profit margin can still generate substantial gross profit because of higher sales volume.
Gross profit dollars matter
Consider two products:
Product A
- Net sales = $100
- COGS = $40
- Gross profit = $60
- Gross profit margin = 60%
Product B
- Net sales = $500
- COGS = $300
- Gross profit = $200
- Gross profit margin = 40%
Product A has the higher percentage margin.
Product B generates more gross profit dollars per sale.
Both measurements are useful, and neither should automatically replace the other.
Margin changes can have multiple causes
A change in gross profit margin can result from:
- Changes in selling prices
- Changes in product costs
- Supplier pricing
- Product mix
- Discounts and promotions
- Customer returns
- Inventory shrinkage
- Inventory write-downs or adjustments
- Freight and logistics costs included in COGS
- Tariffs and duties where applicable
- Foreign-exchange movements
- Manufacturing costs
- Commodity prices
The percentage should therefore be investigated rather than interpreted in isolation.
Product mix can change the company-wide margin
Suppose a business sells high-margin accessories and lower-margin core products.
If the business sells a greater proportion of the lower-margin products, its overall gross profit margin can decline even if the individual margins of both product categories remain unchanged.
The reverse can also happen.
This makes product mix an important consideration when analyzing changes in company-wide gross profit margin.
COGS classification affects comparability
Gross profit margin is calculated from reported sales and COGS, so the classification of costs matters.
Two retailers may have similar underlying economics but different reported gross profit margins if one classifies certain fulfillment, distribution, freight, or other costs within COGS while the other classifies them as operating expenses.
Comparisons should therefore consider the accounting definitions behind the reported figures.
Gross profit margin versus contribution margin
Gross profit margin and contribution margin answer different questions.
Gross profit margin is based on:
Net Sales − COGS
Contribution margin is a managerial measure based on:
Sales − Defined Variable Costs
A business may classify some variable costs within COGS and others outside COGS.
Therefore, contribution margin can be different from gross profit margin and may be more useful for certain decisions involving individual orders, customers, products, or channels.
Gross profit margin versus markup
Margin and markup are often confused because both relate to gross profit.
The difference is the denominator:
Margin = Gross Profit ÷ Selling Price
Markup = Gross Profit ÷ Cost
A product costing $60 and selling for $100 has:
- $40 gross profit
- 40% gross profit margin
- 66.67% markup on cost
The dollar profit is identical, but the percentages are not.
There is no universal “good” gross profit margin
Different businesses operate with fundamentally different economics.
A retailer, manufacturer, wholesaler, luxury brand, grocery business, software company, or service business may have very different gross-profit structures.
The useful comparison is usually against an appropriate historical period, product category, business model, or other genuinely comparable benchmark.
Real-World Applications
Retail
Retailers use gross profit margin to evaluate merchandise profitability, pricing, promotions, purchasing decisions, and category performance.
E-Commerce
Online retailers use gross profit margin to understand product economics before considering expenses such as advertising, payment processing, fulfillment, and other operating costs.
Manufacturing
Manufacturers use gross profit margin to evaluate the relationship between product revenue and the costs assigned to goods sold.
Wholesale
Wholesalers can use gross profit margin to evaluate customer pricing, product economics, sourcing costs, and sales channels.
Consumer Brands
Consumer brands can analyze gross profit margin by SKU, product line, collection, supplier, sourcing region, or sales channel.
Product Pricing
Businesses can use target gross profit margins when setting or evaluating selling prices.
Purchasing and Procurement
Purchasing teams can analyze how supplier-price changes affect gross profit margin.
Promotions
Businesses can measure whether discounts and promotional activity materially affect gross profit margin.
Product Mix Analysis
Management can examine gross profit margin by product, category, brand, store, channel, customer segment, or geography.
Financial Analysis
Investors, lenders, analysts, and management can use gross profit margin to evaluate historical performance and changes in the economics of a business.
Budgeting and Forecasting
Businesses can use projected gross profit margins to estimate future gross profit from expected sales.
For example:
Projected Gross Profit = Projected Net Sales × Assumed Gross Profit Margin
Common Mistakes & Misconceptions
- Confusing gross profit with gross profit margin: Gross profit is a dollar amount; gross profit margin is the percentage of net sales represented by that gross profit.
- Confusing gross profit margin with net profit margin: Gross profit margin occurs before the broader set of operating, financing, tax, and other expenses that affect net income.
- Using gross sales instead of net sales: Returns, allowances, discounts, and similar reductions can affect the appropriate sales denominator.
- Confusing margin with markup: Margin uses selling price or net sales as the denominator; markup uses cost.
- Assuming a higher margin always means a more profitable business: Total gross profit dollars, sales volume, operating expenses, and other factors also matter.
- Assuming there is one universal good gross profit margin: Appropriate margins vary by business model, industry, product mix, and cost structure.
- Ignoring product mix: Changes in the proportion of high- and low-margin products can change the overall margin.
- Comparing businesses without examining COGS classification: Similar costs may be classified differently by different companies.
- Ignoring returns and discounts: Using gross sales instead of the appropriate net-sales figure can distort the ratio.
- Treating advertising as automatically part of COGS: Advertising is not automatically a COGS item simply because it helps generate sales.
- Treating payment processing or fulfillment as automatically part of COGS: Their classification depends on the business and applicable accounting policies.
- Confusing gross profit margin with contribution margin: Contribution margin uses a variable-cost framework and can include costs outside COGS.
- Using inconsistent periods: Net sales and COGS must correspond to the same period.
- Assuming an increase in gross profit margin automatically means the business improved in every respect: A higher margin can result from pricing, product mix, cost changes, or classification changes and should be investigated in context.
- Assuming gross profit margin and gross margin are different financial metrics: They are commonly different names for the same ratio.
- Calculating the percentage from gross profit and gross sales: Gross profit margin should generally use the appropriate net-sales or revenue denominator, not an unreconciled gross-sales figure.
Frequently Asked Questions
What is gross profit margin?
Gross profit margin is the percentage of net sales that remains as gross profit after subtracting COGS.
How do you calculate gross profit margin?
Use: Gross Profit Margin (%) = Gross Profit ÷ Net Sales × 100 Because gross profit equals net sales minus COGS, the formula can also be written: Gross Profit Margin (%) = (Net Sales − COGS) ÷ Net Sales × 100
What is the difference between gross profit and gross profit margin?
Gross profit is the dollar amount remaining after COGS. Gross profit margin expresses that amount as a percentage of net sales. For example, $200,000 of gross profit on $500,000 of net sales produces a 40% gross profit margin.
Is gross profit margin the same as gross margin?
Yes. Gross margin is commonly used as the shorter name for gross profit margin. Both refer to gross profit expressed as a percentage of sales or revenue.
What is the difference between gross profit margin and markup?
Gross profit margin divides gross profit by selling price or net sales. Markup divides gross profit by cost. A $60 product sold for $100 has a 40% gross profit margin but a 66.67% markup on cost.
What is a good gross profit margin?
There is no universal percentage that is appropriate for every business. The appropriate margin depends on the industry, business model, product mix, pricing, cost structure, and operating expenses.
Does gross profit margin include operating expenses?
Generally, gross profit margin is calculated before operating expenses that are outside COGS. Expenses such as advertising, administrative salaries, rent, and other operating costs are therefore generally not included in the ratio unless the business's accounting classification places a particular cost in COGS.
Can a company have a high gross profit margin and still lose money?
Yes. A business can have a high gross profit margin while losing money if its operating expenses, interest, taxes, or other costs exceed its gross profit.
How can a business improve gross profit margin?
Potential approaches include increasing prices, reducing product costs, improving sourcing, reducing waste or shrinkage, optimizing product mix, and reducing unnecessary discounts. Each approach can involve trade-offs, such as lower demand following a price increase.
Why does gross profit margin change?
Gross profit margin can change because of pricing, product costs, product mix, discounts, returns, freight, inventory adjustments, foreign-exchange movements, tariffs, manufacturing costs, or changes in the classification of costs.
Can gross profit margin be negative?
Yes. If COGS exceeds net sales, gross profit is negative and the resulting gross profit margin is negative. For example: Net Sales = $100,000 COGS = $120,000 Gross Profit = −$20,000 Gross Profit Margin = −20% A negative gross profit margin means the business's COGS exceeded its net sales for the period.