Profit Margin & Markup Calculator
Cost in, price in — gross profit, margin and markup out. Work out what you actually keep on every sale, or flip to reverse mode and find the price a target margin demands. Free, no signup, calculated instantly in your browser.
Your numbers
Type and every result updates instantly.
Tip: build an honest unit cost first with the FBA profit calculator — a margin computed on product cost alone is not the margin you keep.
Your margin
Based on your numbers above.
Margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost. Same profit, different denominator — that is why a 60% margin and a 150% markup can describe the same sale.
Fee sources: no marketplace schedule governs this calculation — it runs entirely on your own costs. Confirm current referral and fulfilment fees in Seller Central or your marketplace's fee pages before pricing.
Rates checked on 4 December 2026
Next step: see our ecommerce management service, or book a free audit of your product economics.
How to use this calculator
Enter your unit cost
Everything one unit costs you — product, inbound freight, marketplace fees, fulfilment and packaging. Not just the factory price.
Enter the price — or the margin
In price mode, type your selling price. In reverse mode, type the margin you want and the tool finds the price that delivers it.
Read margin and markup
Margin tells you what share of each sale you keep; markup tells you how much you added to cost. Use margin for decisions, markup for pricing conversations.
Margin vs markup — the mix-up that quietly eats profit
Margin and markup describe the same sale from opposite sides, and confusing them is the most common pricing mistake in ecommerce. Margin divides profit by the selling price: it answers "of every dollar a customer pays me, how much do I keep?" Markup divides profit by the cost: it answers "how much did I add on top of what I paid?" A product that costs $12 and sells for $29.99 earns $17.99 — a 60.0% margin, but a 149.9% markup.
The confusion bites when a seller says "I need a 50% margin" and then prices at cost plus 50% — $12 plus 50% is $18, and the margin on $18 is only 33.3%, not 50%. The correct price for a 50% margin on a $12 cost is $24, because margin is measured against the price, not the cost. The formula is price = cost ÷ (1 − margin), which is exactly what this calculator's reverse mode computes. Whenever a supplier, a course or a competitor talks about percentages, ask which denominator they mean before you act on the number.
Worked example: cost $12, price $29.99
Take a product with a true all-in unit cost of $12 — product, freight, fees and fulfilment included — selling at $29.99. Gross profit per unit is $29.99 − $12.00 = $17.99. Margin is $17.99 ÷ $29.99 = 60.0%. Markup is $17.99 ÷ $12.00 = 149.9%.
Now flip it round. Suppose you want to keep a 60% margin on that same $12 cost. The required price is $12 ÷ (1 − 0.60) = $12 ÷ 0.40 = $30.00 — a useful check that the forward calculation and the reverse calculation agree. If your current price is below that required price, you have three levers and only three: raise the price, cut the unit cost, or accept a lower margin and make it up on volume — and volume only helps if your fixed costs are already covered, which is a break-even question.
What a "good" margin actually means
There is no percentage that is good for every seller. A 60% margin on a product that sells two units a month is worth less than a 25% margin on a product that sells two thousand — margin is per unit, profit is margin times volume minus fixed costs. Category matters too: consumables and private-label goods often carry higher margins than branded electronics, and a seller doing their own fulfilment keeps costs that an FBA seller pays to Amazon.
The honest way to judge your margin is to work backwards from everything it has to pay for. List the per-unit costs first — product, freight, referral fee, fulfilment, payment processing, returns allowance, ad spend — then the fixed costs it has to contribute toward: software, storage, salaries, your own time. The margin that remains after all of that is the margin that matters, and it is the number this calculator shows you when the cost you enter is complete. If the cost is incomplete, the margin is a fantasy with two decimal places.
Common margin mistakes
Pricing on product cost alone. The factory price is the smallest part of the all-in cost for most sellers. Fees, fulfilment and freight are per-unit costs too, and leaving them out inflates the margin you think you have.
Confusing markup with margin. Cost plus 50% is a 33% margin, not a 50% margin. Use the reverse mode whenever a target is stated as a margin.
Forgetting returns. If 5% of orders come back, your effective profit is earned on 95 sales out of every 100 shipped — and the return shipping and restocking come out of the same margin.
Treating margin as the goal. Margin is a ratio, not money in the bank. A thin margin at high volume with fixed costs covered beats a fat margin nobody buys at.
Frequently asked questions
What is the difference between profit margin and markup?
What is a good profit margin for an ecommerce seller?
How do I set a price to hit a target margin?
Should marketplace fees go into the unit cost?
My margin looks high but I am still losing money — why?
Margins tight? Get a free pricing audit
Our team manages Amazon, eBay, Walmart, TikTok Shop and Etsy accounts end-to-end — pricing strategy, PPC, listings and operations. Get a free audit of your store first — or skip the DIY and see our full-service ecommerce management.
Get Your Free Store Audit Book a Free Call