Ecommerce

How to Calculate Ecommerce Profit Margin

Ecommerce margin is easier to misread than a simple product margin because platform fees, payment fees, shipping, ads, and returns often sit outside the product cost line.

Start with the order, not just the product

For an online order, revenue can include both product price and shipping charged to the customer. Costs can include product cost, packaging, fulfillment, shipping labels, platform fees, payment fees, promotional discounts, ad spend, and a return allowance.

That means two products with the same product cost can have very different profit if one needs paid ads, heavier packaging, or a higher return allowance.

Ecommerce profit margin formula

Gross Revenue = Product Price + Shipping Charged
Total Costs = Product Cost + Shipping Cost + Platform Fees + Payment Fees + Ad Cost + Return Allowance
Net Profit = Gross Revenue - Total Costs
Net Margin = Net Profit / Gross Revenue * 100

Useful workflow

  1. Enter the product price and any shipping charged to the customer.
  2. Add product cost, packaging, shipping, and fulfillment cost per order.
  3. Add platform or marketplace fee percentage and payment processing fee percentage.
  4. Add fixed payment fees, such as a per-transaction fee.
  5. Add ad cost per order if you are evaluating paid acquisition.
  6. Add a return allowance when returns or refunds are a regular part of the category.
  7. Compare net margin and break-even ad spend before changing the price.

Worked example

Suppose a product sells for $55. Product cost is $18, shipping cost is $6, platform fee is 6.5%, payment fee is 2.9%, fixed payment fee is $0.30, ad cost is $8, and return allowance is 3% of order revenue.

Gross revenue is $55. Fees and return allowance total $7.12, and total costs are $39.12. Net profit is $15.88, so net margin is about 28.87%.

Track pre-ad and post-ad profit

Pre-ad profit shows whether the product has enough room to support paid acquisition. Post-ad profit shows whether the current campaign economics work. If pre-ad profit is weak, the fix may be pricing, supplier cost, packaging, fulfillment, or fee structure. If pre-ad profit is healthy but post-ad profit is weak, the issue may be acquisition cost or conversion rate.

Use the calculator

Use the Ecommerce Profit Calculator to estimate net profit per order and break-even ad spend. For simpler formulas, compare the Profit Margin Calculator, Markup Calculator, and Discount Calculator.

FAQ

What is a good ecommerce profit margin?

A good margin depends on category, sales volume, fulfillment model, ad efficiency, and fixed costs. Compare products using the same cost assumptions before deciding.

Should ad spend be included in ecommerce profit margin?

Include ad spend when you are judging profit per order or paid acquisition. You may also track a pre-ad contribution margin separately.

Should shipping charged to the customer count as revenue?

Yes, if the customer pays shipping, it is part of order revenue. The actual shipping or fulfillment cost should then be listed as a cost.

How do returns affect ecommerce profit?

Returns reduce expected profit through refunds, lost fees, shipping support, restocking work, or damaged inventory. Use a return allowance when exact return costs are unknown.