÷AIWebGrade

Ecommerce Profit Margin Calculator

Your real profit per order after fees, shipping, returns and ads.
123
Advertisement
</> Embed this calculator on your website: free

Contractors, suppliers and bloggers: paste this code into any page to give your visitors this calculator. It's free, needs no sign-up and stays up to date.

What the calculator includes

  • Product cost (COGS): what you pay your supplier or manufacturer per order.
  • Shipping, fulfillment and packaging: everything it costs to get the order to the customer.
  • Payment processing: a percentage plus a fixed fee per transaction (Stripe's standard US rate is 2.9% + 30¢).
  • Platform or marketplace fees: Etsy, Amazon, TikTok Shop or app fees, as a percentage of the sale.
  • Returns: the share of revenue lost to refunds.
  • Ad cost per order: your CPA from Meta, Google or TikTok ads.

Example: a $40 product

Product cost $12, shipping $6, packaging $1, Stripe fees, 5% returns and $10 of ads per order. Fees come to $1.46 and returns cost $2.00, leaving $17.54 before ads (a 43.9% contribution margin). After the $10 ad cost, profit is $7.54 per order, a 18.8% net margin. The break-even ROAS is 2.28.

Advertisement

The formulas

  • Contribution = price − (COGS + shipping + packaging + fees + returns + other)
  • Profit per order = contribution − ad cost per order
  • Net margin = profit ÷ price
  • Markup = (price − COGS) ÷ COGS
  • Break-even ROAS = price ÷ contribution

Five ways to raise your margin

  1. Raise average order value with bundles, multi-packs and free-shipping thresholds; fixed costs get spread thinner.
  2. Negotiate COGS at higher volumes, or switch to a cheaper but equivalent packaging option.
  3. Charge for shipping or build it into the price instead of absorbing it.
  4. Cut returns with better photos, size charts and product descriptions.
  5. Improve conversion rate: the same ad spend producing more orders lowers your CPA directly.

Next: know your ad limit

Your contribution margin sets how much you can spend on ads. Use the break-even ROAS calculator to see the ROAS and CPA you need for any target profit margin.

Frequently asked questions

▸How do you calculate ecommerce profit margin?

Net profit margin = (selling price − all costs per order) ÷ selling price. Costs include product cost, shipping and fulfillment, packaging, payment processing, platform fees, returns and the ad spend it took to get the order.

▸What is a good profit margin for an online store?

It varies by category, but many DTC brands target a contribution margin (before ads) of 50% or more, and a net margin after ads of 10–20%. Below about 30% contribution margin, paid advertising becomes very hard to make profitable.

▸What's the difference between margin and markup?

Margin is profit as a percentage of the selling price; markup is profit as a percentage of the product cost. A product that costs $12 and sells for $40 has a 233% markup, but its gross margin is 70%, and its net margin is lower once fees, shipping and ads are included.

▸How much are Stripe or Shopify payment fees?

Stripe's standard US rate for online card payments is 2.9% + 30¢ per transaction. Shopify Payments and PayPal are in a similar range, varying by plan. Enter your actual rate in the calculator.

▸What is contribution margin?

Contribution margin is what's left from each order after every variable cost except advertising. It's the most you could spend on ads to win that order without losing money, which is also your break-even CPA.

Last updated November 2026. Results are estimates for planning and budgeting. Footing sizes, depths and reinforcement must meet your local building code. Check with your building department, and use a licensed engineer for anything structural you're unsure about.