Calculators
Margin Calculator
Profit margin vs markup done right — and the price for any target margin.
Updated July 10, 2026
How to use the margin calculator
- 1Enter your true cost — item plus fees and shipping.
- 2Add the selling price to analyze, or a target margin to price.
- 3Read margin and markup side by side, labeled.
- 4Pricing mode uses cost ÷ (1 − margin) — the correct formula.
Common uses
- Pricing resale inventory for a real target margin after fees
- Checking what a sale actually earned once everything's counted
- Translating a supplier's markup language into margin
- Quoting client work with a defensible margin built in
Frequently asked questions
What's the difference between margin and markup?
Same profit, different denominator. Margin divides profit by the selling price; markup divides it by cost. A $60 item sold at $100: $40 profit = 40% margin = 67% markup. They diverge more as prices rise — 50% margin is 100% markup. The practical rule: accountants, investors, and 'gross margin' reports speak margin; 'keystone pricing' and supplier talk is often markup. Know which one a number is before you act on it.
How do I price for a target margin?
Divide, don't multiply: price = cost ÷ (1 − margin). For a 40% margin on a $60 cost: 60 ÷ 0.60 = $100. The intuitive-but-wrong move — multiplying by 1.40 — gives $84, which is actually a 28.6% margin, an 11-point silent haircut on every sale. This single formula error is endemic in small ecommerce, and compounded across a year of sales it's the difference between a business and a hobby.
What should count as 'cost'?
Everything that leaves with the sale: item cost, inbound shipping, packaging, platform fees, payment processing, and outbound shipping you're covering. For marketplace resellers this is where paper margins evaporate — a $100 eBay sale carries roughly 13–14% in fees before your item cost enters, so a shoe bought at $50 and sold at $100 isn't a 50% margin; after ~$14 fees and ~$12 shipping it's closer to 24%. Compute margin on the real number or the number lies to you.
What's a good profit margin?
Wildly industry-dependent, so ignore universal answers: groceries run 1–3% net, restaurants 3–9%, retail commonly 20–50% gross, software 70–90% gross. For reselling physical goods, experienced flippers typically want 30%+ margin after all fees or the time isn't worth it — with the caveat that fast 20% turns can beat slow 50% ones, because margin ignores velocity. Margin is a health metric; margin × turnover is the business.
About this tool
The margin calculator works both directions: enter cost and selling price to see profit, margin, and markup side by side — or enter cost and a target margin to get the correct selling price, using the divide-not-multiply formula (cost ÷ (1 − margin)) that most sellers get wrong. Margin and markup are the most consequential confusion in small-business pricing: a 40% markup is only a 28.6% margin, and pricing by the wrong one quietly underprices everything you sell. Built with resellers in mind — the footer math includes what platform fees do to real margins.
Like most tools on UtilityBase, the margin calculator runs entirely in your browser — nothing you enter is uploaded or stored on a server. It's free to use with no account required. Browse more calculators here.
Was this tool helpful?
Related tools
Percentage Increase Calculator
The percent change between two numbers — with the formula shown, traps explained.
Calculators
ROI Calculator
Return on investment — total, profit, multiple, and the annualized rate that matters.
Calculators
Discount Calculator
Sale prices, percent off, stacked discounts, and reverse 'what % is this?' math.
Calculators
Sales Tax Calculator
Add sales tax to a price or back it out of a total — with state base rates.
Calculators
Mortgage Calculator
Monthly payment with taxes, insurance, PMI, and a full amortization schedule.
Calculators
Scientific Calculator
Full scientific calculator — trig, logs, powers, factorials, with keyboard input.
Calculators