What is gross margin?
The gross margin calculator above shows the percentage of revenue left after the direct cost of producing your goods or services. Gross margin is the first and most fundamental profitability checkpoint: before any overhead, marketing, or salaries, how much does each sales dollar contribute? It isolates the economics of the product itself, stripped of everything else the business spends money on.
Gross margin matters because it sets the ceiling on every other kind of profit. A business with a 30% gross margin only has 30 cents per dollar to cover all operating expenses and still turn a profit — and if operating costs exceed that, no amount of scale will help. A business with an 80% gross margin (typical of software) has enormous room to invest in growth and still profit. Gross margin is the number that determines what kind of business you can build on top of your product.
The formula
Gross Profit = Revenue − COGS
Gross Margin % = (Gross Profit / Revenue) × 100
- Revenue — total sales over the period.
- COGS (Cost of Goods Sold) — the direct cost of producing what you sold: materials, direct labor, and production costs. It excludes overhead, marketing, and admin.
The result is a percentage representing how much of each sales dollar remains after production cost.
Worked example
Revenue of $100,000 with $40,000 in COGS:
Gross Profit = $100,000 − $40,000 = $60,000
Gross Margin = ($60,000 / $100,000) × 100 = 60%
A 60% gross margin: 60 cents of every revenue dollar is available to cover operating expenses and profit. The strategic power of gross margin shows when you compare business types. A software company with $100,000 revenue and only $15,000 COGS has an 85% gross margin — $85,000 to fund growth. A hardware reseller with $70,000 COGS has just 30% — $30,000 for everything else. Same revenue, completely different businesses, and gross margin is what reveals the difference.
Benchmarks
Gross margin benchmarks differ sharply by business model:
- Software / SaaS: 70–85%+ — very low marginal cost to serve each customer.
- Services / consulting: 50–70%, depending on labor costs.
- Manufacturing: 25–35% is common.
- Retail / grocery: often 20–40%, sometimes much lower for staples.
The right benchmark is your industry plus your own trend. For SaaS specifically, a gross margin below ~70% is often a red flag that infrastructure or support costs are too high relative to pricing.
How to interpret and improve it
Gross margin is improved by raising prices, lowering direct production costs, or shifting the mix toward higher-margin products. Because it sits at the top of the profitability stack, improving gross margin lifts every downstream metric — a 5-point gross margin gain flows straight toward operating profit and net profit if overhead holds steady.
Read gross margin together with net margin. A healthy gross margin with a thin net margin means your product economics are fine but overhead is eating the profit — look at operating expenses. A weak gross margin means the problem is upstream in production or pricing, and fixing overhead won’t rescue it. This diagnostic split is the main reason to track both.
For SaaS and subscription businesses, be honest about what belongs in COGS: hosting, third-party APIs, payment processing, and customer support directly tied to delivering the service all count. Excluding real cost-of-service items inflates gross margin and hides a pricing or efficiency problem that will eventually surface in cash flow.
Frequently asked questions
What is gross margin? Gross margin is the percentage of revenue left after subtracting the direct cost of producing your goods or services (COGS). It equals gross profit divided by revenue, multiplied by 100, and shows how much each sales dollar contributes before operating expenses.
How is gross margin different from net margin? Gross margin subtracts only the direct cost of goods sold, while net margin subtracts all costs including operating expenses, interest, and taxes. Gross margin measures product profitability; net margin measures overall business profitability.