In plain words

gross margin

The share of revenue left over after subtracting the direct costs of delivering a product or service.

What it means

Gross margin measures the percentage of revenue a business keeps after paying the direct costs of making its products or delivering its services. Revenue is the total amount of money brought in from sales. The direct costs to create those sales are known as the cost of goods sold, often shortened to COGS.

Gross margin tells you how efficiently a company produces its core offer. It focuses strictly on production costs. It leaves out other business expenses like marketing, administrative salaries, rent, and research. Because it ignores these overhead costs, gross margin gives a clean look at the basic unit economics of a product or service.

How it works

To calculate gross margin, you first calculate gross profit. Gross profit is total revenue minus cost of goods sold. You then divide gross profit by total revenue and multiply the result by 100 to get a percentage.

The formula looks like this:

  • Gross Margin = ((Revenue – Cost of Goods Sold) / Revenue) * 100

What counts as cost of goods sold depends on the business model. For a company that makes physical hardware, direct costs include raw materials, factory labor, shipping, and packaging. For a software-as-a-service (SaaS) company, direct costs include cloud hosting fees, payment processing fees, third-party software licenses embedded in the app, and the salaries of customer support teams that onboard users.

A higher gross margin means a company keeps more cents from every dollar of sales. It can use those leftover funds to hire engineers, run ad campaigns, or generate net profit. A low gross margin means direct production takes up most of the incoming cash, leaving little room for error or overhead spending.

A real example

Consider two different technology businesses: a cloud software firm and a hardware device maker. Each generates $1,000,000 in quarterly revenue.

The software firm spends $200,000 on cloud server hosting, data pipeline charges, and customer support. Its cost of goods sold is $200,000. Subtracting that from $1,000,000 leaves $800,000 in gross profit. Dividing $800,000 by $1,000,000 gives a gross margin of 80%.

The hardware maker sells connected sensors. It spends $650,000 on microchips, circuit boards, assembly labor, and freight shipping. Its cost of goods sold is $650,000. Subtracting that from $1,000,000 leaves $350,000 in gross profit. Dividing $350,000 by $1,000,000 gives a gross margin of 35%.

The software business keeps 80 cents of every dollar to pay for office leases, research, and sales teams. The hardware company keeps only 35 cents of each dollar for those same corporate needs. The software business has much more room to absorb corporate costs or drop cash to its bottom line.

Why it matters for builders and investors

Gross margin is a vital health metric for founders and investors alike. It acts as an early indicator of whether a business model can scale sustainably.

For builders, gross margin dictates how fast a startup can grow without running out of cash. In early-stage software companies, high gross margins allow teams to reinvest heavily in software engineering and customer acquisition. If a founder builds an artificial intelligence tool that requires expensive compute time from graphics processing units (GPUs) for every query, the cost of goods sold goes up. That lowers the gross margin and leaves less cash to run the rest of the company.

For investors, gross margin helps set corporate valuations. Companies with high gross margins trade at higher price-to-sales multiples because each new dollar of revenue brings more cash into the firm. Investors also watch gross margin trends over time. If margins fall as sales grow, it suggests the business faces pricing pressure from competitors or escalating supplier costs. If margins expand, it shows the company is gaining scale and negotiating better rates from its vendors.

Common mix-ups

People often confuse gross margin with operating margin and net margin. Operating margin takes gross profit and subtracts operational expenses like marketing, sales, and product research. Net margin is the final bottom line; it subtracts all expenses, including taxes, interest on debt, and one-off legal costs.

Another common mistake is mixing up gross margin and markup. Markup is the percentage added to the cost of a product to set its selling price. Gross margin is the percentage of the selling price that is profit. If an item costs $50 to make and sells for $100, the markup is 100%, but the gross margin is 50%.

Finally, some builders mix up gross profit with gross margin. Gross profit is an absolute dollar figure, such as $500,000. Gross margin is always a percentage or ratio, such as 50%.

Questions people ask

What is a good gross margin for a software company?

A healthy software-as-a-service company usually maintains a gross margin between 70% and 80%. Cloud compute costs and support staff can push this number lower for AI-heavy tools.

What is the difference between gross margin and gross profit?

Gross profit is the raw dollar amount left after subtracting direct costs from revenue. Gross margin is that same profit expressed as a percentage of total revenue.

Can a company have a negative gross margin?

Yes. A negative gross margin happens when the direct costs to build or deliver a product exceed the selling price, meaning the company loses money on every unit sold.

Stories that use this word

Play and test yourself

Riddle of the day

Who or what am I?

I make my home in London town,

Solve itNew every day
Real or invented?

Spot the headline we made up

Five headlines. Four are real stories from this week. One is not.

Play nowA new round every day
Weekly quiz

How well did you follow the week?

5 questions. 2 minutes. Points for every right answer.

Take the quizNew every Monday
Prediction of the week

Will Northrop Grumman’s Cygnus XL successfully dock or berth with the ISS within 7 days?

Put free points on Yes or No and climb the leaderboard.

Make your callFor fun, no money