Gross Profit Margin Calculator

Enter your revenue and cost of goods sold to instantly calculate your gross profit margin percentage, gross profit amount, and COGS ratio.

Total sales / net revenue
Direct production costs only

What Is Gross Profit Margin?

Gross profit margin is the percentage of revenue that remains after subtracting the direct cost of producing or sourcing your goods and services — known as the cost of goods sold (COGS). It is one of the most widely used financial metrics in business, showing how efficiently a company produces or delivers its products before any operating expenses are considered.

A higher gross profit margin means more revenue is available to cover operating expenses, pay staff, invest in growth, and generate net profit. A declining gross margin — even when revenue is growing — is often an early warning sign of cost pressure or pricing problems. Using a gross profit margin calculator regularly helps businesses track this metric accurately without manual errors.

What Is Included in COGS?

Cost of goods sold includes all direct costs tied to production or delivery: raw materials, purchased goods for resale, direct labour wages, and manufacturing overhead directly related to production. It does not include indirect costs such as marketing spend, administrative salaries, office rent, or interest payments — those are deducted later to reach operating profit and net profit. Getting COGS right is essential for an accurate gross profit margin calculation.

How to Calculate Gross Profit Margin

The gross profit margin calculation formula requires just two inputs from your income statement: total revenue and cost of goods sold. Here is the standard method used by accountants, analysts, and every gross profit margin calculator.

Gross Profit = Revenue − COGS
Gross Profit Margin = (Gross Profit ÷ Revenue) × 100

Step-by-Step Instructions

Step 1: Subtract COGS from revenue to find gross profit.
Step 2: Divide gross profit by revenue.
Step 3: Multiply by 100 to express as a percentage.

Worked Example

Revenue: $500,000  |  COGS: $300,000

Step 1: Gross profit = $500,000 − $300,000 = $200,000
Step 2: $200,000 ÷ $500,000 = 0.40
Step 3: 0.40 × 100 = 40% gross profit margin

How to calculate gross profit margin in Excel: Put revenue in A1 and COGS in B1.
Gross profit: =A1-B1
Gross profit margin: =(A1-B1)/A1 formatted as percentage, or =(A1-B1)/A1*100 for a plain number.
To apply across a full P&L column, drag the formula down — it works identically in Google Sheets.

Industry Gross Profit Margin Benchmarks

Gross margin varies enormously by sector. Use this table to evaluate where your business stands relative to typical ranges in your industry.

IndustryTypical Gross MarginNotes
Software / SaaS70–85%Low COGS (hosting, support)
Financial Services60–80%Varies widely by business model
Healthcare / Pharma50–70%High R&D excluded from COGS
Food & Beverage30–50%Ingredient and packaging costs
Retail (general)20–40%Merchandise cost dominates
Manufacturing20–35%Materials and direct labour
Construction15–25%Labour and materials-heavy
Grocery / Supermarket20–30%High volume, thin margins

Benchmarks are approximate and vary by company size, geography, and business model. Always compare against direct competitors in your specific sub-sector.

Gross Profit Margin Examples

Click any example to load it into the calculator and see the full step-by-step breakdown.

Revenue $200k, COGS $120k
40.00%
Gross profit: $80,000
Revenue $500k, COGS $150k
70.00%
SaaS-level gross margin
Revenue $80k, COGS $56k
30.00%
Typical retail range
Revenue $1.2M, COGS $480k
60.00%
Gross profit: $720,000
Revenue $45k, COGS $36k
20.00%
Low-margin business
Revenue $300k, COGS $90k
70.00%
Gross profit: $210,000

Real-World Gross Margin Scenarios

E-commerce retailer: An online store generates $350,000 in annual revenue. Products cost $210,000 to source and ship (COGS). Gross profit margin = ((350,000 − 210,000) / 350,000) × 100 = 40%. This means 40 cents of every sales dollar is available for marketing, platform fees, fulfilment overheads, and profit. If margins are falling quarter-on-quarter, the percentage decrease calculator can quantify exactly how much they have dropped.

SaaS company: A software business earns $2M in annual recurring revenue. Hosting, customer support, and third-party API costs total $300,000. Gross profit margin = ((2,000,000 − 300,000) / 2,000,000) × 100 = 85%. This exceptional margin reflects the scalable nature of software — COGS barely grows as revenue increases. Investors use gross margin as a key indicator of business model quality.

Restaurant: A restaurant earns $600,000 in food and beverage revenue. Food and drink costs (COGS) are $216,000. Gross profit margin = ((600,000 − 216,000) / 600,000) × 100 = 64%. After labour, rent, and other operating costs, net profit is typically just 3–9% — illustrating how a high gross margin does not guarantee a high net margin. For the full picture including all costs, the profit margin calculator covers gross, net, and operating margins together.

When to Use a Gross Profit Margin Calculator

Monthly P&L Review

Track gross margin every month to spot trends before they become problems. A consistent gross profit margin calculation each period gives you a reliable baseline for comparing performance over time.

Pricing Decisions

Use gross margin to evaluate whether your pricing covers costs adequately. If your gross margin is below your industry benchmark, you may need to raise prices, reduce COGS, or shift your product mix toward higher-margin items.

