Business Tools

Profit Margin & Markup Calculator

Work out profit, profit margin and markup from cost and selling price — and find the price you need to hit a target margin.

Tool

About the Profit Margin Calculator

The Profit Margin Calculator runs entirely in your browser — nothing you enter is uploaded or stored.

Margin and markup sound interchangeable but they are not, and mixing them up is one of the most common — and most expensive — pricing mistakes a small business can make. This tool shows both, so you always know which number you are quoting.

How to use this tool

  1. Enter your cost per unit and the price you sell at.
  2. Optionally set a target margin to see the price that achieves it.
  3. Read profit, margin percentage and markup percentage side by side.

Margin vs markup

MetricFormulaExample (cost $30, price $50)
ProfitPrice − Cost$20
MarginProfit ÷ Price40%
MarkupProfit ÷ Cost66.7%

Markup is always the larger figure because it divides by the smaller base (cost). A “50% markup” is only a 33% margin — a trap when you promise a margin to a partner or investor.

Pro tip

If you know the margin you need, divide cost by (1 − margin) to get the right price. On a $30 cost and a 40% margin that is $30 ÷ 0.6 = $50.

Who is this tool for?

Retailers, e-commerce sellers, freelancers and makers pricing products who need to compare margin and markup accurately.

Frequently asked questions

Margin is profit as a percentage of the selling price; markup is profit as a percentage of cost. The same deal gives a higher markup percentage than margin.
Divide your cost by (1 minus the target margin as a decimal). A 40% target on a $30 cost gives a $50 price.
Yes. Treat your delivery cost or hourly cost as cost per unit and your invoice as the selling price.

Related tools

Guides for this tool