Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

Margin and Markup Calculator

What is the margin on that?

What this tells you: The gross profit on a sale, and the same profit read two ways: as a margin against the selling price and as a markup against the cost. Any two of cost, price and margin give you the third.

Go to the calculator

Also called: markup calculator · profit margin calculator · gross margin calculator Read the guide Last updated

Pick the two numbers you already know.

What you paid for the item, before you sold it.

What it sells for, before any tax charged on top.

Result

Selling at 100 on a cost of 60 is a profit of 40: a margin of 40.00% and a markup of 66.67%.

Method: Gross profit = selling price − cost; margin = profit ÷ selling price, and markup = profit ÷ cost, so the same profit gives two different percentages.

This tool shows math, not advice.

Details

Selling price100
Cost60
Gross profit40
Margin, against the selling price40.00%
Markup, against the cost66.67%
Selling price as a multiple of cost1.667

Things to notice

  • Note: The same profit reads as a margin of 40.00% and a markup of 66.67%. They are two views of one number.margin and markup differing

How we got this

  1. Gross profit is the selling price less the cost: 100 - 60 = 40.
  2. Margin measures that profit against the selling price (40.00%); markup measures the same profit against the cost (66.67%). They are never equal, and pricing off the wrong one is the most expensive slip in this arithmetic.

About this answer

  • Gross profit only: this counts the cost of the item and nothing else. Overheads, wages, delivery and tax all sit below this line.

Did this calculator help?

Keep this calculator. Your numbers are in the address, so a bookmark brings them back exactly as you left them. Press Ctrl + D · ⌘ + D

What to do next

Calculators that usually come after this one.

Not quite what you need?

Type your question in plain words and get the calculators that answer it.

    The formulas behind margin and markup

    Profit = selling price − cost
    Margin = profit ÷ selling price
    Markup = profit ÷ cost
    
    Selling price from a margin = cost ÷ (1 − margin)
    Selling price from a markup = cost × (1 + markup)
    cost
    what one unit costs you
    margin
    profit as a share of the selling price, as a decimal
    markup
    profit as a share of the cost, as a decimal

    On the default run, a cost of 60 sold at 100 is a profit of 40. That is a margin of 40 ÷ 100 = 40% and a markup of 40 ÷ 60 = 66.67%. Going the other way, a cost of 60 and a margin of 40% gives 60 ÷ (1 − 0.40) = 100.

    How to use it

    1. Pick the two figures you have.
    2. Type them.
    3. Read the missing figure, the gross profit, and both percentages.
    4. Use the markup mode when you are pricing up from cost rather than measuring a sale.

    Example

    A cost of 60 sold at 100 is a gross profit of 40: a margin of 40% and a markup of 66.67%.

    Type these numbers into the boxes

    What do you know?
    Cost and selling price
    What it cost you
    60
    Selling price
    100

    What you get: Selling at 100 on a cost of 60 is a profit of 40: a margin of 40.00% and a markup of 66.67%.

    Put this example into the calculator

    What your answer means

    Margin and markup are the same profit measured against different numbers, and they are never equal. A 50% markup is a 33.33% margin. Pricing a product by applying the margin you want as a markup leaves you short on every sale, which is why both are printed here.

    How we calculate · the conventions behind every answer, in one place.

    Questions about the margin and markup calculator

    What is the difference between margin and markup?

    Both use the same profit, but measure it against different figures. Margin is profit against the selling price; markup is profit against the cost. Selling at 100 something that cost 60 gives a profit of 40, which is a margin of 40% and a markup of 66.67%.

    How do I calculate markup?

    Markup = (selling price − cost) ÷ cost. With a cost of 60 and a price of 100, the profit is 40, and 40 ÷ 60 gives 66.67%. The page also shows the price as a multiple of cost, 1.667 here, which is one plus the markup.

    Why can markup go above 100% but margin cannot?

    Markup is measured against the cost, so a price more than double the cost gives a markup above 100%. Margin is measured against the selling price, and the profit can never be bigger than the price itself, so margin stays below 100%. In the default run the markup of 66.67% is already well above the 40% margin.

    What happens if I price using markup when I meant margin?

    The price comes out lower than intended. If you want a 40% margin on a cost of 60, the price is 100. Adding 40% to the cost instead gives a markup of 40%, which is a lower price and a smaller margin than you planned. The two figures are never equal, which is why the page always shows both.

    Does the result include overheads or tax?

    No. The profit here is gross profit: the selling price less the cost you type, 100 − 60 = 40 on the default run. Rent, wages, other running costs and any sales tax are not taken off unless you include them in the cost. The margin shown is therefore a gross margin.

    How do I find the selling price per unit?

    Divide the cost of one unit by one minus the margin. With a cost of 60 and a margin of 40%, 60 ÷ (1 − 0.40) = 100. If you plan by markup instead, multiply the cost by one plus the markup: 60 × (1 + 0.6667) = 100.00. Pick what you know in the first box and the page returns the price either way. If you only know total sales, divide them by the units sold: 5,000 across 50 units is 100 a unit.

    Is selling price per unit the same as unit price?

    No. Unit price is what a buyer pays for one unit: 12 items for 4.80 is 0.40 each. Selling price per unit is what a seller charges, and it has to cover the cost and leave a profit. Use the price per unit calculator to compare what shops charge, and this page to set your own price. Compare prices on the price per unit calculator.

    Ask about this calculator

    Something the page does not answer? Ask it here. A person reads every question, and the useful ones are answered on this page.

    Your question goes to the site owner by email and is not stored on this site. If you add an email it is used only to reply.

    Cite this page

    Copy this line into a reference list, a report or a spreadsheet note.

    Investment Math Calculator. “Margin and Markup Calculator”. Updated 2026-11-29. https://investmentmathcalculator.com/tools/margin/

    This tool shows math, not advice.

    Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.