20 Percent Margin Calculator
Many sellers make the mistake that quietly eats thousands of dollars from small businesses: they add 20% to their cost and assume they have a 20% margin. On a $45 product, adding 20% gives $54 and a margin of just 16.7%, not 20%. That gap is the difference between profit you planned for and profit you actually get, and it compounds across every unit you sell.
The 20 Percent Margin Calculator below does the right math. Enter your product cost and a target margin (default 20%), and it returns the exact selling price with the formula price = cost ÷ (1 − margin). At a $45 cost and 20% margin that is $56.25, a $11.25 profit per unit, and the equivalent 25% markup on cost. The margin-vs-markup comparison table further down shows exactly where naive adding goes wrong.
Quick Answer
Key takeaways
- Margin is profit ÷ selling price; markup is profit ÷ cost. They are never the same number.
- A 20% margin always needs a 25% markup. Divide cost by 0.80, never add 20% to cost.
- The tool lets you set any target margin, not just 20%, with a one-click margin-vs-markup check.
- Margin arithmetic covers gross profit only: overhead, card fees, and returns come off later.
- Quick Answer
- Why the margin you think you have is not the margin you have
- The price-for-margin formula, step by step
- Worked example, checked against this exact tool
- Cost to required price at exactly 20% margin
- The margin-vs-markup conversion table
- Why 20% is the benchmark everyone targets
- What this calculator covers, and why each part matters
- Frequently asked questions
- Add This Calculator to Your Website
- References
Why the margin you think you have is not the margin you have
The most expensive pricing mistake in small retail is adding the margin percentage to cost. Take a $45 wholesale product: adding 20% gives $54, and most people stop there convinced they have a 20% margin. The actual math is ($54 − $45) ÷ $54 = 16.7%. That missing 3.3 percentage points is pure profit you thought you were collecting but never charged.
The reason is geometry, not malice. Margin divides profit by the selling price, and the selling price is bigger than the cost, so margin is always the smaller of the two numbers for the same dollars of profit. According to the SBA's guidance on managing small business finances, knowing your numbers at the unit level is the foundation of sound pricing. The formula below is the one serious pricing teams memorize, and this calculator simply automates it.
The price-for-margin formula, step by step
The math runs backward from most people's instinct: you divide cost by (1 − margin), not multiply. Here is the full procedure the calculator follows:
Three lines is all it takes. Express the margin as a decimal (20% becomes 0.20), subtract it from 1 (1 − 0.20 = 0.80), and divide the cost by that number ($45 ÷ 0.80 = $56.25). The division works because it solves the equation backwards: you want profit to be exactly 20% of the price you charge, and dividing by 0.80 is the only price that makes it true. For a business that tracks ratios closely, a profit ratio calculator keeps the whole picture in one place.
Worked example, checked against this exact tool
Enter the pre-filled defaults ($45 cost, 20% target margin) and click Calculate. Here is what the tool returns, verified against the underlying code:
| Figure | Value |
|---|---|
| Product cost | $45.00 |
| Target margin | 20% |
| Selling price | $56.25 ($45 ÷ 0.80) |
| Gross profit per unit | $11.25 |
| Equivalent markup on cost | 25.00% |
| Check: profit ÷ price | 20.00% |
Compare with the naive approach: adding 20% to $45 gives $54.00 with only $9.00 of profit, a 16.67% margin, and a 20.00% markup. The naive price leaves $2.25 of profit per unit on the table. On 1,000 units a month, that is $2,250 of planned profit that never materializes. Change the margin input to 30% and the tool gives $64.29 with a 42.86% markup; set it to 40% and you get $75.00 with a 66.67% markup. Businesses that serve client work at project level should also keep a agency profit calculator nearby, because labor margins behave very differently from product margins.
Cost to required price at exactly 20% margin
At a fixed 20% target the conversion is a straight multiplier (cost × 1.25), so a lookup table is faster than a calculator for catalogue work:
| Cost | Price for 20% margin | Profit per unit | Markup applied |
|---|---|---|---|
| $5 | $6.25 | $1.25 | 25% |
| $10 | $12.50 | $2.50 | 25% |
| $25 | $31.25 | $6.25 | 25% |
| $50 | $62.50 | $12.50 | 25% |
| $80 | $100.00 | $20.00 | 25% |
| $100 | $125.00 | $25.00 | 25% |
| $250 | $312.50 | $62.50 | 25% |
| $500 | $625.00 | $125.00 | 25% |
| $1,000 | $1,250.00 | $250.00 | 25% |
In a spreadsheet the same math is three short formulas. With cost in A2 and price in B2: price for a 20% margin is =A2/(1-0.2); margin is =(B2-A2)/B2; markup is =(B2-A2)/A2. If you also plan to discount from the margin price, a margin discount calculator shows the margin that survives the discount, which is where catalogue pricing usually breaks.
The margin-vs-markup conversion table
The key visual on this page. Read it as: the left column is what you want, the right column is what you must actually apply to cost. Memorize the 20% and 50% rows and you will never price wrong again:
| Target margin | Divide cost by | Price on $100 cost | Equivalent markup on cost | Profit |
|---|---|---|---|---|
| 10% | 0.90 | $111.11 | 11.11% | $11.11 |
| 20% | 0.80 | $125.00 | 25.00% | $25.00 |
| 30% | 0.70 | $142.86 | 42.86% | $42.86 |
| 40% | 0.60 | $166.67 | 66.67% | $66.67 |
| 50% | 0.50 | $200.00 | 100.00% | $100.00 |
Two patterns jump out. First, markup accelerates: the gap between margin and markup grows as the margin climbs, which is why a 50% margin (the classic keystone double-your-cost rule) needs a full 100% markup. Second, margin can never reach 100%, but markup has no ceiling. Sellers on marketplaces with percentage fees face the same math in reverse; an Amazon sale calculator shows how fees shrink the realized margin after the price is set.
Why 20% is the benchmark everyone targets
Twenty percent shows up everywhere because it sits at a useful intersection: high enough to absorb normal returns and discounts, low enough to stay competitive in most categories. Common retail wisdom holds that a 10% net margin is average and 20% is good, though healthy numbers vary a lot by industry. The calculator's margin input is editable for exactly this reason: grocery needs single digits, software takes far more.
One more trap: card fees and discounts come out of your margin. A $56.25 sale at a 20% margin holds $11.25 of profit, but a 3.5% card fee takes $1.97 and a 10% sale coupon removes $5.63 from the top line, dropping the realized margin sharply. If fees matter in your mix, run them through a credit card fee calculator before you finalize prices. Food businesses have their own versions of this problem: a food truck profit calculator or an ice cream profit calculator folds wastage and per-serving cost into the same margin logic.
Why margin-based pricing works
- Guarantees a fixed share of every sale stays as profit
- Comparable across products with different costs
- Scales correctly when costs change
Where it needs care
- Ignores what competitors actually charge
- Gross margin excludes overhead, fees, and returns
- High targets can price you out of the market
What this calculator covers, and why each part matters
This page is built around the reverse-pricing job itself: you know the cost and the target, and you want the price.
Price from cost and target. Enter your product cost and a target margin, pre-set at 20%, and the tool returns the exact selling price with the formula price = cost ÷ (1 − margin).
Quantity for total profit. Enter how many units you expect to sell and the tool totals the profit across all of them.
Both tables on the page. A cost-to-required-price table at exactly 20% margin and a margin-vs-markup conversion table sit alongside the tool.
The markup warning, priced in dollars. Adding 20% to cost gives a 20% markup, not a 20% margin: a 20% markup ($96 on an $80 cost) is only a 16.67% margin. The $80 test above prices that mistake in dollars per unit and per 100 units.
A check row on every answer. The result carries a margin = profit ÷ price check, so profit divided by the selling price equals your target margin exactly.
Why 20% is the benchmark. The page also explains why 20% is the target so many sellers aim for, so the preset is a benchmark with a reason, not just a default.
For pricing that starts from a markup instead of a margin, the cost-plus calculator prices from the cost upward.
Frequently asked questions
Price = cost ÷ (1 − 0.20), or simply cost ÷ 0.80. On a $45 cost that is $45 ÷ 0.80 = $56.25, with $11.25 of profit per unit. The check row (profit ÷ price) confirms the margin is exactly 20%.
Margin divides profit by the selling price; markup divides the same profit by the cost. On a $45 cost sold at $56.25, the margin is 20% and the markup is 25%. Because the selling price is larger than the cost, margin is always the smaller percentage for the same dollars of profit.
Adding 20% to a $45 cost gives $54.00. The profit is $9.00, and $9.00 ÷ $54.00 = 16.7%. You applied a 20% markup, not a 20% margin. To get a true 20% margin you must divide by 0.80, giving $56.25.
A 25% markup on cost. The conversion is markup = margin ÷ (1 − margin), so 0.20 ÷ 0.80 = 0.25. If your system only supports markup pricing, apply 25% and the margin will land exactly at 20%.
Yes. Change the target margin input to any number below 100. A 30% margin on $45 gives $64.29 (42.86% markup); a 40% margin gives $75.00 (66.67% markup). The check row always confirms the margin arithmetic.
As a rough rule, a 20% net margin is considered good and 10% average, but healthy margins vary widely by industry. Grocery and commodity retail survive on single digits; software and services aim much higher. Use this calculator for the gross-margin math, then layer your overhead and fees on top.
No. It computes the gross margin before fees, shipping, returns, and discounts. Card fees, coupons, and returns all reduce the realized margin, so price the margin first with this tool, then adjust for fees before you finalize the selling price.
Add This Calculator to Your Website
References
- SBA, "Manage your finances" - guidance for small businesses on knowing unit costs and pricing fundamentals. SBA: Manage your finances. Accessed October 2026.
- SBA, "Calculate your startup costs" - categorizing costs before setting prices and margins. SBA: Calculate your startup costs. Accessed October 2026.
- IRS, "Business taxes" - the tax framework small businesses operate in when margin and pricing decisions interact with tax obligations. IRS: Business taxes. Accessed October 2026.
- NerdWallet, "Profit margin: definition, types, and how to calculate it" - plain-English definitions of margin and markup with worked examples. NerdWallet: Profit margin explained. Accessed October 2026.
- Bplans, "Profit margin definition" - glossary definition of gross and net profit margin used in business planning. Bplans: Profit margin definition. Accessed October 2026.
- SCORE, "Blog" - SCORE's small-business guidance library, including pricing and profitability articles from experienced mentors. SCORE: Small business blog. Accessed October 2026.
