Profit Margin Calculator
Use this profit margin calculator with fees to see real profit after product cost, shipping, marketplace and payment charges.
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.
What Is a Profit Margin Calculator?
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.
How Our Profit Margin Calculator Works
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.
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.
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.
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.