Skip to content
SimplCalc

Margin Calculator

Enter two values and get the rest, including the margin and the markup side by side.

Result

Profit margin
40%
Markup
66.67%
Profit
$40.00
Cost
$60.00
Selling price
$100.00
Markup minus margin
26.67points

Results are estimates for illustration only and are not financial advice. Actual terms from lenders or institutions may differ.

How to use the margin calculator

Pick the two values you already know, such as cost and selling price, or cost and the margin you want. Enter them and the calculator fills in the other three, together with the margin and the markup. Use it to set a price for a target margin or to check what an existing price really earns.

Formulas

  • Profit = price − cost
  • Margin = profit ÷ price × 100
  • Markup = profit ÷ cost × 100
  • Price from cost and margin = cost ÷ (1 − margin)
  • Price from cost and markup = cost × (1 + markup)

Margin is written as a share of 100% and can never reach it. Markup has no upper limit. The two are linked by markup = margin ÷ (1 − margin).

Worked example

An item costs 60 and sells for 100. Profit is 40, so the margin is 40 ÷ 100 = 40% and the markup is 40 ÷ 60 ≈ 66.67%. The difference is about 26.67 percentage points. To earn a 40% margin you need a markup of 66.67%, not 40%.

Assumptions and limits

  • Cost and price are single per-item amounts in the same currency. Taxes, discounts and fees are not applied unless you include them in the cost.
  • A negative margin or markup means selling below cost.
  • The calculator does not tell you which price the market will accept.

Frequently asked questions

What is the difference between margin and markup?

Both describe the same profit, but margin divides it by the selling price and markup divides it by the cost. A 50% markup is therefore only a 33.3% margin. Mixing them up is a common pricing mistake.

Is this gross margin or net margin?

It works with whatever cost you enter. Use the direct cost of the item for gross margin. Add overheads, fees and shipping to the cost if you want a closer view of net profit.

Sources and methodology

Last reviewed 2026-12-04