finance
Markup vs Margin Calculator: The Formulas, the Table, and the Pricing Error That Costs You Money
Markup vs margin calculator guide: the two formulas, a 10-300% conversion table, and the exact pricing error that underprices every SKU.
Published 2026-07-28 · 8 min read
Disclosures
Some links below are affiliate links — I may earn a commission from qualifying purchases at no extra cost to you. This article is informational only and is not financial, medical, or legal advice; consult a licensed professional for decisions specific to your situation.

TL;DR
- Markup % = (Price − Cost) ÷ Cost. Margin % = (Price − Cost) ÷ Price. Same profit dollar, different denominator. University of Vermont Extension
- A 50% markup is not a 50% margin — it's a 33.3% margin. Type the wrong one into a pricing sheet and every SKU underprices itself. Penn State Extension
- To hit a 25% margin target, you need a 33.33% markup on cost, not 25%. AccountingCoach
- Grocery retail runs on roughly 1.3% net margin; specialty retail runs 26–35% gross margin — same formula, wildly different stakes by vertical. NYU Stern
- Do the quick math with the percentage-calculator, then check discount and tax interactions with the discount-calculator and sales-tax-calculator.
You price a product at what you think is a 50% margin by tacking on a 50% markup. You just underpriced every SKU in that batch. A markup vs margin calculator matters because these are two different percentages measuring the same profit dollar against two different bases, and mixing them up is the most common pricing error in retail. Markup divides by cost. Margin divides by price. Get the base wrong and a "profitable" price is actually a loss waiting to surface at tax time.
What is the difference between markup and margin?
Markup measures profit against what you paid. Margin measures profit against what you charge. Same numerator, different denominator, and that gap is the entire source of confusion.
Markup % = (Price − Cost) ÷ Cost
Margin % = (Price − Cost) ÷ Price
University of Vermont Extension
Take an $0.80-cost item with an 18% markup applied: $0.80 + ($0.80 × 0.18) = $0.94. Run the same profit backward through the margin formula and you get a different number: $1.90 cost, target 35% margin, price = Cost ÷ (1 − Margin%) = $1.90 ÷ (1 − 0.35) = $2.92. University of Vermont Extension The margin denominator (price) is always bigger than the markup denominator (cost), which means markup is always the larger number for the same profit dollar. That's not a rounding quirk. It's baked into the math. Corporate Finance Institute
The same logic underlies how the SBA frames contribution margin for break-even planning: profit divided by price, not by cost. U.S. Small Business Administration
How do you convert markup to margin?
Here's what a given markup actually becomes in margin terms, from 10% to 300%:
| Markup % | Margin % |
|---|---|
| 10% | 9.1% |
| 20% | 16.7% |
| 25% | 20.0% |
| 33.33% | 25.0% |
| 50% | 33.3% |
| 66.7% | 40.0% |
| 100% | 50.0% |
| 150% | 60.0% |
| 300% | 75.0% |
Notice the gap widens as the numbers climb. At a 10% markup the two are nearly identical. At a 300% markup (quadrupling your cost), margin only reaches 75%. Margin creeps toward 100% but never gets there, no matter how aggressively you mark up. If your numbers fall between rows, run them through the percentage-calculator directly; markup and margin are both just percentage-change math with a different base.
How much does the 50% markup-vs-margin mistake cost?
A retailer who wants a 50% margin and applies a 50% markup instead underprices by 25% of the revenue they intended to earn on every unit.
Say an item costs $60. A 50% markup prices it at $60 × 1.50 = $90. Actual margin on that sale: ($90 − $60) ÷ $90 = 33.3%, not the 50% the retailer thought they'd locked in. To genuinely hit a 50% margin, the required markup was 100%: $60 × 2.00 = $120, margin = ($120 − $60) ÷ $120 = 50%. That's a $30-per-unit shortfall, a 25% revenue gap versus the intended price, silently baked into every sale.
This isn't a one-off. Penn State Extension runs the same trap on a $5.00-cost item: a 30% markup prices it at $6.50, but the resulting profit margin is only 23% — "you are losing almost 1/4 of your gross profits." Penn State Extension Run it the other direction and the gap still shows up: to land a 25% gross margin on a $75-cost item, AccountingCoach's worked math requires a 33.33% markup, not 25%. AccountingCoach Three different examples, three different numbers, one consistent lesson: markup and margin are never interchangeable at the same percentage.
Why do the stakes differ so much by vertical?
Because margin is measured against price, a small pricing slip eats a much bigger share of profit in a low-margin business than a high-margin one.
NYU Stern's industry data (Aswath Damodaran, data as of January 2026) puts U.S. grocery retail at a 26.31% gross margin but just a 1.32% net margin. General retail runs 33.18% gross and 5.61% net. Specialty retail sits at 35.30% gross and 5.19% net. NYU Stern School of Business A grocer operating on roughly one cent of net profit per dollar of sales has almost no room to absorb a markup/margin mixup. A few points of pricing error can erase the entire year's profit. A specialty retailer with more gross-margin cushion can absorb the same mistake and still turn a profit, though it still shows up as lost money on the P&L either way.
Where does the math break in practice?
Spreadsheet field confusion. The most common error is typing a markup percentage into a cell or a POS field labeled "margin," or the reverse. Because markup is always the bigger number, using it as if it were margin always understates your true intended profit — you'll set prices lower than you meant to, every time. Penn State Extension
Negative margin. If actual cost ever climbs above the shelf price (a clearance markdown, a shipping-cost spike, a supplier price increase you forgot to pass on), margin turns negative and markup becomes undefined or negative too. Most basic calculators won't flag this; they'll just spit out a nonsensical number and move on. Check any result that comes back negative before trusting it.
Tax and discount stacking. Two separate traps here. First: if you compute margin off the original list price instead of the actual price the customer paid after a discount, you overstate your real margin. Run the discounted price through the discount-calculator first, then compute margin on that number. Second: sales tax collected at checkout is never retailer revenue, so it should never enter either side of a margin or markup calculation — the IRS requires cost of goods sold and gross profit to be computed separately from tax collection for exactly this reason. IRS Schedule C instructions Verify what a listed price actually includes with the sales-tax-calculator before it leaks into your cost or price inputs.
When should you use markup vs margin?
- Setting a price from a known cost? Use markup. It's the number you multiply against cost to land on a shelf price.
- Reporting or comparing profitability? Use margin. Industry benchmarks (like the NYU Stern data above) and most accounting statements report margin, not markup, because it's measured against revenue.
- Reading a report from your POS or accounting software? Confirm which base the percentage uses before you act on it. A "profit %" field with no documentation could be either.
Bottom line: Use markup to set prices from cost, and margin to judge profitability or compare against industry benchmarks. Never assume a number from one system means the same thing in another — a 50% markup is a 33.3% margin, not a 50% margin, and that gap is real money.
FAQ
Is markup the same as profit percentage?
No. "Profit percentage" is ambiguous by itself, it could mean markup (profit ÷ cost) or margin (profit ÷ price), and people use the term loosely for either. Markup and margin share the same profit dollar but divide by different bases, so ask which denominator someone means before treating any "profit %" figure as usable. University of Vermont Extension
How do I convert markup to margin quickly?
Margin % = Markup % ÷ (1 + Markup %). A 50% markup becomes 50 ÷ 1.5 = 33.3% margin. To go the other way, Markup % = Margin % ÷ (1 − Margin %): a 25% margin needs 25 ÷ 0.75 = 33.33% markup, matching AccountingCoach's worked example. AccountingCoach
What margin should a retail business aim for?
It depends entirely on the vertical. NYU Stern's industry data puts general retail gross margin at 33.18% and specialty retail at 35.30%, while grocery runs a much thinner 26.31% gross margin and just 1.32% net. NYU Stern School of Business There's no universal target number; compare your margin against your specific category, not retail as a whole.
Why is my margin negative even though I priced above cost?
Check whether tax or a discount snuck into the calculation. Margin should use the actual price the customer paid (after any discount) and should never include sales tax collected at checkout, since tax isn't retailer revenue. IRS Schedule C instructions If margin still comes out negative after excluding those, your true cost has exceeded your price. Verify with a fresh cost estimate before running the numbers again.
Does sales tax count toward markup or margin?
No. Sales tax is collected on behalf of a taxing authority and passed through, not kept as retailer revenue, so it belongs in neither the cost side nor the price side of a markup or margin calculation. IRS Schedule C instructions Use the sales-tax-calculator to separate tax from the actual sale price before computing either percentage.
This article is for informational purposes only and does not replace advice from an accountant or financial professional. Actual margins vary by vertical, discounting structure, and cost base.




