Profit Margin & Markup Calculator
Margin and markup are the most-confused pair in pricing, and the confusion costs real money: a seller who wants a 25% margin but applies a 25% markup ends up with only a 20% margin — silently giving away a fifth of the intended profit on every sale. This calculator is a five-way solver: enter any two of cost, selling price, profit, margin, or markup, and it computes the rest, with a correct reverse-pricing formula (divide by 1 minus margin, never multiply by 1 plus margin) and a net-margin add-on for operating expenses. Amounts display in US dollars; the math works for any currency.
Enter any two values — the other three are computed from your two most recently edited fields (currently solving from Cost ($) and Margin (%)).
How to use the profit margin & markup calculator
- Enter any two values — for example cost $800 and target margin 20%. The other three fields fill in automatically (price $1,000, profit $200, markup 25%).
- The two fields marked “input” are the ones being solved from; editing any field makes it one of the inputs.
- To reverse-price from a target margin, enter cost and margin — the tool uses price = cost ÷ (1 − margin), not the classic cost × (1 + margin) error.
- If price is below cost, the result shows a loss in red — that's information, not an input error.
- Add per-unit operating expenses in the net-margin box to see profit after overheads, not just after the cost of goods.
The 25%-markup-equals-20%-margin example
Cost $800. Apply a 25% markup: price = 800 × 1.25 = $1,000. Profit $200. Now compute the margin: 200 ÷ 1,000 = 20%. Same transaction, two different percentages — because margin divides by the price and markup divides by the cost. If your business plan needs a 25% margin and your spreadsheet applies a 25% markup, every sale silently under-earns by 5 percentage points of revenue. On $500,000 of annual sales that is $25,000 of missing gross profit.
Margin ⇄ markup conversion table
Conversion formulas: markup = margin ÷ (1 − margin); margin = markup ÷ (1 + markup).
| Margin | Equivalent markup | Price for $100 cost |
|---|---|---|
| 10% | 11.1% | $111.11 |
| 15% | 17.6% | $117.65 |
| 20% | 25.0% | $125.00 |
| 25% | 33.3% | $133.33 |
| 30% | 42.9% | $142.86 |
| 35% | 53.8% | $153.85 |
| 40% | 66.7% | $166.67 |
| 45% | 81.8% | $181.82 |
| 50% | 100.0% | $200.00 |
| 55% | 122.2% | $222.22 |
| 60% | 150.0% | $250.00 |
Note how the gap accelerates: at 20% margin the markup is 25%, but at 50% margin the markup is already 100%, and at 60% margin it is 150%.
Frequently asked questions
What is the difference between margin and markup?
Both describe the same profit, divided by different bases. Margin = profit ÷ selling price; markup = profit ÷ cost. Buy at $800, sell at $1,000: profit is $200, margin is 200 ÷ 1,000 = 20%, markup is 200 ÷ 800 = 25%. Markup is always the larger number for any profitable sale, and the gap widens as percentages rise — a 50% margin corresponds to a 100% markup.
How do I price for a target margin? (The formula people get wrong.)
Use price = cost ÷ (1 − margin). For a 25% margin on a $600 cost: 600 ÷ 0.75 = $800. The common error is cost × 1.25 = $750 — check it: profit $150 ÷ price $750 = 20% margin, not 25%. Multiplying by (1 + margin) applies the percentage to the wrong base (cost instead of price) and always undershoots; the shortfall grows with the target — at a “60% margin” the multiplication error delivers only 37.5%.
Why is a margin of 100% or more impossible?
Margin is profit as a share of the selling price. For margin to reach 100%, profit would have to equal the entire price, meaning the item cost you nothing; beyond 100% the cost would be negative. When people say “I made 200% on that”, they almost always mean markup (profit ÷ cost), which has no upper bound. The calculator blocks margin inputs of 100%+ and explains the conversion instead of producing a nonsense price.
What's the difference between gross margin and net margin?
Gross margin deducts only the direct cost of the goods sold. Net margin also deducts operating expenses — rent, salaries, marketing, payment-processing fees, shipping. A product with a healthy 40% gross margin and $250 of allocated overheads on a $1,000 price nets only 15%. Pricing decisions made on gross margin alone are how businesses grow revenue while losing money.
What is a good profit margin?
It depends heavily on the industry, and any benchmark is an estimate: grocery retail often runs 1–3% net, restaurants 3–9%, consumer electronics retail 2–5%, apparel 4–13%, software and SaaS frequently 70%+ gross with widely varying net. Compare against your own sector and channel, not a universal number — a 10% net margin is weak for software and exceptional for a supermarket.
Should I price up from cost or down from the market?
Cost-plus (cost ÷ (1 − target margin)) guarantees each sale is profitable but ignores what buyers will pay — you may leave money on the table or price yourself out. Market-based pricing starts from the competitive price and works backwards: at a market price of $1,000 and a required 30% margin, your landed cost must not exceed $700. In practice use both: the market sets the ceiling, your cost plus minimum margin sets the floor, and if the floor exceeds the ceiling the product isn't viable. One US-specific note: do margin math on the pre-tax price — sales tax is added at the register and passed through to the state, so it belongs in neither your price base nor your cost.
Related tools
- Sales Commission CalculatorCalculate sales commission instantly — flat rate, tiered plans, and broker splits — with the effective rate and take-home after every cut.
- Stripe & Square Fee CalculatorCalculate Stripe and Square fees and your net payout — standard, international, and currency conversion — plus reverse gross-up pricing.
- PayPal Fee CalculatorCalculate PayPal fees for any amount and reverse the math — see exactly what to invoice so you receive your full target after fees and charges.
- Freelance Hourly Rate CalculatorCalculate your freelance hourly rate from target income, billable hours, expenses, and time off — and see your day rate and project pricing.
- Sales Tax CalculatorCalculate sales tax instantly: enter a price and rate to get tax and total, or back tax out of a tax-inclusive price. State rate presets included.
- Rent Receipt GeneratorGenerate printable rent receipts in seconds — enter tenant, landlord, and rent once and download every month as one signature-ready PDF.
Learn more
- Margin vs. Markup: The Difference That Quietly Costs You MoneyMarkup is over cost, margin is over price. Confusing them under-prices your products. See the formulas, a conversion table, and why 25% markup is only 20% margin.
- Stripe vs. PayPal Fees: What You Actually KeepStripe and PayPal both run about 2.9% + 30¢ on card payments, but the fixed fee guts small transactions. See how fees really work and how to price around them.