Income planning

Profit Margin Calculator

Enter cost and selling price to see gross profit, profit margin percentage, and markup. The margin bar shows at a glance how much of every revenue dollar is profit. Adjust the selling price to find the price that hits a target margin — or adjust cost to see how supplier negotiations affect your bottom line.

Last reviewed May 14, 2026 by ToolSpilo Editorial Team.

Review method: Reviewed against standard gross-margin, markup, COGS, and net-margin definitions used in business finance references; formulas and margin/markup tables preserved.

Calculator tool

How this calculator works

Use the explanation to understand the formula, assumptions, and practical limits behind the calculator result.

Margin vs Markup — The Critical Distinction

Margin and markup start from the same numbers but use different bases.

Where:

  • PP = selling price
  • CC = cost
  • mm = profit margin percentage
  • uu = markup percentage
m=PCP×100m = \frac{P - C}{P} \times 100
u=PCC×100u = \frac{P - C}{C} \times 100

The difference matters in practice: a 50% markup does not produce a 50% margin.

VariableDefinitionBase
MarginProfit as a share of revenueSelling price
MarkupProfit as a share of costCost

Worked Example

Cost: 40 | Selling price: 75

Gross profit=7540=35\text{Gross profit} = 75 - 40 = 35

m=3575×100=46.7%m = \frac{35}{75} \times 100 = 46.7\%

u=3540×100=87.5%u = \frac{35}{40} \times 100 = 87.5\%

The same product has a 46.7% margin and an 87.5% markup — two correct answers to two different questions.

Converting Between Margin and Markup

Given a target margin, the required markup is:

u=m1mu = \frac{m}{1 - m}

Given a target markup, the resulting margin is:

m=u1+um = \frac{u}{1 + u}

Examples:

Target marginRequired markup
20%25%
33%50%
40%67%
50%100%

Reverse-Engineering a Target Price

If you know your cost and target margin, the selling price is:

P=C1mP = \frac{C}{1 - m}

To earn a 40% margin on a product costing 60: P=6010.40=600.60=100P = \frac{60}{1 - 0.40} = \frac{60}{0.60} = 100

Industry Margin Benchmarks

Margins vary widely by sector. Use these as rough orientation:

IndustryTypical gross margin
Software / SaaS60–80%
Consulting / services30–60%
Retail (general)20–50%
E-commerce15–35%
Manufacturing10–25%
Grocery5–15%
Restaurants3–9%

Gross margin does not account for operating expenses (rent, salaries, marketing), financing costs, or taxes. Net margin — profit after all expenses — is usually much lower and varies by business model, industry, and accounting method.

Common Mistakes

Confusing margin and markup when setting prices. Targeting a "50% profit" and applying a 50% markup gives 33% margin, not 50%. Be explicit about which base you are using.

Calculating margin on cost instead of revenue. This consistently overstates profitability — a common error in retail.

Ignoring indirect costs in cost basis. Cost of Goods Sold (COGS) should include direct materials, direct labour, and allocated overhead. A margin calculated on materials-only cost will look higher than the true gross margin.

Frequently asked questions

Is margin or markup the right metric to use?

It depends on who you are talking to and what decision you are making:

  • Margin is preferred for financial reporting, P&L analysis, and investor conversations — it measures profit as a share of revenue, which aligns with how income statements are structured.
  • Markup is common in wholesale, distribution, and retail buying — it tells you how much you are adding to the cost when setting the shelf price.

Both are correct; confusion happens only when people switch bases mid-conversation. Always clarify which one you mean.

Does this include VAT or sales tax?

The calculator uses whatever numbers you enter — it does not add or strip tax automatically.

For margin decisions, the most meaningful approach is to use ex-tax cost and price: the selling price the customer pays before VAT, and the cost before any recoverable input VAT. This gives you the true economic margin on the product. If you include VAT in both cost and price consistently, the margin percentage will still be correct — just be consistent.

How do I use margin to set a competitive price?

Start from your target margin, not from competitor prices. Use the reverse formula: Price=Cost1Target margin\text{Price} = \frac{\text{Cost}}{1 - \text{Target margin}}

Then compare the result to competitor prices. If your required price is significantly above the market, you need either lower costs or a differentiated value proposition that justifies the premium — margin arithmetic alone cannot solve a cost structure problem.

For commoditised products, work backwards from the market price: Margin = (Market price − Your cost) / Market price. This tells you whether the product is worth selling at all at current costs.

What is the difference between gross margin and net margin?

Gross margin = (Revenue − COGS) / Revenue. COGS includes only costs directly tied to producing the product or delivering the service: materials, direct labour, manufacturing overhead.

Net margin = (Revenue − All expenses) / Revenue. All expenses includes COGS plus operating expenses (rent, salaries, marketing, depreciation) and interest and taxes.

This calculator computes gross margin. A business with a 60% gross margin might have a 10% net margin after paying its team and rent — which is why healthy gross margins do not automatically mean a profitable business.