Calculate the original cost from a selling price and markup percentage, or solve for selling price, markup or margin from the other two values.

Markup is based on cost. Amounts use US dollars.

Optional settings

Assumptions Read first
  • Select the value to find, then complete the displayed inputs. Only fields for that solve mode are used.
  • โ€œMarkup Percentageโ€ is markup on cost, not profit margin. It uses: (Final Price โˆ’ Original Cost) รท Original Cost ร— 100.
  • Negative markup means selling below cost. When finding cost, โˆ’100% markup cannot determine a unique cost from a zero price and cannot yield a positive price. Finding markup requires a positive cost. A 100% gross margin cannot determine selling price from cost.
  • Simple, single-step calculation only; no compounding, tiered or cumulative markups. Taxes, shipping, fees, coupons, and currency conversion are not included unless you incorporate them into the inputs.
  • Amounts are labeled in US dollars. The calculator does not convert currencies. Decimals are allowed.
  • Amounts display up to two decimal places and percentages up to three; very small nonzero amounts use scientific notation. Rounding affects display only.
  • This tool performs arithmetic only and does not constitute pricing, accounting, or tax advice.
When to Use This Calculator
  • Back-calculate the Original Cost from a known Final Price and Markup Percentage.
  • Find the Final Price given an Original Cost and desired Markup Percentage.
  • Determine the Markup Percentage between a known cost and selling price.
  • Sanity-check vendor quotes, discounts (negative markup), and internal pricing scenarios.
Input Definitions
  • Original Cost ($) โ€” The nonnegative baseline cost before markup/discount. It must be greater than zero when computing Markup Percentage.
  • Markup Percentage (%) โ€” Percent applied to cost. Positive increases price; negative represents a discount. Defined as ((Final โˆ’ Cost) รท Cost) ร— 100.
  • Final Marked-Up Price ($) โ€” Selling price after applying markup to the Original Cost.
  • Formulas
    • Final Price = Original Cost ร— (1 + Markup% รท 100)
    • Markup% = ((Final Price โˆ’ Original Cost) รท Original Cost) ร— 100
    • Original Cost = Final Price รท (1 + Markup% รท 100)
  • Input tips โ€” Choose a solve mode and enter the displayed values. Markup cannot be below โˆ’100%; gross margin cannot exceed 100%. Inverse calculations reject cases that cannot have a unique nonnegative answer.

Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Cost from price + markupReverses a markup to find what an item cost before the markup was addedRequires the selling price and the markup percentage
Price from cost + markupFinds the selling price after a markup is added to costRequires the cost price and the markup percentage
Markup from cost + priceFinds the markup percentage between a cost and a selling priceRequires the cost price and the selling price
Cost from price + marginReverses a gross margin to find the cost behind a selling priceRequires the selling price and the gross margin percentage
Price from cost + marginFinds the selling price that leaves a set gross marginRequires the cost price and the gross margin percentage

Amounts are in US dollars. Every result lists the cost price, selling price, gross profit, markup on cost, gross margin and the price multiplier, so a markup and its matching margin can be read from one calculation.

Reverse Markup Formula

C = P รท (1 + M รท 100) [1]
CCost price before the markup ($)
PSelling price after the markup ($)
MMarkup as a percentage of cost (%)

A markup is added to cost, so it cannot be reversed by taking the same percentage off the price. Taking 30% off $130 gives $91, while the cost behind a 30% markup is $100.

Cost from price + markup

The formula above applies directly: a $130 selling price with a 30% markup comes from a cost of 130 รท 1.30 = $100. A negative markup stands for a sale below cost, so a โˆ’20% markup divides the price by 0.80. A markup of โˆ’100% is rejected, because it makes every price zero and the cost cannot be recovered.

Price from cost + markup

P = C ร— (1 + M รท 100) [1]

A $100 cost with a 30% markup sells for 100 ร— 1.30 = $130.

Markup from cost + price

M = (P โˆ’ C) รท C ร— 100 [1]

An item that costs $100 and sells for $130 carries a markup of 30 รท 100 ร— 100 = 30%. A cost of zero is rejected, because a percentage of nothing is undefined.

Cost from price + margin

C = P ร— (1 โˆ’ G รท 100) [1]

G is the gross margin, which is the gross profit as a percentage of the selling price [2]. A $200 selling price at a 40% margin has a cost of 200 ร— 0.60 = $120.

Price from cost + margin

P = C รท (1 โˆ’ G รท 100) [1]

A $120 cost at a 40% margin sells for 120 รท 0.60 = $200. A margin of 100% is rejected, because it would leave no room for any cost.

Limits of This Estimate

  • Markup and margin describe the same profit against different bases, so the two percentages are never equal. The $100 item sold for $130 has a 30% markup and a 23.077% margin. Check which one a supplier, price list or contract means before reversing it.
  • Sales tax, fees, shipping and discounts are left out unless they are already part of the amounts entered. A price that includes sales tax has to have the tax removed first.
  • Prices are shown to two decimal places, while the calculation uses unrounded values, so a result can differ by a cent from one worked with rounded figures.

Sources

  1. Toronto Metropolitan University, Ted Rogers School of Management, Margins vs Markups: markup and margin percentage formulas and their rearrangements for price and cost
  2. Internal Revenue Service, Internal Revenue Manual 4.10.4.5.5.3, Gross Profit Margin to Sales: gross profit margin as sales less cost of goods sold, divided by sales