How to Calculate Shopify Profit After Fees, Shipping, Returns and Ads

MerchantsBI · 26 November 2026

Shopify profit per order is what is left of the order value after discounts, cost of goods, payment fees, the shipping you pay, returns and the ad spend behind each order.

The formula

profit per order = order value − discounts − cost of goods − payment fees − shipping − returns − ad spend per order

Divide what is left by the discounted order value for the margin.

The inputs

  • Average order value: before discounts, excluding tax and shipping charged.
  • Discounts, as a percentage of the order.
  • Cost of goods per order.
  • Payment fee: your plan's card rate as a percentage, plus the fixed fee per order. If you use other gateways such as PayPal, use a blended rate.
  • Shipping you pay, net of any shipping the customer paid.
  • Returns and refunds, as a percentage.
  • Ad spend per order: monthly ad spend ÷ orders.

Break-even ad spend

The most you can spend on ads to win an order is your profit per order before ads. Spend more than that and the order loses money.

A worked example

Sample figures, the same ones shown on the Shopify profit calculator.

A $68 average order with 10% off is $61.20. Take off $22.00 cost of goods, $2.07 in payment fees (2.9% + 30¢), $4.80 of shipping, $3.06 of returns at 5% and $9.00 of ads: $20.27 profit per order, a 33.1% margin, or $12,159 a month on 600 orders.

Why Shopify's own reports don't show this

Shopify's reports can show gross profit when product costs are entered. Payment fees, shipping, returns and ad spend usually sit in payouts, carrier bills and ad platforms, so they are not part of it.

MerchantsBI for Shopify adds the costs that live in your other systems and the sales outside Shopify, so you see profit by product and channel after fees, shipping, returns and ads.

Enter your own averages for profit per order, margin and the most you can spend on ads to win an order. It runs in your browser, with no sign-up.

Try the free Shopify profit calculator

← All posts