Skip to content
snip tools

Profit margin calculator

Work out profit, margin and markup from cost and price — or solve for a target margin.

Runs 100% in your browser
Profit
Profit margin
Markup

How to calculate profit margin

  1. Enter cost and price. Type your unit cost and selling price.
  2. Read margin and markup. Profit, margin % and markup % update live.
  3. Or solve for price. Enter a target margin to get the required price.

Margin vs markup — the confusion that costs money

Margin and markup describe the same profit from two different angles, and mixing them up is one of the most common pricing mistakes. Markup answers "how much do I add on top of cost?" and is measured against your cost. Margin answers "what share of the selling price is profit?" and is measured against your price. The same deal can be a 50% markup and only a 33% margin — so a supplier quoting "50%" and an accountant reporting "33%" may be describing the identical transaction.

The formulas

Profit is simply price minus cost. From there: margin % = profit ÷ price × 100, and markup % = profit ÷ cost × 100. Because the denominator differs, markup is always the larger number for the same profit. To price from a target margin, don't just add the percentage to cost — that gives a markup. Divide instead: price = cost ÷ (1 − margin). A product costing 60 sold at a 40% target margin should be priced at 60 ÷ 0.6 = 100, which the "solve for price" field above does for you.

Gross margin and pricing

The margin here is gross margin — price minus the direct cost of the goods. Your net margin is what's left after overheads, fees and tax, and it's always lower, so a healthy gross margin is what gives those fixed costs room to be covered. Use this to sanity-check the rates in your quotes and invoices before you send them — pricing that looks profitable on markup can be thin once you read it as margin.

For informational purposes only — not financial advice.

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 the cost. A 50% markup on a $100 cost gives a $150 price and a 33.3% margin — the two numbers are not the same.
How is profit margin calculated?
Profit = price − cost. Profit margin = profit ÷ price × 100. Markup = profit ÷ cost × 100. This calculator computes all of them as you type.
Can I work out the price from a target margin?
Yes — enter your cost and a target margin and the calculator gives the price you need to charge to achieve it.
Is the calculation done privately?
Yes, entirely in your browser. No figures are sent anywhere.