What Is Margin in Accounting? Gross, Operating, Net, and Contribution

Margin in accounting is the percentage of revenue a business keeps after subtracting a defined category of costs. The three most common versions—gross, operating, and net—each peel back an additional layer of expenses, and a fourth, contribution margin, is used mostly inside the business for pricing decisions. Percentages matter more than raw dollar amounts because they let you compare a five-person startup against a multinational on equal footing, and they expose efficiency trends that total income figures can hide.

How the Calculation Works

Every margin follows the same logic. Take revenue, subtract a category of costs, divide the result by that same revenue, and express the answer as a percentage. If a company brings in $1 million and keeps $100,000 after the relevant costs, the margin is 10%. That single figure tells you more about efficiency than either the $1 million or the $100,000 does on its own.

Percentages strip away the scale advantage that large companies naturally enjoy. A regional bakery running at a 22% margin is generating more value per dollar of sales than a global food conglomerate at 8%. Analysts track these ratios quarter to quarter because they show whether a business is getting better or worse at converting sales into profit, something a rising revenue number alone won’t tell you.

Margin Versus Markup

Before working through the types, it helps to separate margin from markup, because confusing the two is one of the most common pricing mistakes small business owners make. Markup is the percentage added on top of your cost to arrive at a selling price. Margin is the percentage of the final selling price that represents profit. The difference comes down to which number sits in the denominator.

Say an item costs $80 to produce and sells for $100. The $20 profit divided by the $80 cost gives a 25% markup. Divide that same $20 by the $100 selling price and the margin is only 20%. A business owner who targets a 25% margin but accidentally calculates a 25% markup will underprice every product and wonder why the books don’t balance at year-end.

Margin is generally the more useful number for financial planning because it tells you what share of incoming revenue is actually available to cover overhead, taxes, and reinvestment.

Gross Profit Margin

Gross profit margin isolates how profitably you produce or source the things you sell, before any office rent, marketing spend, or executive salaries enter the picture. The formula: subtract cost of goods sold from revenue, then divide by revenue. If a manufacturer spends $40 on materials and labor to make a product it sells for $100, the gross margin is 60%.

Cost of goods sold covers the direct costs tied to creating a product or delivering a service. Raw materials, production labor, and factory overhead like equipment depreciation on the manufacturing floor all belong here. The IRS uses a similar framework, requiring businesses to capitalize direct costs and allocable indirect costs into inventory rather than deducting them as general expenses. Administrative salaries, marketing campaigns, and office supplies stay out of this number.

A falling gross margin usually points to one of a few culprits: suppliers raised prices, production waste increased, or the company cut selling prices without a matching reduction in costs. A rising gross margin often signals the opposite: better supplier deals, manufacturing efficiencies, or enough brand strength to charge premium prices.

One wrinkle worth knowing about. Two companies selling identical products at identical prices can report different gross margins depending on how they value inventory. Under FIFO (first in, first out), the oldest and typically cheapest inventory hits cost of goods sold first. Under LIFO (last in, first out), the newest and often most expensive inventory hits it instead. During inflationary periods, FIFO produces a higher reported gross margin (and a bigger tax bill), while LIFO produces the reverse. Neither method is “right” in the abstract, but if you’re comparing your margins against a competitor’s, knowing which costing method each company uses is essential context.

Operating Profit Margin

Operating profit margin picks up where gross margin leaves off by also subtracting the day-to-day costs of running the business: office rent, utilities, marketing, administrative salaries, insurance, and similar overhead. The result shows how efficiently the entire operation converts sales into profit before financing costs and taxes enter the picture.

A company might post an impressive gross margin but a disappointing operating margin. That pattern usually means overhead is bloated relative to revenue. Maybe the sales team is too large, the office lease is too expensive, or marketing spend isn’t generating enough return. Lenders pay close attention to this metric when evaluating loan applications because it reflects whether the core business can service debt from ongoing activities.

Operating margin is also a cleaner comparison tool than net margin when sizing up competitors. Because it strips out differences in tax situations and debt loads, it reveals who actually runs a leaner operation rather than who simply carries less debt or benefits from a lower effective tax rate.

