Profit margin is profit divided by revenue, expressed as a percentage. A business with $40,000 of net profit on $100,000 of revenue runs a 40% net margin, which is the exact example the FDIC uses in its small-business financial statements guide.

That one phrase hides three different ratios. Gross, operating, and net margin each place a different profit figure in the numerator, and swapping them is the most common reason a margin number ends up wrong.

What is the profit margin formula?

Profit margin equals profit divided by revenue, multiplied by 100 to turn the decimal into a percentage. There are only two inputs: the profit figure and the revenue figure.

The arithmetic is easy. Choosing the numerator is where judgement comes in.

A retailer asking whether a product line pays for itself needs gross profit. An owner asking whether the business covers its bills needs operating income.

An investor asking what is left for shareholders needs net profit after interest and taxes.

Revenue stays in the denominator in all three cases. Divide by cost, by units sold, or by months and you are calculating something else, so label it accordingly.

What is the difference between gross, operating, and net margin?

They measure profit at three stages of the income statement. The numerator moves down the statement; revenue stays the same.

MarginNumeratorWhat it answers
Gross marginRevenue minus cost of salesDoes the product or service itself earn money?
Operating marginOperating incomeDoes the core business earn money before financing and tax?
Net marginNet profit after operating expenses, interest, and taxesWhat is left for the owner or shareholders?

Gross margin is gross profit as a percentage of revenues, written by the SEC as (revenues − cost of sales) ÷ revenues. Operating margin is operating income ÷ revenues. Net margin generally means profit after all business expenses, including operating expenses, interest, and taxes.

The ratios are not interchangeable, and regulators treat sloppy labeling as a disclosure problem. SEC staff objected to a filing that called gross profit minus sales and marketing net margin. Staff also noted that net margin, unlike gross margin, is not defined by FASB in GAAP, so the label alone tells you little until you check the math behind it.

How do you calculate profit margin step by step?

The sequence below uses the FDIC’s illustrative figures: $100,000 of revenue, $25,000 of cost of goods sold, $25,000 of overhead, and $10,000 of income taxes. They exist to show the mechanics, not to benchmark your industry.

Step 1: Total your revenue

Revenue is everything you sold in the period, before any expense comes out. In this example, $100,000.

Step 2: Subtract cost of goods sold to get gross profit

Cost of goods sold covers the direct cost of what was sold: materials, purchase cost, freight in. Take $25,000 away from $100,000 and gross profit is $75,000. Gross margin is $75,000 ÷ $100,000 = 0.75, or 75%.

Step 3: Subtract overhead to get operating income

Overhead is the cost of running the place: rent, insurance, admin payroll, software. Take $25,000 away from $75,000 and operating income is $50,000. Operating margin is $50,000 ÷ $100,000 = 0.50, or 50%.

Step 4: Subtract interest and income taxes to get net profit

Interest on business debt and income taxes come out last. The FDIC example lists no interest expense, so net profit before taxes of $50,000 minus income taxes of $10,000 leaves net profit of $40,000.

Step 5: Divide net profit by revenue

$40,000 ÷ $100,000 = 0.40. Multiply by 100 and the net margin is 40%. The gap between the 75% gross margin and the 40% net margin is where most of the money actually went.

How do taxes change your profit margin?

Income tax is subtracted before net profit, so a net margin is always lower than the margin on pre-tax profit. For a C corporation, the federal corporate income tax is a flat 21% for tax years beginning after Dec. 31, 2017.

A hypothetical example: revenue of $200,000, expenses of $100,000 before tax, and pre-tax profit of $100,000, a 50% pre-tax margin. Federal tax at 21% takes $21,000, leaving $79,000.

Then $79,000 ÷ $200,000 = 0.395, so the net margin is 39.5%. Ten and a half points of margin disappear at the tax line.

A sole proprietor faces a different bill. Self-employment tax is 15.3%, made up of 12.4% for Social Security and 2.9% for Medicare.

The 12.4% piece applies only to the first $184,500 of combined wages, tips, and net earnings for 2026. An Additional Medicare Tax of 0.9% applies above $200,000 for single filers and $250,000 for married filing jointly.

Self-employment tax is owed once net earnings reach $400, and the real figure comes off Schedule SE rather than from multiplying profit by 15.3%. On $100,000 of net profit, a 15.3% estimate of $15,300 is a sensible amount to set aside, not the final number.

Two habits keep comparisons honest. Include owner’s pay as an expense when the business is a corporation paying reasonable compensation, because a sole proprietor’s draw is not an expense and flatters the margin. And never set a pre-tax margin against a competitor’s after-tax margin.

What counts as a good profit margin?

There is no official answer. The FDIC, SEC, and IRS pages behind this article publish no benchmark margin and no minimum, so any site quoting one good number is guessing.

Benchmarking works better in three passes. Compare your margin with your own margin from earlier periods, calculated the same way.

Compare with companies in your industry, but read how each defines the measure, since an SEC filing notes that other companies may calculate non-GAAP financial measures differently. Then split the comparison into gross and operating margin.

The split is the useful part. If gross margin holds steady while operating margin falls, the problem sits in overhead rather than in pricing or direct costs.

How do you calculate margin for one product or one job?

Use the per-unit version: price minus unit cost, divided by price. A $50 sale with $30 of direct cost produces $20 of gross profit, and $20 ÷ $50 = 0.40, or 40%.

That figure is a gross margin, not a net margin. Rent, insurance, and your own time still come out of it. On a single job, count everything you can tie to that job as a direct cost, including subcontractors and delivery, and leave only true overhead below the line.

Working backwards sets a price. Divide cost by one minus the target margin: $30 ÷ (1 − 0.40) = $30 ÷ 0.60 = $50. That is the floor price for a 40% gross margin before any discount.

The same sale quoted as markup looks larger, because markup divides profit by cost: $20 ÷ $30 = 66.7%. A 66.7% markup and a 40% margin are the same dollars, and mixing the two terms is how quotes get priced too low.

Once per-unit margin is known, the next question is how many units cover fixed costs. The break-even analysis guide works through that math.

Common mistakes

  • Using pre-tax profit in the net margin numerator. The FDIC example uses $40,000 after tax, not the $50,000 figure before tax.
  • Calling a partial measure net margin. SEC staff objected to gross profit minus sales and marketing carrying that label.
  • Assuming a competitor’s margin uses your formula. Filings state that non-GAAP measures may be calculated differently from company to company.
  • Dividing by cost instead of revenue. That yields markup, which is always higher than the margin on the same sale.
  • Leaving owner’s pay out of a sole proprietor’s numbers. A draw is not an expense, so the margin reads better than the economics justify.
  • Mixing periods. One month of profit over one year of revenue is not a margin, whatever the spreadsheet says.
  • Stopping at profit. Interest sits inside the net margin, but principal repayment does not appear as an expense, so a profitable business can still run short of cash. Business loans explained shows where that payment shows up.