Profit Margin Calculator
Calculate gross, operating and net profit margin from your revenue and costs, and the price you need for a target margin. An example is filled in; type your own numbers and the results update instantly.
Total sales for the period, after refunds and discounts.
Direct costs of what you sold: materials, inventory, direct labor, subcontractors.
Rent, salaries not in COGS, software, marketing, insurance and other overhead.
Loan interest and income taxes, if you want true net margin. Leave 0 to skip.
Gross margin
60.0%
$30,000 profit
Operating margin
24.0%
$12,000 profit
Net margin
20.0%
$10,000 profit
Markup on cost of goods sold: 150.0%.
Price for a target margin
Charge $100.00 to earn a 40% margin ($40.00 profit, a 66.7% markup).
Profit margin formulas
| Margin | Formula | What it tells you |
|---|---|---|
| Gross margin | (Revenue − COGS) ÷ Revenue | Whether pricing covers the direct cost of what you sell |
| Operating margin | (Gross profit − Operating expenses) ÷ Revenue | Whether the core business makes money after overhead |
| Net margin | Net income ÷ Revenue | What is left after everything, including interest and taxes |
| Markup | (Price − Cost) ÷ Cost | Profit as a share of cost, not of price |
The example uses $50,000 of revenue, $20,000 of cost of goods sold, $18,000 of operating expenses and $2,000 of interest and taxes: a 60% gross margin, a 24% operating margin and a 20% net margin. For the full explanation, read our guide on how to calculate profit margin, or learn to read the numbers behind it in our profit and loss statement guide.
Questions about profit margin
What is the profit margin formula?
Profit margin = profit divided by revenue, times 100. Gross margin uses revenue minus cost of goods sold; operating margin subtracts operating expenses too; net margin subtracts everything, including interest and taxes.
What is the difference between margin and markup?
Margin is profit as a share of the selling price. Markup is profit as a share of cost. A product that costs $60 and sells for $100 has a 40% margin and a 66.7% markup.
What is a good profit margin for a small business?
It depends heavily on the industry. Software and services often run high gross margins; restaurants, retail and construction run much lower. Compare your margin to your own history first, then to businesses like yours.
How do I calculate the price for a target margin?
Price = cost divided by (1 minus the target margin). To earn a 40% margin on an item that costs $60, charge $60 / 0.60 = $100.
Why is my margin different from what my accounting software shows?
Usually because costs are coded inconsistently: direct labor or materials sitting in overhead, inventory expensed when bought instead of when sold, or owner draws recorded as expenses. Clean, reconciled books make the margin trustworthy.
A margin is only as good as the books behind it.
Mispar keeps your books reconciled in your own QuickBooks or Xero, so your P&L shows your real margin. From $229/mo.
Plain math on the numbers you enter, not financial or tax advice. Nothing you type leaves this page.