Skip to content
everylittletool

Margin Calculator

Calculate profit margin and markup, or the price you need to hit a target margin.

Runs in your browser — nothing is uploaded

Inputs

Gross margin

38.46%

Profit

$25.00

Markup

62.5%

How it is calculated

Profit = price − cost = $65.00 − $40.00 = $25.00
Margin = profit ÷ price = 38.46%
Markup = profit ÷ cost = 62.5%

How to use Margin Calculator

  1. 1

    Choose what you know: Cost + price, Cost + margin or Cost + markup.

  2. 2

    Enter the Cost and either the Selling price, Target margin (%) or Markup (%).

  3. 3

    Read the profit, gross margin and markup in the results.

  4. 4

    Check the formula box to see exactly how each figure was worked out.

About this tool

Margin and markup measure the same profit against different bases. Gross margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost. An item that costs $40 and sells for $65 makes $25 profit: a 38.46% margin and a 62.5% markup.

To hit a target margin, price = cost ÷ (1 − margin). A $40 item needs a price of $61.54 for a 35% margin. Adding 35% to the cost ($54) only gives a 25.9% margin — the most common pricing mistake.

Margin can never reach 100% because that would need a zero cost, while markup has no upper limit. Gross margin here ignores overheads such as rent, wages and shipping; your net margin will be lower.

A practical tip: if you are setting prices, think in margin, because that is how most accounts and reports measure profitability. Use the Cost + markup mode when a supplier or industry quotes a standard markup and you want to see what margin it really gives. Nothing you type is uploaded.

Questions people ask

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 the cost. A 50% markup equals a 33.3% margin.

How do I calculate selling price from cost and margin?

Divide the cost by (1 − margin). For a $30 cost and 40% margin: $30 ÷ 0.6 = $50.

What is a good profit margin?

It varies widely by industry: grocery retail often runs on gross margins under 30%, while software can exceed 70%. Compare with businesses like yours.