Profit Margin Calculator

Calculate profit, margin, markup, selling price, cost price and ROI

100% free. Runs entirely in your browser - your files and data never leave your device and nothing is uploaded to any server.

Enter what you pay and what you charge to see your profit, margin and markup.

Values
Quick examples
calculate

Check your numbers

Enter a cost price greater than zero.

About this tool

This calculator works out profit, profit margin, markup, selling price, cost price and ROI from whichever figures you have - and can factor in shipping, packaging, transaction fees, tax, discounts, marketing spend and quantity to show what you actually take home on a sale.

How to use this tool

  1. Pick the mode for the question you haveProfit margin (from cost and price), Selling price (from cost and a target margin), Cost price (the most you can pay), Markup, or ROI.
  2. Enter the two figures it asks forChoose your currency first - US dollar, euro, pound, rupee, dirham and more. The result updates as you type.
  3. Open Additional costs for the real pictureAdd quantity, shipping, packaging and other costs per unit, a discount, tax and transaction fees as percentages, and a total marketing spend.
  4. Read the breakdown, then copy or print itThe result shows profit per unit and in total, with a doughnut or bar chart of where the money goes. Copy the figures or print a clean summary.

Profit margin vs markup, with an example

Margin is profit as a share of the selling price; markup is profit as a share of the cost. An item that costs 60 and sells for 100 makes 40 profit: that is a 40% margin but a 66.7% markup. Mixing the two up is the most common pricing mistake.

To price for a target margin, divide the cost by (1 - margin). For a 50% margin on a 60 cost, the price is 60 / 0.5 = 120. Margin can never reach 100%, because that would mean the item cost nothing.

Key features

  • Shows margin and markup side by side, so you never mix them up when pricing.
  • Counts the costs that quietly eat profit: shipping, packaging, platform and payment fees, discounts, tax and marketing.
  • Works backwards too: from a target margin to the price to charge, or to the most you can pay a supplier.
  • Runs in your browser; your last entries are kept on your device so a refresh does not lose them.

Common uses

  • An online seller checking what is left of each sale after marketplace and payment fees.
  • A shop owner working out the selling price that gives a 40% margin on a new product.
  • A buyer finding the highest supplier price that still keeps the target margin.
  • Checking whether a 20% discount still leaves a profit before running a sale.

Tips for better results

  • Enter platform and card fees as a percentage of the selling price - that is how marketplaces charge them, and it is why they cost more than they look.
  • Put a campaign's whole ad budget in Marketing (total) with the quantity you expect to sell; it comes off the total profit for that quantity, so you see whether the campaign pays for itself.
  • Run the same product with and without a discount to see exactly what a sale costs you.
  • Use the quick examples to see how a typical product is set up before entering your own figures.

Mistakes to avoid

  • Adding the margin you want to the cost: 60 + 40% is 84, which is a 40% markup but only a 28.6% margin.
  • Leaving out shipping, packaging and fees, so the margin looks healthier than it is.
  • Running a discount without recalculating the margin on the reduced price.
  • Reading revenue growth as profit growth when costs and fees grow with it.

Frequently asked questions

This is the most common pricing mistake, and it costs businesses real money. Margin is profit as a share of the SELLING price; markup is profit as a share of the COST price. Buy at 100 and sell at 150 and you have a 50% markup but only a 33.3% margin. They are never the same number unless both are zero, which is why this tool always shows both together.

Use the Selling Price mode: enter your cost and the margin you want, and it gives you the price to charge. Note that you cannot divide your cost by (1 - margin) in your head reliably, and adding your target margin as a percentage on top of cost gives you a markup, not a margin - which is exactly how businesses end up under-pricing.

Because margin is measured against the selling price. To keep 100% of the selling price as profit your cost would have to be zero, and above 100% is arithmetically undefined. Markup has no such ceiling - you can mark up by 500% quite happily. If you want a very high return, set it as a markup rather than a margin.

Shipping, packaging and other costs are added per unit; transaction fees and tax are taken as a percentage of what the customer actually pays; discount reduces the selling price before anything else is worked out; and marketing is treated as a single cost across the whole batch rather than per unit. Together they turn a headline margin into the figure you really keep.

ROI is your profit divided by what you spent, as a percentage. Invest 1,000 and get 1,250 back and your ROI is 25%. In the main pricing modes the ROI figure shown is total profit against total costs, including any marketing spend you entered.

Break-even means revenue and costs are equal, so you make neither a profit nor a loss. The result turns green for profit, red for a loss and amber at break-even, so you can see at a glance whether a price actually works before committing to it.

No. Every calculation runs in your browser and nothing is uploaded. Your last entries are saved locally on your own device so a refresh does not lose them, and clicking Reset clears them.

It varies widely by industry: grocery and fuel often run net margins of a few percent, while software and consulting can exceed 20%. Compare against businesses like yours, and look at gross margin (after product cost) separately from net margin (after all costs).

Platform and payment fees are charged on the selling price, not on profit, so they take a bigger bite than they look. Enter them in the fee fields: a 15% marketplace fee on a product with a 30% margin removes half the profit.

Either works if you are consistent, but margin ties directly to your profit and loss figures, so it is easier to plan with. If a supplier quotes a markup, convert it: a 50% markup is a 33.3% margin.