Gross Margin

Gross margin is the share of revenue left after COGS. Learn the formula, how to interpret it by industry, and ways to improve core product profitability.
background

Gross margin = (Revenue − COGS) ÷ Revenue, usually shown as a percentage. COGS includes direct costs to produce or deliver a product or service, like materials, manufacturing, or hosting for software. Gross margin focuses on core delivery efficiency and pricing power; it excludes operating expenses (like admin or sales), interest, and taxes.

A healthy gross margin gives room to fund marketing, R&D, and overhead while still earning profit. It’s a fast way to compare product profitability across products, periods, and peers. Tracking trends helps spot pricing, mix, or cost issues early.

“Good” varies widely. Software and SaaS often see 70–90%+ because delivery costs are low, while retailers and manufacturers may be 20–45%, and groceries can be under 20%. Always compare to close peers and the company’s own history. In many cases, an improving trend is more meaningful than an absolute level.

Gross margin looks only at revenue minus COGS, while net margin subtracts everything: operating expenses, interest, and taxes. A company can have strong gross margin but weak net margin if overhead or debt costs are high. Use gross margin to assess core product efficiency, and net margin to judge overall profitability. Both together give a fuller picture.

Focus on levers that affect price or COGS. Options include reducing discounts, shifting to higher-margin products, negotiating supplier terms, cutting waste and defects, and improving yield. For software, optimizing hosting and support costs counts as COGS; for physical goods, redesigning packaging or consolidating freight can help. Test changes on a small scale and monitor margin impact before rolling out.

If a company earns $1,000 in revenue and COGS is $600, gross profit is $400 and gross margin is 40% ($400 ÷ $1,000). If next quarter revenue is $1,200 and COGS is $660, gross margin improves to 45%—a sign of better pricing or lower unit costs. Analysts would compare these margins to industry peers to judge competitiveness.

Recommended product: SEC API. You can pull revenue and cost of goods sold from 10-K/10-Q filings and compute gross margin over time for any public company. This supports benchmarking by sector and tracking trends across quarters or fiscal years.

Get your free API key now and start building in seconds!