Practical guide
How to Calculate Profit Margin (Step by Step)
Profit margin divides profit by revenue. Which profit figure you use — gross, operating, or net — changes the answer and what it tells you.
Published and reviewed by FBM Calculators Hub on .
What profit margin measures
Profit margin expresses profit as a percentage of revenue. It answers 'of every dollar this brings in, how much is left after the costs I'm counting?' rather than reporting a dollar amount on its own.
Because it is a percentage, margin lets you compare profitability across products, periods, or businesses of different sizes in a way that a raw profit figure cannot.
The formula, step by step
Profit Margin % = ((Revenue − Cost) / Revenue) × 100.
Step 1: Add up revenue for the period or product. Step 2: Add up the costs you intend to include — this decision matters more than the arithmetic, see the next section. Step 3: Subtract cost from revenue to get profit. Step 4: Divide profit by revenue, then multiply by 100.
Worked example
Revenue for the month is $10,000. Direct costs — materials, production labor, and payment processing — total $6,500.
Profit is $10,000 − $6,500 = $3,500. Margin is $3,500 / $10,000 × 100 = 35%.
That 35% is a gross-style margin, because it only subtracts costs directly tied to producing what was sold. It says nothing yet about rent, salaries, software, or other overhead.
Gross, operating, and net margin are not the same number
The formula never changes; what changes is which costs go into it, and each version answers a different question.
- Gross margin: revenue minus direct production or delivery costs only. Answers 'how much room is there before overhead?'
- Operating margin: gross profit minus operating expenses like rent, salaries, and marketing, but before interest and taxes. Answers 'is the core business profitable before financing and tax decisions?'
- Net margin: every cost is subtracted, including interest and taxes. Answers 'what share of revenue is actually left over?'
- A business can have a healthy gross margin and a thin or negative net margin if overhead, debt, or taxes are high — the two numbers are not interchangeable.
Common mistakes
Most errors come from mixing what belongs in each margin type, not from the division itself.
- Quoting a gross margin but calling it 'profit margin' without saying which kind
- Mixing a monthly cost figure with an annual revenue figure
- Confusing margin (profit ÷ revenue) with markup (profit ÷ cost) — they answer different questions and are never equal for a profitable sale
- Treating a healthy margin percentage as available cash, ignoring the actual cash-flow timing of costs
Checking your result
Margin should always be lower than the equivalent markup for the same sale, and it can never exceed 100% (that would mean the cost was zero). If your result is negative, cost exceeded revenue for the period you calculated — recheck whether that is actually the case before assuming an error.
Use the profit margin calculator above to check the arithmetic once you have decided which costs belong in the calculation.