Investor & Lender Reporting

Investors compare gross margins across companies in the same sector. A strong and stable gross margin signals a defensible business model. Include the gross margin percentage — not just gross profit dollars — in every financial presentation.

Supplier Negotiation

If a supplier raises prices, model the impact on gross margin before accepting new terms. A 5% rise in COGS on a 30% gross margin business has a very different impact than on a 70% gross margin business. The calculator makes this analysis instant.

Product Line Analysis

Calculate gross margin separately for each product line or service category. Products with below-average margins may be worth deprioritising. Products with above-average margins deserve more marketing investment. Use the markup percentage calculator to set prices that achieve your target margin.

Business Valuation

Gross margin is a key input in business valuation models. Acquirers and investors use it to project future profitability at scale. A business with a 60% gross margin is typically valued at a higher multiple than one with 20%, even at the same revenue level.

Gross Profit Margin vs. Net Profit Margin vs. Operating Margin

Gross Profit Margin

Revenue minus COGS, divided by revenue. Measures production and sourcing efficiency. Excludes all operating expenses, interest, and tax. The highest of the three margin types — and the one most directly controlled by pricing and procurement decisions.

Operating Profit Margin

Gross profit minus operating expenses (salaries, rent, marketing, depreciation), divided by revenue. Shows how efficiently the business runs its core operations before financing decisions. Also called EBIT margin.

Net Profit Margin

The "bottom line" — all revenue minus all expenses including COGS, operating costs, interest, and tax. The most comprehensive profitability measure. Use the profit margin calculator to calculate all three in one place.

Gross Profit Margin vs. Markup

Gross margin divides gross profit by revenue (selling price). Markup divides gross profit by cost (COGS). A product with $60 COGS selling at $100 has a 40% gross margin but a 66.7% markup. The two numbers describe the same relationship from different angles. Confusing them leads to systematic pricing errors. Always specify which metric you are using when reporting or comparing.

Frequently Asked Questions

How do you calculate gross profit margin?
Subtract COGS from revenue to find gross profit, then divide by revenue and multiply by 100. Formula: ((Revenue − COGS) / Revenue) × 100. Example: revenue $300,000, COGS $180,000 → gross profit $120,000 → gross margin = (120,000 / 300,000) × 100 = 40%. Use the gross profit margin calculator above for instant results with full step-by-step working.
What is the gross profit margin calculation formula?
The standard gross profit margin calculation formula is: Gross Profit Margin = ((Revenue − COGS) / Revenue) × 100. Equivalently: Gross Profit Margin = (Gross Profit / Revenue) × 100. Both produce identical results. The gross profit margin ratio (as a decimal) omits the × 100 step: Gross Profit / Revenue = 0.40 for a 40% margin.
How do I calculate gross profit margin in Excel?
Put revenue in A1 and COGS in B1. Gross profit formula: =A1-B1. Gross profit margin: =(A1-B1)/A1 formatted as a percentage, or =(A1-B1)/A1*100 for a plain number. To calculate across multiple periods, enter revenue in column A and COGS in column B, then drag the margin formula across column C. Works identically in Google Sheets.
What is a good gross profit margin?
It depends entirely on your industry. Software companies typically achieve 70–85%. Retailers average 20–50%. Restaurants 30–65% on food alone. Manufacturing 20–35%. Compare your gross margin against direct competitors in your specific sub-sector rather than against a universal benchmark. A 25% gross margin is excellent in grocery and weak in software — context is everything.
What is the difference between gross profit margin and net profit margin?
Gross profit margin only subtracts the direct cost of goods sold (COGS) from revenue. Net profit margin subtracts every expense — COGS, operating costs, marketing, admin salaries, interest, and taxes. A business can have a strong 60% gross margin but a 3% net margin if overheads are very high. Gross margin measures production efficiency; net margin measures total business profitability.
How do I calculate gross profit margin ratio?
The gross profit margin ratio is the same calculation expressed as a decimal. Divide gross profit by revenue without multiplying by 100: Ratio = (Revenue − COGS) / Revenue. Example: revenue $400,000, COGS $240,000 → ratio = 160,000 / 400,000 = 0.40. As a percentage this is 40%. Financial analysts often use the ratio form when building financial models.
What costs are included in COGS for gross profit margin calculation?
COGS includes all direct production costs: raw materials, purchased inventory, direct labour wages, manufacturing overhead tied directly to production, and freight-in costs. It excludes indirect costs: marketing and advertising, administrative salaries, office rent, depreciation of non-production assets, and interest payments. Incorrectly including indirect costs in COGS will understate your gross margin.
How is gross profit margin different from markup percentage?
Gross profit margin divides gross profit by revenue (selling price). Markup percentage divides gross profit by COGS (cost). Same numbers, different denominators. A $40 cost and $100 selling price: gross margin = (100−40)/100 = 60%, markup = (100−40)/40 = 150%. Confusing margin with markup is one of the most common pricing errors in small business. Use our markup percentage calculator when working from cost to price.

Related Percentage Calculators

Need a different type of percentage calculation? Try one of our other free tools: