A profit margin is a financial ratio that shows how much profit a business keeps from each dollar of revenue, expressed as a percentage. It is not one number: gross margin, operating margin, and net margin use different profit figures, so the label must match the numerator.

What is the profit margin formula?

The basic formula is profit divided by revenue, then multiplied by 100. A business with $40,000 of net profit on $100,000 of revenue has a net margin of 0.40 × 100 = 40%.

Revenue is the top line: sales or receipts before costs. Profit is what remains after the costs you choose to subtract. Because those costs change with the margin type, one income statement can produce several different margins.

MarginFormulaNumeratorWhat it shows
Gross margin(Revenue − cost of sales) ÷ revenue × 100Gross profitProfit after direct product or delivery costs
Operating marginOperating income ÷ revenue × 100Operating incomeProfit from core operations before interest and taxes
Net marginNet profit ÷ revenue × 100Net profit after all expenses, interest, and taxesBottom-line profit

The result is a percentage, not a dollar amount. A 40% net margin means the business keeps 40 cents of net profit from each dollar of revenue; it does not mean profit is 40% of costs.

How do you calculate gross margin, operating margin, and net margin?

Use the same revenue figure for all three, then subtract a different set of costs for each numerator. The FDIC’s illustrative small-business example starts with $100,000 of revenue, $25,000 of cost of goods sold, $25,000 of overhead, and $10,000 of income taxes.

Do not mix a gross profit figure with a net margin formula; the result will look precise but mean nothing. Each ratio uses a different numerator from the same income statement.

  • Gross profit: $100,000 − $25,000 = $75,000. Gross margin: $75,000 ÷ $100,000 × 100 = 75%.
  • Operating income: $100,000 − $25,000 − $25,000 = $50,000. Operating margin: $50,000 ÷ $100,000 × 100 = 50%.
  • Net profit: $50,000 − $10,000 = $40,000. Net margin: $40,000 ÷ $100,000 × 100 = 40%.

Each ratio answers a different question: gross margin asks whether the product or service is priced above its direct cost, operating margin asks whether the core operation is profitable, and net margin asks what is left after every expense in the income statement.

The example has no interest line, so operating income and pre-tax profit are both $50,000. In a company with interest expense, net profit would be lower, and net margin would fall while operating margin stayed the same.

How do you calculate profit margin step by step?

Work through the steps in order and keep the same accounting period for every figure. The margin is only as reliable as the revenue and cost numbers that go into it.

Step 1: Pick the profit number you need

Use gross profit for product-level pricing, operating income for the core business, and net profit for the owner’s bottom line. Write the choice down before doing the math, because the numerator decides which costs belong in the calculation.

Step 2: Find revenue for the same period

Take the revenue line from the income statement for the month, quarter, or year you are measuring. Do not pair annual revenue with monthly profit; the numerator and denominator must cover the same months.

Step 3: Subtract the matching costs

For gross margin, subtract cost of sales. For operating margin, also subtract operating expenses such as payroll, rent, and marketing. For net margin, subtract operating expenses, interest, and taxes.

Step 4: Divide profit by revenue and multiply by 100

Here is a hypothetical example with round numbers. A service business has $200,000 of revenue, $50,000 of cost of sales, $90,000 of operating expenses, $10,000 of interest, and $10,000 of taxes.

  • Gross profit: $200,000 − $50,000 = $150,000; $150,000 ÷ $200,000 × 100 = 75%.
  • Operating income: $150,000 − $90,000 = $60,000; $60,000 ÷ $200,000 × 100 = 30%.
  • Net profit: $60,000 − $10,000 interest − $10,000 taxes = $40,000; $40,000 ÷ $200,000 × 100 = 20%.

The service business keeps 20 cents of net profit per dollar of revenue in this example. Its 75% gross margin shows product economics are strong; the drop to 20% net margin comes from operating costs, interest, and taxes.

Step 5: Compare like with like

Track the same margin over several periods and compare with businesses that use a similar model. If you switch from pre-tax to after-tax profit, the new number will not be comparable with the old one.

