Markup Calculator
Free markup calculator. Solve for markup percentage, selling price, or cost. Shows the gross margin equivalent so retailers and accountants stay aligned.
Markup Calculator
Background.
This markup calculator solves the three-way relationship between cost, selling price, and markup percentage that sits at the heart of every retail, wholesale, and direct-to-consumer pricing decision — and then quietly translates the result into the gross margin percentage that your accountant, your investor deck, and your point-of-sale dashboards actually want to see. Markup and margin are the two most commonly confused numbers in small-business finance. They describe the same underlying gap between cost and price, but they divide that gap by different denominators, and the resulting percentages diverge in a way that has cost real founders real money.
Markup is the markup-up amount expressed as a percentage of cost: a $20 markup on an $80 product is a 25 percent markup. Gross margin is the same $20 expressed as a percentage of the selling price of $100, which is 20 percent. The two numbers describe the same transaction. They are not interchangeable, and confusing them is the single most common pricing mistake on Shopify, Amazon FBA, Etsy, and indie retail thread alike.
The classic landmine, taught in every introductory marketing textbook from Kotler's Marketing Management onward, is the assumption that a one-hundred-percent markup produces a one-hundred-percent margin. It does not. A one-hundred-percent markup — doubling your cost — produces a fifty-percent gross margin, which is why the retail tradition of keystone pricing (double the wholesale cost) is so durable: it bakes in a clean fifty-percent gross margin without forcing the floor manager to do algebra in their head.
Retailers historically use markup because their pricing decisions start with a known cost and ask how much to add on top. Accountants and investors use gross margin because the income statement starts with revenue at the top and subtracts cost of goods sold below it, producing a margin percentage that compares cleanly across companies of different sizes and price points. Both numbers are correct; both are useful; both are taught in Brealey, Myers, and Allen's Principles of Corporate Finance and in every cost-accounting curriculum.
The Quanta markup calculator lets you input whichever pair you have on hand — cost plus price, cost plus markup, or price plus markup — and returns the full picture: markup percent, gross margin percent, dollar profit per unit, and the solved-for missing variable. The arithmetic uses arbitrary-precision Decimal.js so the rounding drift that shows up when you chain three percentages together in Excel never appears in the result.
Use it to set a launch price for a new SKU when you only know your landed cost and the gross margin your finance team requires (reverse-pricing). Use it to audit a competitor's pricing when you can see only their shelf price and you have a credible estimate of their cost. Use it to translate a manufacturer's MSRP into the implied wholesale margin a dealer is earning. Use it to convert keystone, triple-keystone, or any other rule-of-thumb retail markup into the gross-margin number your bookkeeper needs. Below the widget you will find the explicit formulas in plain notation, a fully worked example built around an $80 cost and a $100 price (25 percent markup, 20 percent margin, $20 profit), eight long-tail FAQs answering the questions real founders search for — including the markup-versus-margin trap, why margin can never exceed 100 percent, how keystone pricing works, how to reverse-price from a target margin, and how gross margin relates to net margin once operating expenses are added back — and primary-source citations to Kotler, Brealey/Myers/Allen, Harvard Business Review, the National Retail Federation, and the U.S. Census Bureau's Annual Retail Trade Survey. Read past the calculator if you want to internalize the formulas well enough to estimate any pricing decision in your head and stop confusing the two percentages forever.
What is markup calculator?
Markup is the amount added to a product's cost to arrive at its selling price, expressed as a percentage of the cost. Mathematically, markup % = (price - cost) / cost x 100. Gross margin is the same dollar gap between price and cost, but expressed as a percentage of the selling price: margin % = (price - cost) / price x 100. The dollar amount in the numerator is identical in both formulas. Only the denominator differs — cost for markup, price for margin. Because price is always larger than cost (in a profitable transaction), the markup percentage is always larger than the margin percentage for the same transaction. A 25 percent markup is a 20 percent margin. A 50 percent markup is a 33.33 percent margin. A 100 percent markup (keystone pricing) is a 50 percent margin. A 400 percent markup is an 80 percent margin. As the markup percentage grows toward infinity, the margin percentage asymptotically approaches but never reaches 100 percent — because for margin to equal 100 percent the cost would have to be zero. This calculator computes both percentages from any complete input pair so retailers, wholesalers, and ecommerce operators can speak the markup language of buyers and merchandisers while reporting the margin language of finance and investors.
How to use this calculator.
- Choose what to Solve For. Default is Markup % — you supply cost and price, the tool tells you the markup percentage and the equivalent gross margin. Switch to Selling Price when you know your cost and your target markup, or to Cost when you know the shelf price and the markup the retailer is taking.
- Enter the Cost — your landed unit cost in dollars, including freight, duty, and any inbound logistics. Leave this field alone if you selected Solve For = Cost.
- Enter the Selling Price — the price the end customer pays, exclusive of sales tax or VAT. Leave this field alone if you selected Solve For = Selling Price.
- Enter the Markup as a percentage, not a decimal. For a 25% markup, type 25, not 0.25. Leave this field alone if you selected Solve For = Markup.
- Read the outputs. Markup % is the retailer's number (profit divided by cost), Gross Margin % is the accountant's number (profit divided by price), Gross Profit is the absolute dollar gap, and Cost and Price echo or report the solved values.
- Translate the result. If your CFO asked for a 40% gross margin and the calculator returned a 67% markup, you have your answer: charge cost x 1.67. The two numbers describe the same pricing decision in different languages.
The formula.
The three core identities are markup % = (price - cost) / cost x 100, margin % = (price - cost) / price x 100, and profit = price - cost. When you know cost and price, both percentages are direct one-line computations. When you know cost and markup, the selling price is price = cost x (1 + markup / 100); a $50 cost at 60% markup yields a $80 selling price. When you know price and markup, the implied cost is cost = price / (1 + markup / 100); a $120 selling price at 50% markup implies a $80 cost. The relationship between the two percentages is itself a closed-form identity: margin = markup / (1 + markup) and markup = margin / (1 - margin), both expressed as decimals. That identity is the source of the keystone shortcut — a 100% markup (markup = 1.0) produces a margin of 1.0 / 2.0 = 0.5, exactly 50% — and the source of the asymptotic ceiling on margin: as markup grows without bound, margin / (1 - margin) grows without bound, but margin itself approaches but never reaches 1.0, because that would require cost = 0. This calculator stores the markup as a percentage in the input (you type 25 for 25%) and divides by 100 internally before chaining the multiplications, eliminating the most common spreadsheet bug. All arithmetic runs through Decimal.js, so the cumulative rounding drift that appears when you compute margin from markup and then re-derive markup from margin in Excel does not happen here — the two percentages always round-trip exactly.
A worked example.
Take the canonical retail example used in the Kotler Marketing Management chapter on pricing: a product costs the retailer $80 landed and sells for $100 on the shelf. Set Solve For to Markup, enter Cost = 80 and Selling Price = 100. The calculator runs the markup formula first: markup % = (price - cost) / cost x 100 = (100 - 80) / 80 x 100 = 20 / 80 x 100 = 25%. Then it runs the margin formula on the same two numbers: margin % = (price - cost) / price x 100 = 20 / 100 x 100 = 20%. The dollar gross profit is $20 — the same in both formulas; only the denominator changed. The output panel returns Markup % = 25%, Gross Margin % = 20%, Gross Profit = $20, Cost = $80, Selling Price = $100. Notice the headline result a merchandiser would quote (25% markup) is five percentage points larger than the result a CFO would report (20% gross margin), even though the underlying economics are identical. Now invert the problem. Suppose your finance team requires a 25% gross margin on the same $80 cost. Switch Solve For to Selling Price and enter Cost = 80 and Markup = the markup-equivalent of a 25% margin. Using the identity markup = margin / (1 - margin) = 0.25 / 0.75 = 0.3333..., enter Markup = 33.33%. The calculator returns Selling Price = $106.66 and confirms Margin % = 25%. That is the reverse-pricing workflow most early-stage ecommerce founders learn the hard way: a 25% margin requires a 33.33% markup, not a 25% markup. The $6.66 gap on a single unit becomes thousands of dollars of foregone profit over a season of inventory turn.
Frequently asked questions.
What is the difference between markup and margin?
What is the formula to convert markup to margin and back?
What is keystone pricing and why is it 100% markup?
How do I work backwards from a target gross margin to a selling price?
Why can gross margin never exceed 100% but markup can?
What is the difference between gross margin and net margin?
What is a typical markup or gross margin by industry?
Why does my answer change depending on whether I enter markup or margin?
References& sources.
- [1]Brealey, Richard A.; Myers, Stewart C.; Allen, Franklin — Principles of Corporate Finance, 13th ed., McGraw-Hill, chapters on financial analysis and pricing (gross margin, markup-margin algebra, and the relationship between cost structure and pricing decisions).
- [2]Kotler, Philip; Keller, Kevin Lane — Marketing Management, 15th ed., Pearson, chapter on pricing strategies (markup pricing, keystone pricing, target-return pricing, and the markup-vs-margin distinction).
- [3]National Retail Federation — Retail industry benchmark reports and annual State of Retail data (industry-level gross margin benchmarks for apparel, grocery, specialty, and big-box retail).
- [4]Harvard Business Review — Pricing strategy article series, including 'The Power of Pricing' (Marn & Rosiello) and the HBR Pricing collection (markup-to-margin conversion tables, reverse-pricing methodology, and willingness-to-pay frameworks).
- [5]U.S. Census Bureau — Annual Retail Trade Survey (ARTS), gross margin and gross margin percentage by NAICS retail sector (the authoritative U.S. dataset for industry-level retail margin benchmarks).
- [6]Horngren, Charles T.; Datar, Srikant M.; Rajan, Madhav V. — Cost Accounting: A Managerial Emphasis, 16th ed., Pearson, chapter 11 (cost-plus pricing, target costing, and the markup-margin identity).
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled