Gross margin is, quite possibly, the most important number in your business that you are not looking at closely enough. Not because it is hard to calculate — it is simple — but because its implications touch every strategic decision: what price to sell at, how much to hire, whether the business is scalable, and whether you will survive long term.
In this guide we explain what gross margin is, how to calculate it, why it varies so much across industries, and what level your business needs to be viable.
What is gross margin?
Gross margin is the difference between your revenue and the direct cost of producing what you sell (Cost of Goods Sold, or COGS). Expressed as a percentage:
Gross Profit = Revenue − COGS
Gross Margin (%) = (Gross Profit ÷ Revenue) × 100
COGS = Cost of the goods/services sold (materials, direct labor, hosting, payment processing fees)
Quick example
You run a design agency:
- Revenue for the month: $20,000
- COGS: $8,000 (salaries of designers assigned to projects + software)
Gross Profit = $20,000 − $8,000 = $12,000
Gross Margin = ($12,000 ÷ $20,000) × 100 = 60%
That $12,000 is what is left to pay rent, marketing, administrative salaries, taxes… and, if anything remains, net profit. If your gross margin does not cover all those fixed costs, you are losing money even if you sell a lot.
What COGS includes (and what it does not)
This is where people get confused the most. COGS includes only the costs directly tied to producing or delivering the product or service:
DO include in COGS
- Materials and raw materials
- Direct production labor
- Hosting and servers (SaaS)
- Payment processor fees
- Costs of freelancers assigned to projects
- Per-customer software licenses
DO NOT include in COGS
- Administrative and sales salaries
- Office rent
- Marketing and advertising
- Legal and accounting expenses
- Depreciation of general assets
- R&D expenses
A common mistake is to lump every expense into COGS, which makes gross margin look very low and the business look unviable when in fact it is not. Keeping the distinction between cost of sales and operating expenses is essential to analyze financial health correctly.
Gross margins by industry
This is the key point of the article: a "good" gross margin depends entirely on the industry. Comparing a SaaS margin to a supermarket margin is comparing apples to skyscrapers.
| Industry | Typical Gross Margin | Why |
|---|
| SaaS / Software | 70–85% | Near-zero marginal cost for each additional user |
| Professional services | 50–70% | Direct labor is the main cost |
| Agencies / consulting | 40–60% | Depends on consultant utilization |
| E-commerce / retail | 30–50% | Product cost + logistics + returns |
| Manufacturing | 25–40% | Raw materials, labor, energy |
| Restaurants / hospitality | 60–75%* | *Food cost only. Including labor, it drops to 30-40% |
| Distribution / wholesale | 10–25% | Thin margins from volume and competition |
| Supermarkets / grocery | 15–25% | Volume model with very tight margins |
What this means: if you have a SaaS with a 55% gross margin, you are below benchmark and should review your infrastructure costs. If you have a clothing store at 45%, you are above the retail average and have a healthy base.
Gross margin vs net margin vs EBITDA
It is important not to confuse these three concepts:
- Gross margin: revenue minus COGS. Measures the efficiency of your production model.
- EBITDA: gross margin minus operating expenses (before taxes, interest and amortization). Measures operating profitability.
- Net margin: what is left after everything: taxes, interest, depreciation. It is the final profitability indicator.
A business can have a 70% gross margin and a net loss if operating expenses are too high (big team, aggressive marketing, expensive debt). Gross margin is the ceiling; operating expenses determine whether you become profitable.
How to improve your gross margin
1. Raise prices (or improve the product mix)
The most direct way. A 5% price increase with the same sales volume raises gross margin directly. Also review which products or services have the best margin and push their sales over the low-margin ones.
2. Reduce cost of sales
Renegotiate with vendors, consolidate purchases, automate processes that are manual today, optimize your server infrastructure. In SaaS, reviewing cost per active customer every quarter is an essential practice.
3. Cut negative-margin products/services
Many small businesses keep product lines or customers that actually cost them money. Calculating gross margin per customer or per SKU can reveal unpleasant surprises (and opportunities for healthy pruning).
4. Scale the digital, minimize the physical
The main driver of a high margin is a marginal cost near zero. If you can digitize part of your offering (online courses, templates, automation), the margin on that line shoots up.
Gross margin as a signal of your business model
Beyond the numbers, gross margin tells you something fundamental about the scalability of your business:
- High margin (60%+): every extra dollar of revenue generates a lot of profit. You can invest in growth without costs rising proportionally. It is a scalable business.
- Low margin (under 25%): to grow you need to increase volume a lot. It requires more capital, more operations, more risk. Less margin for error.
For investors, gross margin is one of the first metrics they look at precisely because of this: it sets the ceiling on what the business can ultimately earn at scale.
See your gross margin automatically
Hayes Strategic calculates your P&L, gross margin and EBITDA in real time from your transactions. No spreadsheet.
Start for freeConclusion
Gross margin is not a theoretical number: it is the clearest indicator of whether your business model has solid foundations. Knowing it, comparing it with your industry benchmark, and actively working to improve it is one of the most powerful levers you have as a business owner.
If you want to go deeper into how to read your full P&L — where gross margin lives — we recommend our article on how to read your Income Statement in 5 minutes.