Profit Margin Calculator

Use this profit margin calculator with fees to see real profit after product cost, shipping, marketplace and payment charges.

Price & Costs

$
$What it costs you to buy or make one unit.
$
%Commission charged on the selling price.
%
$
$Packaging, ads, returns allowance…
%See the price needed to reach it.

Formula & worked example

Formula: Profit = price − (cost + shipping + other + fees). Margin = profit ÷ price × 100. Markup = profit ÷ costs × 100.

Example: Price 100, cost 40, shipping 5, 10% marketplace fee, 2.9% + 0.30 payment fee: fees 13.20, profit 41.80, margin 41.8%.

Method & source: Gross margin = profit ÷ revenue; markup = profit ÷ cost. See how we test our calculators.

Next step: try break-even point or freelance rates.

Person using a calculator at a desk beside a coffee mug to work out margins

Profit Margin, Explained

A profit margin calculator shows how much of every sale you actually keep. Margin is profit divided by the selling price, expressed as a percentage, and it is the number that tells you whether a product is worth selling.

This version, with fees, goes further than price minus cost. It deducts shipping, marketplace fees, payment processing and other costs so the figure reflects what lands in your account.

Turning Price and Costs Into a Margin

Enter the selling price and each cost that applies to one sale.

  • Product cost and shipping: What you pay to buy or make the item and to get it to the customer.
  • Selling fees: A marketplace or platform commission as a percentage of the price.
  • Payment fees: A percentage plus a fixed amount per order, like 2.9% + 0.30.
  • Results: Net profit, profit margin, markup, total costs and total fees.
  • Pricing help: The break-even price and the price you need to hit a target margin.

Because fees scale with the price, the target-margin price is solved algebraically rather than guessed, so it lands exactly on your chosen margin.

Three assorted-color paper price tags used to set selling prices and margins
Shop owner standing in front of a counter in a small retail business

Why Profit Margin Matters

Revenue can look healthy while profit quietly disappears into fees, shipping and returns.

  • Price products so every order contributes real profit.
  • See which marketplace or payment method costs the most.
  • Understand the difference between margin and markup.
  • Set discounts without selling at a loss.
  • Compare products and decide which to promote.

Knowing your true margin after fees is the foundation of sustainable pricing for any online seller or small business.

Worked walkthrough: selling a mug online

You sell a mug for 24. It costs 7 to make and 4.50 to ship, the marketplace takes 12% and the payment processor takes 2.9% plus 0.30. Fees come to 24 × 14.9% + 0.30 = 3.88, so total costs are 15.38 and profit is 8.62. That is a margin of 35.9% of the selling price. Markup on product cost, shipping and other costs is about 75%, and on total costs including fees about 56%. To reach a 30% target margin you would need a price of roughly 21.42 – so the current price already clears the goal.

Practical tips for Profit Margin calculations

  • Margin and markup are not interchangeable. Margin uses the selling price as its base; markup uses cost. The results page shows the base of each.
  • Include returns, packaging and advertising in “other costs” if they are part of selling one unit – otherwise your margin will look better than reality.
  • Percentage fees rise with price, so a discount reduces fees a little but usually cuts profit far more than it cuts the price.
  • Check the break-even price shown: it is the lowest price at which the sale earns nothing after fees. Never discount below it.
  • Fees change. Recheck your marketplace and payment rates regularly and update the inputs rather than relying on old figures.

Margin and markup measure different things

Profit is the selling price minus everything it cost you to make the sale. Margin expresses that profit as a share of the selling price, while markup expresses it as a share of the cost. A product that costs 60 and sells for 100 earns 40 profit, which is a 40% margin but a 66.7% markup. Mixing the two up is the most common pricing error: adding a 40% markup to a 60 cost gives 84, a margin of only 28.6%.

Markup required to reach a given margin
MarginMarkup needed
20%25%
25%33.3%
30%42.9%
40%66.7%
50%100%

What counts as a cost

The calculator subtracts the product cost, shipping, any other per-sale costs you enter, and the fees charged on the sale: a marketplace fee as a percentage of the price, and a payment fee made of a percentage plus a fixed amount. That gives a margin after direct selling costs, sometimes called contribution margin. Gross margin uses only the cost of goods, and net margin also deducts overheads such as software, rent and advertising. Add the overheads you want covered per sale to the “other” cost so the result reflects your real position.

Percentage fees make price and profit non-linear

Because some fees scale with the price, you cannot find the right price by simply adding a margin to the cost. The price needed for a target margin is fixed costs ÷ (1 − fee rates − target margin). With a product cost of 25, shipping of 4, a 12% marketplace fee, a payment fee of 2.5% plus 0.20 and a 35% target margin, fixed costs are 29.20 and the price is 29.20 ÷ 0.505 = 57.82. The lowest price that avoids a loss is 29.20 ÷ 0.855 = 34.15, and the calculator shows both.

How discounts eat margin

A discount comes straight out of profit because costs do not fall. If a 100 item costs 60 to supply, a 40% margin drops to 25% after a 20% discount, and profit halves from 40 to 20. You would then need to sell twice as many units to earn the same total profit. Test any promotion price before you offer it, and use the discount calculator to see what shoppers pay.

Using the result

There is no single good margin, because it depends heavily on the industry, the sales volume and your fixed costs, so compare products with each other and with your own history. Once you know the margin per sale, the break-even calculator shows how many sales cover your fixed costs, and the percentage change calculator measures how a price rise or cost increase moves the numbers.

Frequently Asked Questions (FAQs)

Add product cost, shipping, other costs and all fees to get total costs, subtract them from the selling price to get profit, then divide profit by the selling price and multiply by 100.

Margin is profit as a percentage of the selling price. Markup is profit as a percentage of cost. A product costing 50 and selling for 100 has a 50% margin but a 100% markup.

Enter the percentage part and the fixed part separately. For a typical 2.9% + 0.30 fee, use 2.9 and 0.30. The calculator applies both to each sale.

It is the lowest price at which the sale makes zero profit after all costs and fees. Anything above it earns you money.

It depends on the industry, but many small retailers aim for 30–50% gross margin. Use the target margin field to see the price required for the margin you want.

Profit margin is (selling price minus total costs) divided by the selling price, times 100. Markup is different: it divides the profit by the cost.

Enter the product cost, shipping, marketplace percentage fee, payment fee (percentage and fixed) and other costs. The result shows net profit per sale and the margin.

Enter your costs and a 30 percent target margin. The calculator shows the price needed, or tells you when that margin is impossible with your fees.

Gross margin only subtracts the cost of the goods. Net margin subtracts every cost. This calculator includes shipping, fees and other costs, so it is closer to a net margin per sale.

Estimates only – not financial advice. Results are estimates based only on the figures you enter and simplified assumptions (constant prices, costs and rates; no unexpected fees). They are not financial, tax or accounting advice. Check important decisions with a qualified professional. See our full disclaimer.