Skip to content

Business · Guide

Margin Calculator Guide: Profit Margin vs Markup Explained

A margin calculator answers a question every seller faces: given my cost and my target profit, what should I charge? The answer depends on two deceptively similar numbers — margin and markup. They describe the same profit from different sides, and confusing them is one of the most common and expensive pricing errors in small business.

In this guide

Margin vs markup

Margin (gross profit margin) is profit divided by selling price, expressed as a percentage — the share of every sales dollar that is profit. Markup is profit divided by cost. For the same item, markup is always a larger percentage than margin, and adding your desired margin as a markup by mistake underprices the product.

Setting prices from cost

To hit a target margin, divide your cost by (1 − margin). For a 40% margin, divide cost by 0.60. The calculator does this for you, so you can quickly see the price required for any margin — and what each candidate price leaves you as profit.

Why margin pricing matters

Margin is how profitability is reported, so pricing decisions made in markup terms need translating. If your costs rise, recalculating the price to preserve the same margin — not the same markup — keeps your business profitable. Regular margin checks also expose products that only look profitable.

Key takeaways

  • Margin = profit ÷ price; markup = profit ÷ cost.
  • Markup is always a bigger percentage than margin.
  • To hit a margin, divide cost by (1 − margin).
  • Recalculate prices on cost changes to protect margin.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price; markup is profit as a percentage of cost. They measure the same profit from different bases.

How do I convert markup to margin?

Margin = markup ÷ (1 + markup). A 50% markup equals a 33.3% margin — the margin calculator converts both directions instantly.

What is a good profit margin?

It varies by industry — 10% is healthy in grocery while software can target 80%+. Compare against your own industry and trend rather than a universal number.

The numbers behind this guide

Every figure in this guide comes from a real calculator, not an illustration. Below is exactly what that calculator measures, which inputs it accepts, and what it returns — so you can reproduce any number you read here.

What the calculator measures

Every input below changes the result in a specific way. This is what each one expects, what it starts at, and the range it accepts.

Cost

A monetary amount. Enter a number without a currency symbol.

Starts at: $80

Accepted range: $0 to $1,000,000,000,000

Selling price / revenue

A monetary amount. Enter a number without a currency symbol.

Starts at: $100

Accepted range: $0 to $1,000,000,000,000

How to read your result

The calculator reports the figures below. The headline figure answers the question in the title; the rows underneath break it down so you can see what drives it.

Profit margin
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Markup
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Gross profit
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Cost as % of price
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Markup
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Gross profit
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
Cost
This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.

Margin and markup both measure profit but against different bases. If you buy for $80 and sell for $100: margin is 20% (profit over price), markup is 25% (profit over cost).

Put these numbers to work

ROI, profit margins, markup, CPM, CPC and breakeven analysis.

Read next