Profit Margin & Markup Calculator

Calculate net profit margin, gross margin, markup, and break-even selling price after payment processing fees and fulfillment costs.

  • Free
  • No signup
  • Runs in your browser
  • Updated November 2026

How to Use This Profit Margin Calculator (Step-by-Step)

Most sellers know their revenue and their product cost, but very few know what they actually keep after payment fees and fulfillment. This profit margin calculator shows four numbers side by side so you can price with confidence instead of guessing.

Step 1: Gross profit and Gross Margin. Gross profit is your selling price minus the direct cost of the product or service. Gross Margin is that profit as a share of the price.

Gross Margin % = (Price − Cost) ÷ Price × 100

Step 2: Net profit and Net Margin. Net profit also subtracts the platform or payment fee (a percentage of the price) and any fixed per-order cost such as shipping, packaging, or a flat transaction fee. Net Margin is what remains of each sale after those costs.

Net Profit = Price − Cost − (Price × Fee %) − Fixed Costs
Net Margin % = Net Profit ÷ Price × 100

Step 3: Markup. Markup measures profit against your cost, not your price. It tells you how much you add on top of what you paid.

Markup % = (Price − Cost) ÷ Cost × 100

Step 4: Break-Even Selling Price. This is the lowest price at which you neither gain nor lose money. Because the processing fee scales with the price, the formula divides by what is left after the fee:

Break-Even Price = (Cost + Fixed Costs) ÷ (1 − Fee %)

Enter your costs, price, fee, and fixed costs above. The calculator returns your net margin, gross margin, markup, break-even price, and a breakdown of where each unit of revenue goes.

Worked example

Here are two realistic scenarios using the same formulas.

Metric E-commerce product Agency project
Selling price / quote $100.00 $4,000.00
Cost of goods / delivery cost $40.00 $1,800.00
Platform fee 3% ($3.00) 2.9% ($116.00)
Fixed fulfillment / overhead $5.00 $150.00
Net profit $52.00 $1,934.00
Net margin 52.00% 48.35%
Gross margin 60.00% 55.00%
Markup 150.00% 122.22%
Break-even price $46.39 $2,008.24

Notice that the e-commerce product has a 150% markup but a 60% gross margin. Both are correct—they simply use different denominators.

Instead of manually calculating margins in a spreadsheet, plug your product cost, shipping, and processing fees into the profit margin calculator above.

Margin vs. markup: why confusing them costs money

Markup is always a bigger number than margin for the same sale. Founders who “add 50%” to their cost and expect a 50% margin end up with only 33.33%. The table below shows how each markup converts to gross margin:

Markup % Gross margin %
10% 9.09%
20% 16.67%
25% 20.00%
30% 23.08%
40% 28.57%
50% 33.33%
60% 37.50%
75% 42.86%
100% 50.00%

Common pricing mistakes

  • Ignoring payment and platform fees. A 3% fee on a $100 sale looks small, but on a thin-margin product it can remove a fifth of your profit.
  • Pricing from markup instead of margin. Your accountant, your investors, and your tax return talk in margins. If you start from cost percentages, convert them first with our Markup Calculator so your price list hits your true margin target.
  • Leaving out fixed per-order costs. Packaging, pick-and-pack, and flat per-transaction fees often matter more than percentage fees on low-priced items.
  • Forgetting refunds, discounts, and chargebacks. If you offer promotions, test the discounted price in the profit margin calculator, not just the list price.
  • Underpricing service time. Agencies and consultants often count only contractor invoices and ignore project management, revisions, and non-billable hours.

Depending on how you sell, different costs eat into your final net margin. Marketplace sellers can factor in listing and transaction cuts with our Etsy Fee Calculator, paid-ad stores can find their minimum profitable ad return using our Break-Even ROAS Calculator, retail stores can calculate final sale prices after stacked markdowns with our Discount Calculator, and service providers can price their billable time accurately with the Freelance Hourly Rate Calculator.

Healthy profit margins by industry

Industry Typical gross margin Typical net margin
SaaS / digital products 70–85% 15–30%
Consulting / agencies 50–70% 15–25%
E-commerce / retail 35–55% 5–15%
Physical manufacturing 25–40% 5–10%

Frequently asked questions

What is the difference between profit margin and markup?
Profit margin is profit divided by the selling price. Markup is profit divided by the cost. A product that costs $40 and sells for $100 has a 60% gross margin and a 150% markup. Margin can never exceed 100%, while markup can.

How do I calculate profit margin with a payment processing fee?
Subtract the processing fee (price × fee percentage) and any flat fee from your profit before dividing by the price. For a $100 sale with a 2.9% fee, the fee is $2.90, so your profit falls by that amount.

What is a good profit margin for an e-commerce store or agency?
Many e-commerce stores aim for a net margin of 10–20% after ads and fulfillment, though 5–15% is common. Agencies and consultants typically target 15–25% net, with higher gross margins to cover overhead and non-billable time.

How do I find my break-even price?
Add your cost and fixed per-order costs, then divide by one minus your fee rate. With $40 cost, $5 fixed costs, and a 3% fee, the break-even price is $45 ÷ 0.97 = $46.39. Any price below that loses money.

Bookmark this profit margin calculator to double-check your pricing whenever supplier costs or platform fees change.

Why is my net margin lower than my gross margin?
Gross margin only subtracts the direct cost of what you sell. Net margin also removes platform fees, payment processing, shipping, and other per-order costs. Run every new SKU through this profit margin calculator so payment fees and discounts never eat into your target profit.

Written by DhrubaDigital. Last updated 29 November 2026.

Results are estimates for planning only. They are not financial, tax or legal advice.

Scroll to Top