Audited ·Last updated 27 Jul 2026·6 citations·Tier 1·0 uses

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

Solve For
Your landed unit cost — what you actually paid the supplier including freight and duty. Required unless solving for Cost.
$
The price you charge the customer, exclusive of sales tax or VAT. Required unless solving for Price.
$
Markup as a percent of cost, not of price. A 25% markup on $80 = $20 of margin and a $100 selling price. Required unless solving for Markup.
%
Markup %
25.00
Profit as a percentage of cost: (price - cost) / cost x 100. The retailer's number — how much you are marking up above wholesale.
Gross Margin %
20.00%
Gross Profit
$20.00
Cost
$80.00
Selling Price
$100.00

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

Markup = (P−C) ⁄ C ; Margin = (P−C) ⁄ P

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.

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.

cost80
price100
solve Formarkup

Frequently asked questions.

What is the difference between markup and margin?
Markup and gross margin both describe the gap between cost and selling price, but they divide that gap by different denominators. Markup % = profit / cost x 100, expressed as a percentage of what you paid. Gross margin % = profit / price x 100, expressed as a percentage of what the customer paid. The dollar profit in the numerator is identical; only the denominator differs. Because price is always larger than cost on a profitable sale, the markup percentage is always larger than the margin percentage for the same transaction. A $20 profit on an $80 cost and a $100 price is simultaneously a 25% markup (20/80) and a 20% gross margin (20/100). Retailers, buyers, and merchandisers usually speak markup because their pricing decisions begin with a known cost. Accountants, investors, and analysts speak gross margin because the income statement begins with revenue at the top. Both are correct; neither is interchangeable. Kotler's Marketing Management and the Brealey/Myers/Allen Principles of Corporate Finance both make this distinction explicit because confusing the two is the single most common pricing mistake in small-business finance.
What is the formula to convert markup to margin and back?
The two percentages are linked by a closed-form algebraic identity. To convert markup (as a decimal) to margin: margin = markup / (1 + markup). To convert margin (as a decimal) to markup: markup = margin / (1 - margin). Worked examples: a 25% markup converts to 0.25 / 1.25 = 0.20 = 20% margin. A 50% markup converts to 0.50 / 1.50 = 0.3333 = 33.33% margin. A 100% markup (keystone pricing) converts to 1.00 / 2.00 = 0.50 = 50% margin. Going the other direction, a 40% target margin requires 0.40 / 0.60 = 0.6667 = 66.67% markup. A 60% target margin requires 0.60 / 0.40 = 1.50 = 150% markup. This identity is why margin can never reach 100% — that would require dividing by zero in the markup formula, which corresponds economically to a zero-cost product. The Harvard Business Review pricing series and standard cost-accounting textbooks (Horngren) both publish this conversion table because it is the most queried single fact in pricing strategy.
What is keystone pricing and why is it 100% markup?
Keystone pricing is the traditional retail rule of pricing an item at exactly double the wholesale cost, which corresponds to a 100% markup and — by the markup-to-margin identity — exactly a 50% gross margin. The term predates modern cost accounting and survives because it is mathematically clean: doubling the cost requires no algebra at the cash register, and the resulting 50% margin is large enough to absorb typical retail operating expenses (rent, payroll, shrink, returns) and still leave a positive net margin. The National Retail Federation's benchmark data shows that traditional apparel and home-goods retailers historically targeted gross margins in the 45-55% band, which is the keystone range. Modern ecommerce and big-box retail have largely abandoned strict keystone because high-volume SKUs can profitably run at lower margins and luxury or specialty SKUs can sustain higher ones, but the keystone heuristic is still taught as the baseline assumption for indie retail and craft commerce. Triple keystone (3x cost, equivalent to 200% markup and 66.67% gross margin) is the analogous shorthand for higher-touch categories like jewelry, fragrance, and gift items.
How do I work backwards from a target gross margin to a selling price?
This is the reverse-pricing workflow and it is the single most useful pricing calculation for founders setting prices for the first time. The formula is price = cost / (1 - margin), where margin is expressed as a decimal. If your cost is $80 and your CFO requires a 40% gross margin, the selling price is 80 / (1 - 0.40) = 80 / 0.60 = $133.33. The common mistake is to multiply cost by (1 + margin) instead of dividing by (1 - margin) — that produces $80 x 1.40 = $112, which is a 28.57% margin, not 40%. The mistake comes from confusing markup with margin: 40% markup on $80 is $112, but 40% margin on $80 cost requires $133.33. To use this Quanta calculator for reverse-pricing, first convert your target margin to its markup equivalent using markup = margin / (1 - margin), then set Solve For = Selling Price and enter the cost and the markup. The tool returns the correct selling price plus confirmation of the realized margin.
Why can gross margin never exceed 100% but markup can?
Gross margin is profit divided by price, and profit can never be larger than price in any real transaction — at most, profit equals price, which would require the cost to be zero. So the margin ratio is bounded above by 1.0 (100%), and reaches 100% only in the impossible limit of a free product. Markup, by contrast, is profit divided by cost. Cost can be tiny relative to price — think of a $0.50 manufacturing cost on a $50 luxury item — and the resulting markup can run into the thousands of percent without anything breaking in the math. That same $0.50 cost and $50 price is a 9,900% markup but only a 99% gross margin. Software and digital goods routinely produce markups in the thousands of percent because the marginal cost of production is near zero, and the corresponding gross margins approach but never reach 100%. This asymmetry is why software businesses always quote gross margin (which has a tight, comparable scale) rather than markup (which can be a five-digit percentage and convey nothing useful to an investor).
What is the difference between gross margin and net margin?
Gross margin is the profit left after subtracting only the direct cost of goods sold (COGS) — the wholesale cost, freight, duty, and any directly attributable production costs — from revenue, expressed as a percentage of revenue. Net margin is the profit left after subtracting everything: COGS plus operating expenses (rent, payroll, marketing, software), interest, taxes, and any non-operating items. A healthy ecommerce business might have a 60% gross margin but only a 5-10% net margin after Meta ads, fulfillment, customer service, and overhead. The U.S. Census Bureau's Annual Retail Trade Survey publishes industry-level gross margin benchmarks; the typical traditional retailer runs a 25-45% gross margin and a 2-5% net margin. This calculator returns the gross margin only — the input cost field represents COGS, not all-in operating cost. To estimate net margin, subtract your operating-expense ratio from the gross margin percentage returned here. Brealey/Myers/Allen's Principles of Corporate Finance covers this distinction in detail in their chapter on financial analysis.
What is a typical markup or gross margin by industry?
Industry benchmarks vary enormously. National Retail Federation and U.S. Census Annual Retail Trade Survey data show grocery and supermarkets at 25-30% gross margin (low-margin, high-volume), apparel at 45-55% (traditional keystone), specialty and luxury retail at 55-70%, restaurants at 60-70% on food cost but 5-10% on net, software-as-a-service at 70-85%, jewelry and fragrance at 60-80%, automobile dealers at 8-12% on new vehicles and 25-40% on parts and service, and bookstores at 30-40%. Within each category, premium brands run higher and discount operators run lower. The Harvard Business Review's pricing-strategy archive consistently emphasizes that benchmark percentages should anchor decisions but not dictate them — a calculator should be paired with willingness-to-pay research and competitive analysis. Use this tool to compute your own margin, then compare against industry benchmarks to flag SKUs that are systematically under-priced or over-priced relative to peers.
Why does my answer change depending on whether I enter markup or margin?
Because they are different percentages of different denominators. If you enter 25 in the markup field, the tool interprets it as a 25% markup on cost — a $100 cost becomes a $125 selling price, a $25 profit, and a 20% gross margin. If you mistakenly meant 25% margin, you should have entered a 33.33% markup, which would produce a $133.33 selling price, a $33.33 profit, and the intended 25% margin. The $8.33 gap on a single unit is the cost of the markup-vs-margin confusion, and on a season of inventory it compounds into real money. Always verify which percentage you are entering before locking in a price. The Quanta calculator labels the input field as Markup % specifically to prevent this confusion — if you want to drive the calculation from a target margin, use the reverse-pricing workflow described in the FAQ above, or compute the markup-equivalent using the identity markup = margin / (1 - margin) before entering it.

References& sources.

  1. [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. [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. [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. [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. [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. [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).

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon