Calculate gross margin percentage, gross profit, and markup from revenue and COGS. Compare margins to industry benchmarks.
Business
global
Gross Margin Calculator, Business, Calculate gross margin percentage, gross profit, and markup from revenue and COGS. Compare margins to industry benchmarks., gross profit margin, revenue minus COGS, gross margin percentage, production profitability, calc, compute
Gross Margin Calculator
Calculate gross margin percentage, gross profit, and markup from revenue and COGS. Compare margins to industry benchmarks.
gross profit margin, revenue minus COGS, gross margin percentage, production profitability
Business global
Gross Margin Calculator, Business, Calculate gross margin percentage, gross profit, and markup from revenue and COGS. Compare margins to industry benchmarks., gross profit margin, revenue minus COGS, gross margin percentage, production profitability, calc, compute
Gross Margin Calculator
Calculate gross margin percentage, gross profit, and markup from revenue and COGS. Compare margins to industry benchmarks.
Currency
50K
$
30K
$
Gross Margin
40.00%
$20,000 gross profit
Gross Profit
$20,000
Revenue minus COGS
Markup
66.67%
Profit over cost
COGS Ratio
60.00%
Cost as % of revenue
Revenue Breakdown
How your revenue splits between cost and profit
COGS
$30,000
60%
Gross Profit
$20,000
40%
What is Gross Margin?
Understanding the fundamentals of gross margin calculation
Gross margin is a profitability metric that measures the percentage of revenue retained after deducting the cost of goods sold (COGS). It represents how efficiently a company converts revenue into profit before accounting for operating expenses, taxes, and interest.
A higher gross margin indicates that a company keeps more money from each dollar of sales, which can be used to cover operating expenses, invest in growth, or return to shareholders. It is one of the most important metrics for evaluating business health and pricing strategy.
How to Calculate Gross Margin
Step-by-step formulas for gross margin, gross profit, and markup
Gross Profit
Gross Profit = Revenue - Cost of Goods Sold (COGS)
Gross Margin Percentage
Gross Margin (%) = (Gross Profit / Revenue) × 100
Markup Percentage
Markup (%) = (Gross Profit / COGS) × 100
Example Calculation
If your revenue is $100,000 and COGS is $60,000, then: Gross Profit = $100,000 - $60,000 = $40,000. Gross Margin = ($40,000 / $100,000) × 100 = 40%. Markup = ($40,000 / $60,000) × 100 = 66.67%.
Gross Margin vs Markup
How markup accelerates exponentially compared to margin — a 50% margin equals 100% markup
Margin %
Markup %
While both measure profitability, margin and markup use different bases. Gross margin is calculated as a percentage of revenue (selling price), while markup is calculated as a percentage of cost. A 50% markup produces a 33.33% margin, not a 50% margin.
Gross Margin by Industry
Typical gross margin ranges to benchmark your business performance
Range
Typical
Software / SaaS
78%
Pharmaceuticals
68%
Financial Services
60%
Consulting / Services
55%
Consumer Electronics
35%
Retail (General)
35%
Manufacturing
30%
E-commerce
30%
Food & Beverage
25%
Grocery / Supermarket
15%
Automotive
15%
Construction
18%
0%25%50%75%100%
Approximate ranges based on publicly reported industry data (sources: NYU Stern, CSIMarket, S&P Capital IQ). Individual company margins may vary significantly based on business model, scale, geography, and competitive dynamics.
How to Improve Gross Margin
Actionable strategies to increase your gross margin percentage
Optimize pricing
Regularly review and adjust prices based on market conditions, competitor analysis, and perceived value.
Reduce COGS
Negotiate better supplier terms, find alternative materials, or improve production efficiency.
Improve product mix
Focus on selling higher-margin products. Analyze margin by product line to promote the most profitable offerings.
Minimize waste & returns
Reduce material waste, shipping damage, and returns through better quality control and packaging.
Leverage economies of scale
As production volume increases, per-unit costs typically decrease, improving gross margin percentage.
Automate production
Invest in automation to reduce labor costs per unit while maintaining or improving output quality.
Frequently Asked Questions
Common questions about gross margin calculation and analysis
Gross margin is calculated by subtracting the cost of goods sold (COGS) from revenue, dividing that result by revenue, and multiplying by 100. The formula is: Gross Margin (%) = ((Revenue - COGS) / Revenue) × 100. For example, if revenue is $200,000 and COGS is $120,000, gross margin = (($200,000 - $120,000) / $200,000) × 100 = 40%.
Gross margin only considers the cost of goods sold (direct costs like materials and manufacturing labor), while net margin accounts for all expenses including operating costs, taxes, interest, and depreciation. Gross margin shows production efficiency, while net margin shows overall profitability. A company can have a high gross margin but low net margin if operating expenses are high.
A 'good' gross margin varies significantly by industry. Software and SaaS companies typically see 70-85%, while grocery stores may operate at 5-25%. In general, a gross margin above 50% is considered strong, 25-50% is healthy for most industries, and below 25% suggests tight margins. These ranges are based on publicly reported industry averages (e.g., NYU Stern, CSIMarket data). Always compare your margin to your specific industry benchmarks rather than using a universal standard.
Gross margin and markup both measure profitability but use different denominators. Gross margin is profit as a percentage of revenue (selling price), while markup is profit as a percentage of cost. For example, if you buy for $60 and sell for $100: gross margin = 40% ($40/$100), but markup = 66.67% ($40/$60). A 50% markup equals a 33.33% margin, not 50%.
In Excel, if revenue is in cell A1 and COGS is in cell B1, use the formula: =((A1-B1)/A1)*100 for gross margin as a percentage. Alternatively, use =(A1-B1)/A1 and format the cell as a percentage. For gross profit in dollars, simply use =A1-B1.
Key factors include: raw material costs, labor efficiency, production volume (economies of scale), pricing strategy, product mix, supplier negotiations, manufacturing technology, waste and defect rates, shipping and logistics costs, and currency fluctuations for international businesses. Seasonal demand can also impact margins if pricing or costs vary throughout the year.
Yes, gross margin becomes negative when COGS exceeds revenue, meaning the company loses money on every sale before even accounting for operating expenses. This can happen during startup phases, clearance sales, aggressive market penetration pricing, or supply chain disruptions that spike costs. Negative gross margin is unsustainable long-term.
To find the required selling price for a target gross margin, use: Selling Price = Cost / (1 - Target Margin as decimal). For example, if your cost is $60 and you want a 40% gross margin: Selling Price = $60 / (1 - 0.40) = $60 / 0.60 = $100. This reverse calculation is essential for pricing strategy.
COGS includes all direct costs to produce goods or deliver services: raw materials, direct labor (manufacturing workers), manufacturing overhead (factory rent, utilities, equipment depreciation), packaging, and freight-in costs. It does NOT include indirect costs like marketing, administrative salaries, office rent, or R&D expenses — those are operating expenses.
Gross profit is an absolute dollar amount (Revenue - COGS), while gross margin is a percentage ((Revenue - COGS) / Revenue × 100). A company with $1M revenue and $600K COGS has a gross profit of $400K and a gross margin of 40%. Gross margin is more useful for comparing businesses of different sizes, while gross profit shows actual dollars available.
Embed Gross Margin Calculator
Add this calculator to your website or blog for free.