EBIT and EBITDA

Operating profit is often described as EBIT, or earnings before interest and taxes. Strictly speaking, EBIT starts from net income and adds back interest and taxes, which can produce a slightly different number than operating income if the company has unusual non-operating gains or losses. For most businesses, though, the two are close enough that people use the terms interchangeably.

EBITDA goes one step further by also adding back depreciation and amortization. The gap between EBITDA margin and operating margin tells you how capital-intensive a business is. A manufacturer with expensive equipment will show a wide gap because depreciation eats into operating profit. A consulting firm with few physical assets will show almost none. Both EBIT and EBITDA are non-GAAP measures, so publicly traded companies that report them must also present the closest GAAP equivalent and a clear reconciliation under SEC Regulation G.1eCFR. Part 244 Regulation G

Net Profit Margin

Net profit margin is the bottom line in every sense. It’s the percentage of revenue remaining after all costs, including interest on debt and income taxes, have been paid. This is the number that tells you what shareholders actually get to keep.

For U.S. corporations, federal income tax takes a flat 21% of taxable income under 26 U.S.C. § 11, a rate set by the Tax Cuts and Jobs Act in 2018.2Office of the Law Revision Counsel. 26 U.S. Code 11 – Tax Imposed Most states impose an additional corporate income tax, with rates ranging from about 2% to 11.5% across the 44 states that levy one. Together, these layers can meaningfully compress net margin even when operations are healthy.

Debt structure matters here too. Two operationally identical companies will post different net margins if one is heavily leveraged and the other is debt-free, because interest payments hit this metric directly. A shrinking net margin paired with a stable operating margin usually points to financing decisions, not operational problems.

Of the three margins on the income statement, net profit margin is the most comprehensive and the most volatile. A single bad quarter of interest rate hikes or an unexpected tax adjustment can swing it sharply. Over multiple years, though, it’s the best single indicator of whether a business model actually generates wealth for its owners.

Contribution Margin

Contribution margin shows up less often in external financial statements but gets heavy use inside the business for pricing and break-even analysis. The formula is revenue minus all variable costs, not just variable production costs but also variable selling and administrative expenses like sales commissions and shipping. Fixed costs like rent and salaried employees are excluded entirely.

The distinction from gross margin matters more than it first appears. Gross margin subtracts all cost of goods sold, including fixed manufacturing overhead like factory rent. Contribution margin strips out only variable costs regardless of where they fall on the income statement. Same company, different numbers, because each metric answers a different question.

The practical payoff is break-even analysis. Divide total fixed costs by the contribution margin per unit and you get the exact number of units you need to sell before the business stops losing money. Each unit sold “contributes” its margin toward covering fixed overhead, and once those fixed costs are covered, every additional unit’s contribution flows straight to profit.

Reading Margins Against Industry Benchmarks

Margins mean very little without context. A 10% net margin is outstanding in grocery retail but mediocre in software. January 2026 U.S. sector data shows just how far the range stretches: systems and applications software runs around a 72% gross margin and 25% net margin, pharmaceuticals sit near 72% gross and 19% net, and semiconductors post roughly 59% gross and 30% net. At the other end, restaurants land near 32% gross and 9% net, grocery and food retail come in around 26% gross and 1% net, and auto and truck manufacturing runs about 10% gross and 1% net.3NYU Stern. Operating and Net Margins by Sector (US)

Software benefits from near-zero marginal production costs once the product is built; there’s no raw material for a second download. Grocery retailers operate on razor-thin margins because food is a commodity with aggressive price competition and spoilage risk. What matters isn’t the number in isolation but how a company’s margins compare to others in the same industry and how they’re trending over time.

A gross margin well above industry peers often signals pricing power, whether from brand strength, patents, or a product that’s hard to replicate. A net margin below peers with a comparable gross margin usually points to bloated overhead or heavy debt. Read together, the three margins triangulate the answer: gross tells you about product economics, operating tells you about management efficiency, and net tells you whether the full financial structure leaves anything for the owners.