Profit Margin Calculator for Online Sellers

Enter your price, product cost and fees to see what you keep on each sale. Then switch tabs to find the price for a target margin, convert margin to markup, check a sale discount, count the sales needed to break even, or find the most you can spend on ads. Everything runs in your browser and nothing is uploaded.

Platform and payment fees
These are round example figures, not official rates. Fees change by country, category and plan. Check your platform's fee page and edit the boxes.
Sales tax, VAT or GST

When tax is included, the tool removes it first, because you pass it to the tax office. Fees are worked out on the revenue you keep. Some platforms charge fees on the tax-inclusive total, so check yours.

🔒 Runs entirely in your browser. Nothing you enter is uploaded or stored.

How to use the Profit Margin Calculator

  1. Pick a tab for the job: profit per sale, price for a target margin, margin vs markup, break-even, sale discount, or ads and ROAS.
  2. Enter the selling price and what each sale costs you: the product, shipping you pay, packaging, anything else, and your ad cost per sale.
  3. Open Platform and payment fees. Choose an example close to your platform, then change the boxes to match your own fee page.
  4. If your price includes VAT or GST, or sales tax is added on top, open Sales tax, VAT or GST and pick the right option.
  5. Read the result cards. In the first tab, the bar and table show where each part of the price goes.
  6. Change one number at a time to see what moves profit most. Your entries are saved in your own browser.

The formulas, in plain words

Profit = revenue you keep − fees − returns − product cost − shipping − packaging − other costs − ad cost
Margin = profit ÷ revenue × 100  ·  Markup = profit ÷ cost × 100
Price for a margin = (fixed costs per sale) ÷ (1 − percentage fees − target margin)

Margin and markup describe the same profit against two different bases, so a 25% markup is a 20% margin and a 100% markup is only a 50% margin. Converting: margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin). Margin is what you report. Markup is a quick way to add profit to a cost.

Worked example: a $40 item

You sell a $40 item. It costs you $12, you pay $5 shipping and $1 packaging, ads cost $3 per sale, and you allow 2% for returns. With example fees of 6.5% plus $0.20 from the platform and 3% plus $0.25 for payment:

  • Platform fee: 40 × 6.5% + 0.20 = $2.80
  • Payment fee: 40 × 3% + 0.25 = $1.45
  • Returns allowance: 40 × 2% = $0.80
  • Costs: 12 + 5 + 1 + 3 = $21.00
  • Profit: 40 − 2.80 − 1.45 − 0.80 − 21.00 = $13.95, a margin of 13.95 ÷ 40 = 34.9%

Look at the cost line on its own: $12 of product is only 30% of the price, yet the item costs you $21 to sell. Shipping and ads decide the result as much as the product does.

Price for a target margin

To keep a 30% margin on the same item, the percentage costs (6.5% + 3% + 2% = 11.5%) and the target (30%) take 41.5% of the price. The rest covers fixed amounts: 0.20 + 0.25 + 12 + 5 + 1 + 3 = $21.45. Price = 21.45 ÷ (1 − 0.415) = $36.67. At that price profit is $11.00, which is exactly 30% of $36.67. A common mistake is to add 30% to costs, which gives a much lower margin than you wanted. If the fees and your target add up to 100% or more, no price works, and the tool says so.

Margin vs markup

If something costs $100 and sells for $125, profit is $25. Markup is 25 ÷ 100 = 25%. Margin is 25 ÷ 125 = 20%. Sellers who set prices with markup but compare themselves with margin figures get confused when the two numbers do not match. The converter tab changes one into the other. The percentage calculator helps with any other percentage sum.

Break-even: how many sales cover your fixed costs

Fixed costs are what you pay whether you sell or not: software, rent, a salary for yourself. Divide them by the profit per sale. With $800 a month of fixed costs and $13.95 profit per sale, you need 800 ÷ 13.95 = 57.3, so 58 sales, or $2,320 of revenue. Sale 59 onward is profit. If profit per sale is zero or negative, you never break even at that price.

Checking a sale discount

Take 20% off the $40 item and the price is $32. The fixed costs do not shrink, so profit falls from $13.95 to $6.87 and margin from 34.9% to 21.5%. To earn the same total profit, you must sell 13.95 ÷ 6.87 = 2.03 times as many items. A 20% discount costs about half your profit per sale, so it only pays if it truly doubles your sales.

Ad spend and break-even ROAS

ROAS is revenue divided by ad spend. Before ads, our example leaves $16.95 per sale, so you can pay up to $16.95 to win a sale and still break even. That is a break-even ROAS of 40 ÷ 16.95 = 2.36. Ads that return less than 2.36 in revenue per dollar lose money on this item. If you want $5 profit per sale after ads, the limit falls to $11.95 and the target ROAS rises to 3.35. ROAS uses revenue, not profit, so a product with thin margins needs a higher ROAS than one with fat margins.

Pricing with VAT or GST

If you sell at £48 including 20% UK VAT, your revenue is 48 ÷ 1.20 = £40. The £8 belongs to the tax office. Enter £48 with Price includes tax and the profit is the same as the $40 example. In the US, sales tax is added at checkout and is not part of your price, so pick Tax is added on top. See the VAT calculator to add or remove VAT.

What good margins look like

There is no single good number. Margin targets vary a lot by product type, sales channel and how much you spend on ads. Treat any benchmark as a rough guide and compare against your own cost structure instead. A better habit is to find the lowest price at which you still make the profit you need, and keep every sale above it.

This tool is for planning. It is not accounting or tax advice, and platform fees shown are examples you should replace with your own.

Frequently asked questions

How do you calculate profit margin?

Subtract all your costs from the revenue you keep to get profit, then divide profit by revenue and multiply by 100. A $40 sale with $26.05 of costs leaves $13.95, which is a 34.9% margin.

What is the difference between margin and markup?

Margin is profit divided by selling price. Markup is profit divided by cost. The same sale has a lower margin than markup: a 50% markup is a 33.3% margin, and a 100% markup is a 50% margin.

How do I price a product for a 30% margin?

Add your fixed costs per sale (product, shipping, packaging, fixed fees), then divide by one minus your percentage fees and 0.30. The price-for-a-margin tab does this for you.

What fees should I include for Etsy, eBay, Amazon or Shopify?

Include the platform fee, the payment processing fee, any fixed per-order fee, and ads if you use them. Use the rates on your own platform fee page, because they change by country, category and plan.

How do I work out break-even for my shop?

Divide your monthly fixed costs by the profit you make on each sale. Round up. That is the number of sales to cover your fixed costs.

What is break-even ROAS?

It is the revenue per dollar of ad spend at which you make no profit and no loss. It equals the price divided by the profit per sale before ads. Anything above it makes a profit.