Skip to content
BizMathKit

Shopify Profit Margin Calculator

Find what you really keep from each Shopify order after product, shipping, packaging, ads and Shopify’s fees, plus your break-even ROAS.

What you pay for one unit, landed.
Spreads your plan and apps over each order.

All optional. Refunds: share of sales you give back. Other cost: duties or handling per order.

Profit per order
$12.54
on $40.00 collected
Profit margin
31.35%
Shopify payment fee
$1.46
Break-even ROAS
1.95×
Costs $27.46Profit $12.54

Gross margin (product cost only) 70% · costs before ads $19.46

Step by step

How to use the Shopify profit calculator

  1. Enter your selling price and what one unit costs you, including freight to your warehouse.
  2. Add what you pay to ship and pack each order, and your average ad spend per order.
  3. Add any shipping you charge and discounts you give, then choose your Shopify plan and how customers pay.
  4. Enter your orders and app costs a month to spread fixed costs and see monthly profit.
  5. Optionally add a refund share, another cost per order, or a target margin to get the price you would need.
The math

The Shopify profit formula

Collected = Price − Discount + Shipping charged
Profit = Collected − Product − Shipping − Packaging − Other − Refunds − Fees − Ads
Margin = Profit ÷ Collected
Break-even ROAS = Collected ÷ Profit before ads
Fees
the payment rate on what the customer pays, plus any monthly costs per order
Refunds
your refund % of what customers pay
Ads
your ad spend divided by the orders it brought in
Worked example
$40−$27.46=$12.54
A $40 order: $12 product, $5 shipping, $1 packaging, a $1.46 Basic-plan payment fee and $8 of ads. You keep $12.54, a 31.35% margin. Break-even ROAS is 1.95×.

Ads are usually the biggest lever

For many stores, ad spend per order is larger than the product cost. In the example, cutting the cost per order from $8 to $6 raises profit by 16%. Track your real cost per order from your ad account, not the cost per click, and test it here before you raise your budget.

Free shipping isn’t free

If you offer free shipping, leave Shipping charged blank but keep your real shipping cost in. Then you can see what it costs you. Many stores build part of the shipping cost into the price instead. Raise the price by the same amount here and compare the margin.

Limits

What this calculator leaves out

Shopify rates were checked December 1, 2026. The calculator doesn’t include sales tax you collect and pass on, chargebacks, or your own time. The refund field treats refunded sales as lost income and assumes you recover nothing, so if returned items go back into stock, enter a lower share.

FAQ

Common questions

How do I calculate profit margin on Shopify?
Take what the customer pays, subtract the product cost, shipping, packaging, Shopify’s payment fee and your ad cost per order. That’s your profit. Divide it by what the customer paid to get your margin. A $40 order that leaves $12.54 has a 31.35% margin.
What is a good profit margin for a Shopify store?
There’s no single number, because it depends on your product, prices and ad costs. What matters most is that your margin after ads stays positive, and big enough to cover the fixed costs the calculator spreads across orders: your plan, apps and tools.
Is a 70% profit margin too high?
Check which margin it is. In the example, product cost alone leaves a 70% gross margin, but after shipping, packaging, the payment fee and ads only 31.35% is left. A 70% gross margin can still mean a thin or negative net margin.
Does 20% margin mean 20% profit?
It means 20% of what the customer paid is left over, for example $20 on a $100 order. Measured against cost it looks bigger: $20 on $80 of costs is a 25% markup.
What is a 30% margin on $100?
$30 of profit, which leaves $70 for every cost. To find the price that gives you a 30% margin with your own costs, type 30 into Target margin. For the example order it is $39.20.
What is break-even ROAS?
It’s the return on ad spend at which ads eat all your profit. It equals the order revenue divided by your profit before ads. If your break-even ROAS is 1.95×, every $1 of ads must bring in at least $1.95 of sales or you lose money. See the break-even ROAS calculator for more.
Does this include Shopify’s monthly plan?
Yes, if you enter your orders a month. The calculator spreads your plan price and app costs over each order, so a $39 plan and 100 orders adds $0.39 to the cost of each order. Tick the yearly billing box if you pay annually.
Which payment fee does it use?
By default, Shopify Payments’ online standard card rate for your plan (Basic is 2.9% + 30¢). You can switch to premium or in-person cards, add the international card extra, choose PayPal (no Shopify fee while Shopify Payments is active), or choose another provider and enter its rate; Shopify’s own third-party fee for your plan is then added. See the Shopify fee calculator for fees alone.
What’s the difference between margin and markup?
Margin is profit as a share of the selling price. Markup is profit as a share of the cost. A $12 product sold for $40 has a 233% markup but, after all costs, a much smaller margin. The markup calculator converts between them.

Related tools

Built and checked by BizMathKit
Checked by hand against Shopify pricing (US). How we check formulas. Rates last verified . Last updated . Runs in your browser — nothing you enter is sent anywhere.