Skip to content
K Knidox Search…
Finance · Business

Profit Margin Calculator

Turn a company’s revenue and costs into gross, operating, and net profit margins.

Total money the business took in over the period.
Direct cost of what you sold — materials, production, delivery.
Running costs — salaries, rent, marketing, software.
Interest, taxes, and one-off items. Leave at 0 if unsure.
Try a business type — tap to fill
Gross margin
40%

Gross profit $200,000

Operating margin
16%

Operating profit $80,000

Net margin
10%

Net profit $50,000

Net profit $50,000 on $500,000 of revenue.

Revenue and profit at each level

A profit margin is profit as a share of revenue: margin = profit ÷ revenue × 100. On $500,000 of revenue with $300,000 COGS, $120,000 operating expenses, and $30,000 interest and tax, gross profit is $200,000 (40%), operating profit $80,000 (16%), and net profit $50,000 (10%).

What a profit margin measures

A profit margin tells you how many cents of every revenue dollar a business keeps as profit. It is a company-level view of a whole period’s profit and loss, not a per-item price decision. This calculator works down the income statement: it subtracts each layer of cost from revenue to give three margins — gross, operating, and net — so you can see where the money goes between the top line and the bottom line.

Do not confuse this with a per-item markup vs. margin calculation. That tool turns a single product’s cost into a selling price (markup is profit over cost; margin is profit over price). Here, every margin is measured against total revenue, and the inputs are the whole business’s sales and costs.

Margin = profit ÷ revenue × 100

Gross profit = revenue − COGS; operating profit subtracts operating expenses; net profit also subtracts interest, tax, and other costs

Worked example

A business books $500,000 in revenue with $300,000 COGS, $120,000 in operating expenses, and $30,000 of interest and tax.

  1. 1
    Find gross profit. Revenue − COGS = $500,000 − $300,000 = $200,000.
  2. 2
    Divide by revenue for gross margin. $200,000 ÷ $500,000 × 100 = 40%.
  3. 3
    Subtract operating expenses for operating profit. $200,000 − $120,000 = $80,000, which is $80,000 ÷ $500,000 × 100 = 16% operating margin.
  4. 4
    Subtract other costs for net profit. $80,000 − $30,000 of interest and tax = $50,000.
  5. 5
    Divide net profit by revenue for net margin. $50,000 ÷ $500,000 × 100 = 10% — the bottom-line margin.

Gross vs. operating vs. net margin

Each margin is that level’s profit divided by the same revenue. Moving down the list subtracts one more layer of cost.

MarginProfit = revenue minus…What it tells you
Gross marginCOGS (direct cost of goods sold)How profitable the core product is before running the business
Operating marginCOGS + operating expensesProfit from operations before interest and tax
Net marginCOGS + operating expenses + interest, tax, otherThe true bottom line — what the business actually keeps

Reading the results

Typical margins vary widely by industry. Software and other low-cost-of-goods businesses often post gross margins above 70% and net margins in the double digits, while grocers and other high-volume retailers may run net margins of just 1%–3%. Compare a margin to peers in the same industry, not to a single universal benchmark.

Margins can be negative. If costs exceed revenue at any level, that margin is negative — a loss. A healthy gross margin with a negative net margin usually means operating expenses or interest and tax are eating the profit.

Margin is not markup. A product bought for $60 and sold for $100 carries a 40% margin ($40 ÷ $100) but a 67% markup ($40 ÷ $60). Margin is always the smaller number because it divides by the larger figure — the price, or here, revenue.

What’s the difference between gross and net margin?
Gross margin subtracts only the direct cost of goods sold from revenue, showing how profitable the product is on its own. Net margin subtracts every cost — COGS, operating expenses, interest, and tax — so it reflects what the business actually keeps. On $500,000 revenue the example shows 40% gross but 10% net.
What’s the difference between margin and markup?
Margin is profit as a share of the selling price or revenue; markup is profit as a share of cost. A $40 profit on a $100 sale that cost $60 is a 40% margin but a 67% markup. Margin is always the smaller figure. For per-item pricing, use the markup and margin calculator.
What counts as COGS versus operating expenses?
COGS is the direct cost of producing what you sold — materials, manufacturing, and delivery. Operating expenses are the costs of running the business regardless of a single sale, such as salaries, rent, marketing, and software. Keeping them separate is what lets you split gross margin from operating margin.
Can a profit margin be negative?
Yes. If costs exceed revenue at any level, that margin is negative, meaning the business lost money at that stage. A positive gross margin with a negative net margin points to overhead, interest, or tax outweighing the profit on the goods themselves.
What is a good profit margin?
It depends entirely on the industry. Software firms often keep net margins above 15%, while supermarkets may run near 2%. Compare against similar businesses rather than a single benchmark, and watch the trend over time as much as the level.
Why is my margin measured against revenue, not cost?
A profit margin always divides profit by revenue so it reads as “cents kept per sales dollar,” which lets you compare businesses of any size. Dividing by cost instead gives markup — a different ratio used for setting a single item’s price.