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.
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 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.
| Industry | Typical Gross Margin | Notes |
|---|---|---|
| Software / SaaS | 70–85% | Low COGS (hosting, support) |
| Financial Services | 60–80% | Varies widely by business model |
| Healthcare / Pharma | 50–70% | High R&D excluded from COGS |
| Food & Beverage | 30–50% | Ingredient and packaging costs |
| Retail (general) | 20–40% | Merchandise cost dominates |
| Manufacturing | 20–35% | Materials and direct labour |
| Construction | 15–25% | Labour and materials-heavy |
| Grocery / Supermarket | 20–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.
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
Related Percentage Calculators
Need a different type of percentage calculation? Try one of our other free tools: