How this profit margin calculator works
A profit margin calculator tells you what share of the selling price is profit, what markup that is on cost, and — if you already have a target — the price you must charge or the most you can pay. This free profit margin calculator answers those three questions from two numbers, then lets you fold in shipping, platform fees, other unit costs, and operating expenses.
Margin is profit divided by selling price. Markup is profit divided by cost. They are not interchangeable: a 40% margin is a 66.7% markup on the same item. A 100% margin would mean cost is zero, which is why the calculator rejects a target of 100% or more. Platform and payment fees are a percentage of selling price, not of cost.
How to use the profit margin calculator
- Choose what you are working out: margin from a known price, the price that hits a target margin, or the most you can pay for a given price and target.
- Enter the two numbers for that mode and pick a currency. Field labels change so you always know which figure is which.
- Read the headline result — gross margin, suggested price, or maximum cost — then markup, gross profit, net profit, net margin, and break-even figures underneath.
- Open Advanced only if you need shipping, a platform or payment fee, other unit costs, operating expenses, or a batch quantity. Closing it opts those extras out of the result even if values stay typed.
The three profit questions, explained
Margin from a price
Use this when you already know cost and selling price and want the margin, the markup, and the profit. It is the usual “I sold this for $100 and it cost $40 — what is my margin?” question.
Price for a target margin
Use this when you know cost and the margin you need, and you want the selling price that delivers it. Retailers, agencies, and anyone setting a list price start here. Fees and extra costs raise that price because they have to be covered inside the same target.
Cost I can afford
Use this when the selling price is fixed — a marketplace listing, a contract rate, a menu price — and you need the highest unit cost that still hits your target margin after fees. If that figure comes out below zero, the target is impossible at this price.
Margin vs markup — they are not the same
Gross margin is gross profit as a share of the selling price. Markup is the same profit as a share of cost. On a $40 cost and a $100 price, profit is $60: the margin is 60%, the markup is 150%. Quoting a “50% margin” when you mean “50% markup” underprices the item, because a 50% markup on $40 is a $60 price (33% margin), not a $80 price. This calculator always shows both so the two cannot be mixed up.
Profit margin formulas
These are the same formulas the calculator uses. Gross profit does not include platform fees or a share of operating expenses; those land in net profit and net margin.
Platform fees, shipping, and operating expenses
A platform or payment fee is taken off the selling price (price × fee%), the way Amazon, Etsy, Shopify, Stripe, or a card network charge. It is not a percentage of cost, so a 15% marketplace fee on a $100 item is $15, not 15% of what you paid the supplier. Shipping and other unit costs sit with cost in gross profit. Operating expenses are a batch total divided across units sold. Closing Advanced treats all of those as zero even if numbers stay typed. Break-even price is the selling price that covers cost and fees with no profit; break-even units appear when you enter operating expenses.
Worked examples
Example: $40 cost, $100 price
Gross profit is 100 − 40 = $60. Gross margin is 60 ÷ 100 = 60%. Markup is 60 ÷ 40 = 150%. That is why a “healthy 60% margin” and a “150% markup” can describe the same sale.
Example: $40 cost, 40% target margin
Price = 40 ÷ (1 − 0.40) = $66.67. Gross profit is then $26.67, which is 40% of $66.67. If you treated 40% as a markup instead, you would only charge $56 and the real margin would be about 29% — the usual underpricing mistake.
Example: $100 price, 40% target, 10% platform fee
The fee is 10% of price, so the room left for cost and margin is 1 − 0.40 − 0.10 = 0.50. The most you can pay is 100 × 0.50 = $50. A 100% margin is impossible at any price: it would require cost, fees, and extras to be zero, which is why the calculator rejects a target of 100% or more.
Things to keep in mind
A 100% gross margin cannot be reached unless cost is zero; more than 100% would mean a negative cost. Closing Advanced does not clear shipping, fees, or opex — it only stops them affecting the result. Quantity defaults to 1 when Advanced is closed. This page is a pricing tool, not an accounting close: it does not apply a country’s VAT rules or a particular marketplace’s fee table beyond the percentage you type.
Profit margin calculator FAQ
What is the difference between profit margin and markup?
Margin is profit divided by selling price. Markup is profit divided by cost. On a $40 cost and a $100 price, margin is 60% and markup is 150%. They are not interchangeable; mixing them up is a common way to underprice.
Why can’t I enter a 100% profit margin?
A 100% margin would mean cost (and fees) are zero — the whole selling price is profit. That cannot be reached on a real product. The calculator rejects a target of 100% or more for the same reason.
Are platform fees taken off the cost or the selling price?
Off the selling price. A 15% marketplace fee on a $100 item is $15, not 15% of what you paid the supplier. That is why fees raise the price you must charge to hit a target, and why they shrink the most you can pay when the price is fixed.
How do I find the price I must charge for a target margin?
Choose “Price for a target margin”, enter cost and the margin you need. The calculator divides unit cost by 1 minus the target (and minus any fee). Open Advanced to include shipping, platform fees, other unit costs, or operating expenses in that unit cost.
What happens when I close Advanced?
Shipping, platform fees, other unit costs, operating expenses, and quantity drop out of the result even if values stay typed — the same contract as other calculators on this site. Your cost, price, and target remain.
Does this profit margin calculator store my prices?
Completed results can be saved in this browser’s local history so you can reopen them later. They stay on your device and are not sent to our servers or to analytics.