Gross Margin Calculator

Calculate gross margin percentage from revenue and cost of goods sold.

Your data stays in your browser. Nothing is stored or sent to any server.
Built by Abiot Y. Derbie, PhD — Postdoctoral Research Fellow. Quantitative researcher specializing in statistical modeling and data-driven decision systems.

Enter Your Details

0
helpful
Create a free account to save and compare your results across devices.

This calculator is for informational and educational purposes only. Results are estimates based on the information you provide and standard financial formulas. This is not financial advice. Consult a qualified financial advisor for decisions specific to your situation. Full Disclaimer

Things to Know

Essential concepts for understanding your results

Formula
How is gross margin calculated?

Gross Margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100. A product selling for $80 with $30 in direct costs: ($80 − $30) ÷ $80 = 62.5% gross margin. Gross margin measures production efficiency — how much of each revenue dollar remains after paying for the product itself. It excludes operating expenses (rent, salaries, marketing). A healthy gross margin is the foundation for business profitability — you cannot overcome a bad gross margin with volume.

Industry Benchmarks
What is a good gross margin?

Varies dramatically: Software/SaaS: 70-85%. Professional services: 50-70%. Retail: 25-50%. Restaurants: 60-70% (food cost 30-40%). Manufacturing: 25-40%. Grocery stores: 25-30%. Companies with high gross margins have more cushion for operating expenses and can invest more in growth. Compare to your industry median — being 5%+ below peers signals pricing or cost-structure problems.

Pricing Impact
How does a 5% gross margin improvement affect profit?

A business doing $500,000 in revenue at 40% gross margin ($200,000 gross profit) with $170,000 in operating expenses: net profit = $30,000 (6% net margin). Improving gross margin to 45%: gross profit = $225,000, net profit = $55,000 — an 83% increase in profit from a seemingly modest 5-point gross margin improvement. This is why gross margin optimization is the most powerful lever for small business profitability.

What Is Gross Margin?

Gross margin measures the percentage of revenue remaining after subtracting the direct cost of producing your goods or services. It answers the fundamental business question: how much money do you keep from each dollar of sales before paying for overhead, marketing, rent, and other operating expenses?

Formula: Gross Margin = (Revenue - Cost of Goods Sold) ÷ Revenue × 100. If you sell a product for $50 and it costs $20 to make (materials, labor, shipping): gross margin = ($50 - $20) ÷ $50 = 60%. You keep 60 cents of every dollar in revenue to cover operating expenses and generate profit.

Gross margin is the first profitability metric every business should track. A healthy gross margin means you have room to cover overhead and still profit. A thin margin means even small increases in costs or decreases in pricing can push you into losses. For product businesses, target 50%+ for physical goods and 70%+ for digital/SaaS products.

Gross Margin by Industry

Healthy gross margins vary dramatically by industry. Knowing your industry's benchmarks helps you evaluate whether your pricing and cost structure are competitive:

Software/SaaS: 70-90%. Minimal cost per unit after development. The gold standard for scalable businesses. Below 60% suggests overspending on delivery infrastructure.

Professional services (consulting, legal, accounting): 50-70%. Primary cost is labor. Below 40% suggests underpricing or overstaffing.

E-commerce/retail: 40-60%. Physical products have material, manufacturing, and shipping costs. Below 30% makes it very difficult to cover marketing and overhead profitably.

Restaurants: 60-70% on food. Food cost (the inverse of gross margin on food) should be 28-35%. A $15 entrée should cost $4.50-$5.25 in ingredients. Beverage margins are much higher (75-85%).

Manufacturing: 25-40%. Heavy material and labor costs. Volume-dependent — larger production runs reduce per-unit cost and improve margins.

Grocery/supermarket: 25-35%. The thinnest margins of any retail sector. Profitability comes from volume and inventory turnover, not per-item margin.

Improving Your Gross Margin

Raise prices: A 10% price increase on a product with 50% margin increases gross margin to 55% — a 10% improvement in margin from a 10% price change. Small price increases have outsized margin impact because they flow directly to profit. Test price increases of 5-10% and measure volume impact — most businesses lose fewer customers than expected.

Reduce COGS: Negotiate with suppliers for volume discounts, find alternative materials, reduce waste, improve production efficiency, or source from lower-cost regions. Even a 5% reduction in COGS flows directly to margin improvement.

Change product mix: Shift sales toward higher-margin products. Bundle high-margin items with popular lower-margin items. Upsell premium versions with minimal incremental cost. A restaurant that increases beverage sales from 20% to 30% of revenue improves blended margin significantly because beverage margins are 75-85% vs 60-70% for food.

Frequently Asked Questions

What is a good gross margin?
Varies by industry: Software/SaaS: 70-90%. Services: 50-70%. E-commerce: 40-60%. Manufacturing: 25-40%. Grocery: 25-35%. Compare your margin to industry benchmarks and competitors. If your margin is significantly below industry average, examine pricing strategy and cost structure. A margin above industry average is a competitive advantage.
What is the difference between gross margin and net margin?
Gross margin = (Revenue - COGS) ÷ Revenue. It measures profitability before overhead. Net margin = (Revenue - ALL expenses) ÷ Revenue. It measures final profitability after rent, salaries, marketing, taxes, and every other cost. A business with 60% gross margin and 10% net margin spends 50% of revenue on operating expenses. Both metrics matter — gross margin shows product-level economics; net margin shows overall business health.
How do I calculate COGS?
COGS includes all direct costs of producing your product or service: raw materials, manufacturing labor, packaging, shipping to customer, payment processing fees, and marketplace commissions. It does NOT include: rent, marketing, administrative salaries, software, or any expense not directly tied to producing a specific unit. If the cost would exist even if you sold zero units, it is operating expense, not COGS.
How does pricing affect gross margin?
Pricing has an outsized effect on margin. A 10% price increase on a $50 product with $20 COGS: margin goes from 60% to 63.6%. A 10% price decrease: margin drops to 55.6%. Because COGS stays fixed, every dollar of price change flows directly to margin. This is why even small discounts can devastate profitability — a 20% discount on a 50% margin product requires 67% more volume to maintain the same profit.
Why is my gross margin declining?
Common causes: supplier cost increases not passed to customers, shipping cost increases, increasing marketplace fees, discounting too aggressively, shifting product mix toward lower-margin items, or production inefficiency as you scale. Track margin by product/category monthly to identify which specific items are driving the decline — then address pricing or costs at the product level.
Powered by FinCalcs — Free Financial Calculators