Step 6: Check the result against the dollar profit

A 20% net margin on $200,000 of revenue equals $40,000 of net profit. If the dollar profit looks wrong, the margin will be wrong too. Reconcile the profit figure to the income statement before you use the ratio in a pricing or lending decision.

Which profit margin should you use?

Use gross margin to judge product economics, operating margin to judge the core business, and net margin to judge the final bottom line.

Gross margin suits a retailer or manufacturer that needs to see whether pricing covers the direct cost of goods. It is a poor fit for judging total profitability because it ignores rent, payroll, marketing, interest, and taxes.

Operating margin adds those operating costs, so it shows whether the business earns money from its normal activities. Net margin is the strictest measure because it also subtracts interest and taxes. It suits owners, lenders, and investors who care about what remains for the owner.

A company with high gross margin and low net margin usually has heavy operating costs, debt, or taxes. The gap between the two margins is the place to look first.

Lenders and investors may care about different measures. A lender reviewing debt service looks at cash available for payments, not just net margin, which is why a DSCR calculation can matter more than a margin target.

A business can show a positive net margin and still struggle to service debt if most profit is tied up in working capital. See business DSCR for the ratio lenders use.

Why do two businesses with the same revenue have different profit margins?

They have different cost structures, pricing, debt, and tax positions, even when revenue is identical.

A software business can have high gross margin because delivering one more user costs little. A restaurant with the same revenue may have high food and labor costs, so its gross margin is lower. Interest matters too: two companies with the same operating income can report different net margins if one carries more debt.

Tax treatment can widen the gap further. A corporation pays the flat 21% federal rate on taxable income for tax years beginning after Dec.

31, 2017. A sole proprietor may owe self-employment tax at 15.3% on net earnings, with the first $184,500 of combined wages, tips, and net earnings subject to Social Security for 2026.

Cost structure explains much of the gap. A business with high fixed costs and low variable costs can earn large margins at high volume and lose money at low volume. A business with high variable costs sees margin stay steadier but has less operating leverage when sales rise.

What are common mistakes when using the profit margin formula?

The most common mistake is using a partial profit figure and calling it net margin.

  • Calling gross profit less sales and marketing net margin. SEC staff objected to that label because net margin generally refers to profit after operating expenses, interest, and taxes.
  • Using pre-tax profit in the net-margin numerator. The FDIC example uses $40,000 of after-tax profit, not $50,000 of pre-tax profit, to get a 40% net margin.
  • Assuming another company’s profit margin uses the same formula. An SEC filing notes that other companies may calculate non-GAAP financial measures differently.
  • Treating profit margin as a standardized GAAP term. SEC staff notes that net margin, unlike gross margin, is not defined by FASB in GAAP.
  • Mixing periods. Dividing monthly profit by annual revenue produces a margin that looks far lower than the real one.
  • Using revenue that includes sales tax or pass-through receipts. That inflates the denominator and understates the margin; use the revenue the business actually earns.
  • Comparing a gross margin with another company’s net margin. The labels sound similar, but the numerators cover different costs.

How can you improve profit margin without guessing?

Improve the numerator or the denominator: raise revenue at a lower added cost, cut costs that do not reduce sales, or do both.

Start with the margin that is weakest. If gross margin is low, check pricing and cost of sales.

If operating margin is low but gross margin is healthy, look at payroll, rent, marketing, and other overhead. If net margin is low but operating margin is fine, look at interest and taxes.

A break-even analysis shows the sales volume where revenue covers fixed and variable costs. That number is often more useful than a margin target because it tells you the distance to loss. Our break-even analysis guide walks through the unit math and the fixed-cost side.

Improving margin also has a limit. Cutting cost of sales can hurt quality, and raising prices can reduce volume. Model the change in revenue and cost together, then compare the new margin with the old one on the same period.

Small changes can move margin quickly. In a simple illustration, a one-point gain in gross margin on $100,000 of revenue adds $1,000 of gross profit before any change in operating costs. That dollar view helps you decide whether a pricing change is worth the risk.