Markup to Margin Converter & Price Calculator
Converts a markup on cost into the gross margin it produces, or a margin into the markup that delivers it, using margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin) as fractions. From a unit cost it prices the item both ways, cost × (1 + markup) and cost ÷ (1 − margin), flags the shortfall from marking cost up by a target margin, and tables common markups from 10% to 300%.
Choose a direction, enter the percentage and a unit cost, and the calculator converts a gross margin into the markup on cost that produces it, or a markup into the margin it delivers. It then prices the item from its cost both ways, reading the same number once as a margin and once as a markup, so the gap between the two is plain to see. A mix-up check states what happens when a margin target is applied as a markup, and a table lists common markups from 10% to 300% with their margins, prices and profits on your cost, with your own percentage highlighted among them. The margin calculator works from a known cost and selling price; this page starts from a percentage.
How the conversion works
Markup and margin divide the same gross profit by different bases. Markup on cost divides the profit by the cost; margin divides it by the selling price. Writing both as fractions, one converts into the other directly, with no money figures needed:
margin = markup ÷ (1 + markup)
markup = margin ÷ (1 − margin)
The prices follow from the cost. A markup multiplies the cost by one plus the markup, while a margin divides the cost by one minus the margin, because the margin is the share of the price that is not cost:
price = cost × (1 + markup) = cost ÷ (1 − margin)
Because a margin is a share of the price, it can never reach 100% while the item costs anything, and the calculator refuses a margin of 100 or more. Markup has no such ceiling, so a markup of 150% converts to a 60% margin even though no margin of 150% exists.
The default example: retail's 31.1% margin
The defaults take the gross margin of the whole U.S. retail trade in 2022, as estimated by the Census Bureau: 31.1% of sales. As a fraction that is 0.311, and the markup that produces it is 0.311 ÷ (1 − 0.311) = 0.311 ÷ 0.689 = 45.14%. On a unit cost of 100, the price at a 31.1% margin is 100 ÷ 0.689 = 145.14, leaving a gross profit of 45.14, which is 31.1% of 145.14 and 45.14% of the cost.
Read as a markup instead, the same 31.1 prices the item at 100 × 1.311 = 131.10 and earns 31.10. That profit is only 23.72% of the 131.10 price, 7.38 points short of the margin the number was meant to deliver. The table places the default's 45.14% markup between the 40% and 50% rows.
Two meanings of "markup"
Much of the confusion comes from the word itself, which retailers use with either base. OpenStax's Principles of Marketing defines markup on cost: the selling price minus the purchase price, divided by the purchase price, times 100. Its example retailer buys tennis shoes at $50 a pair and sells them at $75, a 50% markup, which as a margin is only 33.33%.
Tax accounting uses the other base. The IRS's Publication 538, describing the retail inventory method, reduces the retail value of goods on hand to cost by applying "an average markup expressed as a percentage of the total retail selling price". Its worked example totals opening inventory, purchases and net markups at a cost of $105,000 and a retail value of $140,000, so the average markup is $35,000 ÷ $140,000, or 25%. Measured on cost, the same goods carry a markup of 33.33%. A markup on retail is a margin under another name. The publication also requires the percentage to come from department records, not from "arbitrary standard percentages of purchase markup".
The regulation behind the method, 26 CFR § 1.471-8, works with the complement. Its first example has a retailer buying 40 tables at $60 and offering them at $100, a cost complement of $2,400 ÷ $4,000, or 60%. The complement is one minus the margin, so the tables carry a 40% margin and a 66.67% markup, and entering 40 as a margin on a cost of 60 returns the $100 price.
How retailers came to count on the selling price
Keeping stock at selling prices, the basis of a markup on retail, took hold in the department store. In their 2008 study of the retail price inventory method, Ingrid Jeacle and Eamonn Walsh describe how, before the method, department stores valued stock only at cost, set during an annual or semi-annual physical count, and only then computed each department's gross profit. Under the retail method a store kept its stock at selling prices: closing stock was opening stock plus purchases at retail, less sales, adjusted for price changes, so a department's gross profit could be prepared at any point in time without a count. When a count did happen, any gap between the books and the shelves showed up as what the trade called shrinkage.
The authors write that US department stores embraced the method rapidly during the 1920s, a decade that produced a wave of American publications about it. Their case study is a Dublin department store, Arnotts, which adopted it in 1939. Before 1938 that store kept its books at cost and took sales out of stock less 16⅔%, its expected gross profit, so a department that marked down to clear goods came up short at the half-yearly stocktaking. That 16⅔% of the selling price is a markup of exactly 20% on cost, the conversion this page performs.
What real gross margins convert to
The Census Bureau's Annual Retail Trade Survey estimated gross margin as a percentage of sales for every year from 1993 to 2022. The 2022 figures, benchmarked to the 2022 Economic Census and released in August 2026, convert to markups on cost as follows:
| Kind of business, 2022 | Gross margin | Markup on cost |
|---|---|---|
| All retail | 31.1% | 45.14% |
| Automobile dealers | 21.8% | 27.88% |
| Warehouse clubs and supercenters | 24.3% | 32.1% |
| Grocery stores | 28% | 38.89% |
| Electronic shopping and mail-order houses | 39.6% | 65.56% |
| Department stores | 42% | 72.41% |
| Clothing stores | 50.6% | 102.43% |
| Furniture and home furnishings stores | 51% | 104.08% |
The survey's glossary defines gross margin as total sales less the cost of goods sold, so it measures what goods actually sold for. OpenStax notes that markdowns lower a retailer's gross profit, so these are realised margins, below the margin on the original price tags. The all-retail figure and clothing stores still sit close to the textbook rules of thumb. OpenStax says retailers "tend to mark up prices somewhere around 50%", against the all-retail 45.14%, and that clothing is generally marked up from 100% to 300%; clothing stores' 50.6% margin works out to a 102.43% markup, at the bottom of that range. Grocery stores do not fit: OpenStax puts grocers' markup at around 15%, but their 28% margin is a 38.89% markup. The all-retail margin has also widened over time, from 27.6% in 1993, a 38.12% markup, to 31.1% in 2022.
The shortcut error
The most common pricing mistake with these two numbers is to take a target margin and add it to the cost as a markup. Aiming for a 30% margin on a cost of 100, the shortcut prices at 130; the profit of 30 is 23.08% of the price, almost seven points short. The right price is 100 ÷ 0.7 = 142.86, a 42.86% markup. The mix-up check shows the shortfall for whatever you enter, and it widens as the target rises: a 50% markup gives only a 33.33% margin, and a 100% markup only 50%.
The mistake also runs the other way when a markup is quoted as a margin. A shop that adds 50% to cost and calls it a 50% margin is overstating its margin by almost 17 points, and the mix-up check in markup mode shows that a real 50% margin needs a 100% markup. A thin margin also shrinks faster than it looks when prices are cut: a discount off the selling price comes straight out of the profit, so a 10% discount at a 23.08% margin removes more than four tenths of the gross profit.
Assumptions and limits
The percentages are gross: the only cost is the unit cost you enter, with nothing for rent, wages, card fees or shipping, so whether a price covers the business is a separate question. The cost and the price must be in the same unit and treated the same way for tax. The currency selector changes the symbol and rounds money to that currency's minor unit; it does not convert amounts. Percentages run from 0 to 100,000, prices above 10 trillion are refused, a margin must stay below 100, and a markup of 100% or more has no margin reading, so the two margin prices show a dash. Money is rounded half up from the exact decimal and percentages to two decimals. The mix-up check repeats your percentage as typed and compares the rounded figures, so it never contradicts the numbers beside it.
These conversions are arithmetic on the figures you enter and say nothing about whether a price will sell or cover your costs. Check prices against your own accounts before using them. See the site disclaimer.
Frequently asked questions
How do I convert a markup to a margin?
Write the markup as a fraction and divide it by one plus itself. A 50% markup is 0.5 ÷ 1.5, a 33.33% margin, and a 100% markup is 1 ÷ 2, a 50% margin. On a cost of 100 the 50% markup prices the item at 150 with a profit of 50, and 50 is a third of the 150 price. The margin is always the smaller number while the profit is positive.
How do I convert a margin to a markup?
Write the margin as a fraction and divide it by one minus itself. The 31.1% gross margin that U.S. retailers earned in 2022 is 0.311 ÷ 0.689, a 45.14% markup on cost. A 25% margin is a 33.33% markup and a 50% margin is a 100% markup. A margin of 100% or more has no markup at all, because it would leave nothing of the price for the cost.
Why does marking cost up by my target margin fall short?
Because the markup is a share of the cost and the margin is a share of the larger price. Marking a cost of 100 up by 30% prices it at 130, and the profit of 30 is only 23.08% of 130. Reaching a true 30% margin needs a price of 142.86, which is 100 ÷ 0.7 and a 42.86% markup. The shortfall grows with the target: a 50% markup is only a 33.33% margin.
Is a markup on retail the same thing as a margin?
Yes. A markup on retail divides the profit by the selling price, which is how the IRS describes the average markup in the retail inventory method in Publication 538. Its worked example has goods costing 105,000 with a retail value of 140,000, an average markup of 25% of retail. The same goods carry a 33.33% markup on cost, so always ask which base a quoted markup uses.
What markup gives a 50 percent margin?
A 100% markup, which doubles the cost: a cost of 100 sells at 200, and the profit of 100 is half the price. OpenStax calls doubling the wholesale price keystone pricing. A 75% markup gives a 42.86% margin and a 150% markup gives 60%, so each extra point of margin above 50% costs more and more markup.
Sources
- 18.3 Retailing Strategy Decisions, OpenStax, Principles of Marketing, 2023
- Publication 538, Accounting Periods and Methods: Retail method, Internal Revenue Service, 2022
- 26 CFR § 1.471-8 – Inventories of retail merchants, Legal Information Institute, Cornell Law School
- Annual Retail Trade Survey: 2022 (benchmarked), Gross Margin as a Percentage of Sales (1993-2022), U.S. Census Bureau, 2026
- Annual Retail Trade Survey glossary: Gross Margin, Cost of Goods Sold, U.S. Census Bureau
- A tale of tar and feathering: the Retail Price Inventory Method and the Englishman (I. Jeacle and E. Walsh), Accounting, Business and Financial History, via Edinburgh Research Explorer, 2008