Home›Tools›Profit Margin Calculator

Profit Margin Calculator

Work out profit, margin, and markup from cost and price, or go the other way and find the price you need for a target margin. The three modes cover pricing, reviewing, and reverse-checking.

Review an existing price: see profit, margin, and markup.

—
Profit
—
Margin
—
Markup

Start with a cost and the margin you want, and get the price to charge.

—
Selling price
—
Profit
—
Markup

Check what a selling price leaves you after hitting a target margin.

—
Maximum cost
—
Profit
—
Markup

How to use this tool

  1. Choose Cost & price to review a sale and see profit, margin, and markup together.
  2. Choose Find price when you know the cost and the margin you need.
  3. Choose Reverse-check cost when a price is fixed and you need to know the highest cost that still hits the target.
  4. Enter the values and press the action button; the result updates with the calculation shown.

Margin, markup, and the formulas

Margin and markup both describe profit, but they use different denominators. Margin compares profit to the selling price; markup compares profit to the cost. That is why a 40% margin is not the same as a 40% markup.

MeasureFormula
Profitprice − cost
Marginprofit ÷ price × 100
Markupprofit ÷ cost × 100
Price for a target margincost ÷ (1 − margin)
Cost from price and marginprice × (1 − margin)

For example, a cost of 60 sold for 100 gives a profit of 40, a margin of 40%, and a markup of 66.67%. To hit a 40% margin on the same cost, the price must be 100. If the price is fixed at 100, the highest cost that still leaves a 40% margin is 60.

Using the results responsibly

The calculator works in any currency and ignores tax, shipping, payment fees, and overhead. For a complete picture, include those costs in the cost figure or model them separately. A 100% margin is impossible because it would require zero cost, and negative margins mean you are selling below cost.

Markup to margin, the pairs people mix up

Markup and margin describe the same profit against different bases, so a markup figure is always larger than the margin for the same sale. The conversion is margin = markup ÷ (1 + markup), with both expressed as decimals.

Markup Equivalent margin Price on a cost of 100
10% 9.1% 110
20% 16.7% 120
25% 20.0% 125
33.3% 25.0% 133.33
50% 33.3% 150
100% 50.0% 200
200% 66.7% 300

The gap grows quickly. Doubling the cost is a 100% markup but only a 50% margin, and no markup can produce a 100% margin because that would require a cost of zero.

Setting a price from a target margin

A supplier quotes 42 per unit and you want a 35% margin. Divide the cost by the share of the price that is not profit: 42 ÷ (1 − 0.35) = 42 ÷ 0.65 = 64.62. Rounding up to 65 keeps the margin slightly above target.

Adding 35% to the cost instead gives 56.70, which is a 26% margin. That single mistake is why products priced by "cost plus a third" often earn less than the owner believes.

Which costs belong in the cost figure

The calculator treats cost as one number. To see a true margin, that number should include everything that scales with a sale: the product itself, packaging, inbound shipping, and marketplace fees charged per order. Payment processing is usually a percentage of the price rather than a fixed cost per unit, so a fee of around 3% reduces the margin by roughly 3 percentage points rather than changing the cost.

Overhead that does not move with volume, such as software subscriptions or rent, belongs in a separate break-even calculation. Adding it to unit cost is reasonable as an allocation only if you decide a basis for splitting it.

When the percentage calculator is the better tool

A discount, a tax rate, or the share one number represents of another is a percentage question, not a margin question. The Percentage Calculator handles those with the formulas shown. If you are setting an hourly rate instead of a product price, the Hourly Rate Calculator starts from an income goal rather than a unit cost.

Frequently asked questions

Margin is profit divided by selling price, while markup is profit divided by cost. A product that costs 60 and sells for 100 has a 40% margin but a 66.67% markup.

Margin is profit divided by price. Reaching 100% would require the cost to be zero, so the tool accepts target margins below 100%.

It means the selling price is below the cost, so each sale loses money. The calculator still reports the negative margin and markup so you can see the size of the loss.

No. The inputs are cost and price only. Add tax, shipping, fees, and overhead to the cost figure if you want the margin to reflect them.

Any single currency. The calculator treats the numbers as unitless amounts and returns results in the same currency.

More in Calculators Percentages, mortgages, tips, margins, and hourly rates.