Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Pricing & Markup Calculators / 20 Percent Margin Calculator
Pricing & Markup Calculators

20 Percent Margin Calculator

Published onOctober 16, 2025 Updated onNovember 1, 2026 5:17 am

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.

20 Percent Margin Calculator
Set the exact selling price for any target gross margin
Selling price
0
Gross profit per unit0
Total profit (all units)0
Equivalent markup on cost0
Check: margin = profit ÷ price0
Profit ÷ selling price equals your target margin exactly. The markup equivalent is what you would apply in a spreadsheet that only supports markup pricing.
Run the numbers

Quick Answer

Quick answer: To price for a 20% gross margin, divide your cost by 0.80: price = cost ÷ (1 − 0.20). On a $45 cost that gives a $56.25 selling price, $11.25 profit per unit, and the equivalent of a 25% markup on cost. The classic error is adding 20% to cost ($54), which only yields a 16.7% margin.

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.
On this page
  • 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:

The formulas: Selling price = cost ÷ (1 − margin as a decimal). Profit = price − cost. Markup on cost = profit ÷ cost × 100. Check = profit ÷ price × 100 (this equals your target margin). A 20% margin always corresponds to a 25% markup, because 0.25 ÷ 1.25 = 0.20.

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:

FigureValue
Product cost$45.00
Target margin20%
Selling price$56.25 ($45 ÷ 0.80)
Gross profit per unit$11.25
Equivalent markup on cost25.00%
Check: profit ÷ price20.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.

$56.25
Correct 20% margin price on a $45 cost
$54.00
Naive price: only 16.7% real margin
$2.25
Profit lost per unit by the naive method
25.00%
Markup needed for a true 20% margin
The $80 test: the pricing error in dollars. Take a product that costs $80. The correct 20% margin price is $80 ÷ 0.80 = $100, a $20 profit. Price it the tempting way, by adding 20% ($80 × 1.20 = $96), and the margin is ($96 − $80) ÷ $96 = 16.67%, not 20%. You lose $4 of profit on every unit, which is $400 per 100 units sold. If your spreadsheet or till only supports markup, use the equivalent 25% markup instead: a markup percent calculator handles that side of the pair, and a reverse margin calculator covers any target percentage beyond 20%.

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:

CostPrice for 20% marginProfit per unitMarkup applied
$5$6.25$1.2525%
$10$12.50$2.5025%
$25$31.25$6.2525%
$50$62.50$12.5025%
$80$100.00$20.0025%
$100$125.00$25.0025%
$250$312.50$62.5025%
$500$625.00$125.0025%
$1,000$1,250.00$250.0025%

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 marginDivide cost byPrice on $100 costEquivalent markup on costProfit
10%0.90$111.1111.11%$11.11
20%0.80$125.0025.00%$25.00
30%0.70$142.8642.86%$42.86
40%0.60$166.6766.67%$66.67
50%0.50$200.00100.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

Embed the 20 Percent Margin Calculator on your own site. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

References

  1. SBA, "Manage your finances" - guidance for small businesses on knowing unit costs and pricing fundamentals. SBA: Manage your finances. Accessed October 2026.
  2. SBA, "Calculate your startup costs" - categorizing costs before setting prices and margins. SBA: Calculate your startup costs. Accessed October 2026.
  3. 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.
  4. 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.
  5. Bplans, "Profit margin definition" - glossary definition of gross and net profit margin used in business planning. Bplans: Profit margin definition. Accessed October 2026.
  6. SCORE, "Blog" - SCORE's small-business guidance library, including pricing and profitability articles from experienced mentors. SCORE: Small business blog. Accessed October 2026.

Related calculators

Pricing & Markup Calculators Material Markup CalculatorPrice your materials correctly, in either direction.Pricing & Markup CalculatorsMarkup Percent CalculatorMarkup percentage is the share you add on top of cost to reach a selling price, and it is the fastest sanity...Pricing & Markup CalculatorsJewelry Markup CalculatorJewelry pricing lives or dies on markup math. The industry standard is keystone: double the cost for retail.Pricing & Markup CalculatorsCost Plus Calculator Pricing by gut feel fails in both directions: too low and every sale quietly loses money once fees and shipping land, too high and buyers walk.Pricing & Markup CalculatorsNegative Margin CalculatorSelling a product for less than it costs is easy to do by accident and expensive to leave unnoticed: when the margin is negative, every sale deepens the loss instead of diluting it.Pricing & Markup CalculatorsMargin Loss CalculatorA margin loss is easy to feel and hard to size up: costs creep, discounts stack, and the share of each sale you keep quietly shrinks.

We use cookies to analyze traffic. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy Affiliate Disclosure FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search