Skip to content

Markup Calculator (Selling Price from Cost, or Markup from Price)

Selling price from cost and a markup percentage, or the markup a cost and price represent — with the gross margin it equals and the working.

Inputs

Example: Selling price
70.00

Use this calculator on your own site

Free embed

  • Two lines of HTML, unlimited views
  • Shows a small CalculateEveryday bar, with a credit link under the calculator

What each Markup input means

Work out
Price from a known markup, or the markup from a known price.
Cost
What one item costs you — the purchase price, or materials and labour to make it.
Markup on cost
The percentage of cost to add. 100% doubles the cost ('keystone' pricing in retail).
Selling price
For finding the markup: the selling price before sales tax.

Markup formula

Selling price = cost × (1 + markup) · markup = (price − cost) ÷ cost · gross margin = (price − cost) ÷ price

p=c (1+k)k=p−ccp = c\,(1 + k) \qquad k = \frac{p - c}{c}

Markup is the amount added to the cost of an item to set its selling price, expressed as a share of that cost. OpenStax's Contemporary Mathematics gives the two forms used here: the markup is the percent markup times the cost, and the retail price is the cost times (1 + percent markup). So a 40% markup on a cost of 50 adds 20 and sets the price at 70. Retailers often think in markup because it starts from the number they know — what they paid — while accountants and investors usually quote margin, the same profit divided by the price instead. The two are easy to mix up and give different percentages for the same sale: that 40% markup is only a 28.57% margin. The page shows both every time. It also runs backwards: give it a cost and a selling price, and it works out the markup they imply, along with the profit per sale and the margin, which is handy for checking a supplier's suggested retail price or a competitor's.

Formula last checked against OpenStax Contemporary Mathematics §6.2 'Discounts, Markups, and Sales Tax' (markup = percent markup × cost; retail price = cost × (1 + percent markup)) on 2 October 2026. Built and maintained by Suman Kumar · How we check

Markup worked example

Marking up a $50 cost by 40% adds $20, for a selling price of $70. Measured against that price, the $20 is a 28.57% margin — not 40%.

More Markup examples

Buying at 30 and selling at 45 leaves 15 per sale. As a markup that is 15 ÷ 30 = 50.00%; as a margin, 15 ÷ 45 = 33.33%.

Where the Markup calculator can give the wrong answer

  • A negative markup would be a price below cost; the page refuses it. To price a discount from a list price, use the discount calculator.
  • Markup on cost is not margin on price. Quoting a 40% markup as a 40% margin overstates profitability by more than a third.
  • Markup covers more than profit: rent, wages and other overheads have to come out of it before anything is left.
  • Some trades quote markup on the selling price rather than the cost; that is a margin, and the margin calculator handles it.
  • Results are shown to two decimal places with no currency symbol, in whatever currency you are working in.

Spotted a mistake? Tell us

Markup reference table

Markup and the margin it equals
Markup on costGross marginPrice for a cost of 100
10%9.09%110.00
25%20.00%125.00
40%28.57%140.00
50%33.33%150.00
100%50.00%200.00
200%66.67%300.00
Source: Margin = markup ÷ (1 + markup) (OpenStax Contemporary Mathematics §6.2)

Markup FAQ

Subtract the cost from the price and divide by the cost: (price − cost) ÷ cost. Bought at 80, sold at 120: 40 ÷ 80 = 50% markup. To set a price, multiply the cost by (1 + markup): 80 × 1.5 = 120.