Skip to tool
ZirkoMirkoTools

Profit Margin Calculator

Calculate profit, markup or a target selling price. Your inputs stay on your device.

Enter any two of cost, price, margin or markup to get the rest.

Example · Cost 60, selling price 100

Margin is profit ÷ price. Markup is profit ÷ cost.
Gross profit
$40.00

Cost $60.00, price $100.00: profit $40.00, margin 40%, markup 66.67%.

Margin is the share of the selling price.

Markup is measured against the cost.

Next tool · Add VAT to a price

Processed on this device — nothing is uploaded

What you can do here

  • Live results from any two inputs
  • Selling price from margin or markup
  • Cost from price and a percentage
  • Gross profit and loss

How do I work out profit margin from cost and price?

The Profit Margin Calculator uses two pricing inputs to work out gross profit, selling price, margin and markup. With a cost of 60 and a selling price of 100, profit is 40, margin is 40%, and markup is 66.67%. It updates as you type and runs in your browser.

You can also enter a target margin or markup with a cost to find the selling price, or pair a percentage with the price to find the cost. The two fields you edit most recently become inputs, and the others are marked Calculated.

Key facts

Price
Free
Sign-up
None
Upload
None — runs on your device
Limits
Two inputs, including cost or selling price · Amounts up to 999,999,999,999.99
Works with
Cost, selling price, margin or markup
Output
Gross profit or loss · Margin, markup, cost and selling price
Works on
Modern desktop and mobile browsers with JavaScript
Updated

How to calculate margin, markup and selling price

  1. Enter cost and selling price

    Use the same currency for both amounts. The calculator shows gross profit, margin and markup.

  2. Try a target percentage

    Edit Margin or Markup to make it one of the two inputs. Edit cost again to calculate a new selling price from cost.

  3. Check what each percentage means

    Read the lines below the profit result to see which amount acts as the base for each percentage.

How profit margin and markup are calculated

Gross profit is selling price minus cost. Margin is gross profit divided by selling price, multiplied by 100. Markup is gross profit divided by cost, multiplied by 100. At the default amounts of 60 for cost and 100 for selling price, gross profit is 40. Margin is 40 ÷ 100 = 40%, and markup is 40 ÷ 60 = 66.67% after rounding.

For target margin, divide cost by one minus the margin as a decimal. For target markup, multiply cost by one plus the markup as a decimal. A price and either percentage can also recover cost. Two rates alone describe the relationship between cost and price. Enter either amount to set the scale.

Estimate only. Use the direct cost and selling price in the same currency. Include relevant fees in the cost if you want to account for them. Displayed results are rounded to two decimal places.

Frequently asked questions

What is the difference between profit margin and markup?

Margin measures profit as a share of selling price. Markup measures the same profit as a share of cost. A 40 profit on a 60 cost and 100 selling price gives 40% margin and 66.67% markup.

How do I set a selling price for a 30% margin?

Divide cost by 0.70. A cost of 70 gives a selling price of 100. In the calculator, edit Cost, then Margin, to keep those two fields as the controlling inputs.

What does a negative profit margin mean?

It means the selling price is below cost. Paying 100 and selling at 80 gives a gross loss of 20 and a margin of −25% because the loss is one quarter of the selling price.

Can I get a selling price from margin and markup alone?

No. Both percentages describe how price and cost relate. Enter either an actual cost or a selling price so the calculator can find the other amount.

Are my costs and selling prices sent anywhere?

The calculation stays on your device and usage events exclude your pricing inputs. A copied link carries the two input values in its address, so share it only with the people you choose.

Presets

Related tools

About this tool

Made by ZirkoMirko. Last updated .

Check it yourself in your browser’s Network panel while using the tool. How we handle your data.

Sources