Shopify profit margin calculator

Enter one order: price, cost of goods, shipping, packaging and your Shopify plan. You'll get the contribution margin left after fees, discounts and refunds, the ad cost that margin can afford, and the break-even ROAS (return on ad spend) it implies.

The order

Before any discount, excluding sales tax or VAT.

Average discount on this product. 0 if none.

What the customer pays. 0 for free shipping.

Your costs

Landed cost: Shopify's Cost per item plus inbound freight and duties. Leave blank if you don't know it.

Carrier or fulfilment partner, per order.

Box, inserts, tape. 0 if none.

Shopify fees

Fills the Shopify Payments online card rate for the plan (US, checked November 2026). Edit the fields to match your payouts.

Shopify adds a transaction fee only when another provider replaces Shopify Payments. PayPal offered alongside Shopify Payments isn't charged it.

After the sale

Share of sales you refund; blank counts as 0. The goods, shipping and fees are counted as still paid.

Of the order value. Sets the ad cost the order can afford.

Optional: ad spend ÷ orders for the period. Leave blank to skip.

Contribution margin
37.6%
$22.56 of a $60.00 order, after goods, shipping, packaging, fees and refunds.
Gross margin
60.0%
$36.00 on the $60.00 product price, cost of goods only.
Fees and refunds
$4.44
$2.04 in fees, $2.40 refunded.
Break-even ROAS
2.66×
Below this, ads lose money on the order.
Max ad cost per order
$16.56
Keeps 10% of the order as profit after ads.

Estimates from the numbers you enter and Shopify's published rates. Your payouts show the real fee.

Running several products or campaigns? The break-even ROAS calculator does this for a product mix and sets a target ROAS.

How to calculate profit margin on a Shopify order

A product's margin on paper is price minus cost. An order's margin is what is left after the costs that come with every order, before ads. This Shopify profit calculator works through both, in this order:

net price = price − discount
order value = net price + shipping charged to the customer
gross profit = net price − cost of goods
gross margin = gross profit ÷ net price
contribution = order value × (1 − refund rate) − cost of goods − shipping − packaging − payment fees
contribution margin = contribution ÷ order value

Worked example

A product sells for $60 with free shipping. The goods cost $24, shipping costs $8, packaging $1. The store is on Shopify Basic with Shopify Payments, so the card fee is 2.9% + 30¢, which is $2.04 on this order. About 4% of sales come back as refunds, which is $2.40 per order on average.

gross profit = $60 − $24 = $36.00 (60.0%)
contribution = $60 − $2.40 − $24 − $8 − $1 − $2.04 = $22.56
contribution margin = $22.56 ÷ $60 = 37.6%

A 60% gross margin is a 37.6% contribution margin. That $22.56 is what the order can spend on ads before it loses money, so the break-even ROAS is $60 ÷ $22.56 = 2.66×. To keep 10% of the order ($6) as profit, ads can cost at most $16.56 per order. If they actually cost $12, the order leaves $10.56, or 17.6%, before fixed costs.

Three margins, one order

The first is close to the gross profit in Shopify's reports, which also takes returns off net sales. The second is the one your ads have to pay for; Ordinary works it out on every order from your actual costs and refunds and reports it as contribution margin. The third is what is left for apps, staff and rent.

Gross margin, contribution margin and profit after ads on the worked example
MarginDeductsDoes not deductShare ofExample
Gross marginCost of goodsShipping, packaging, fees, refunds, adsProduct price after discount$36.00 · 60.0%
Contribution marginGoods, shipping, packaging, payment fees, refundsAds and fixed costsOrder value, including shipping charged$22.56 · 37.6%
Profit after adsAll of the above plus ad cost per orderApps, staff, rent, softwareOrder value$10.56 · 17.6% at $12 of ads

The per-order mode is the contribution margin calculator. The Margin and markup mode is a plain margin and markup calculator for a price and a cost, with no order costs.

Shopify fees by plan

The calculator pre-fills the Shopify Payments rate for online card payments in the US, from Shopify's pricing page, checked November 2026. If you take payment through another provider, enter that provider's rate and the calculator adds Shopify's own transaction fee for your plan.

Shopify Payments online card rates and the added transaction fee on another provider, by plan
PlanShopify Payments, online cardAdded fee on another provider
Basic2.9% + 30¢2%
Grow2.7% + 30¢1%
Advanced2.5% + 30¢0.6%
Plus2.25% + 30¢0.2%

Shopify charges the added fee only when another provider replaces Shopify Payments; PayPal offered alongside Shopify Payments is not charged it. Rates for in-person sales, international cards, currency conversion and stores outside the US differ, and Plus merchants on volume agreements may pay less than the published Plus rate shown. Fees here are worked out on the pre-tax amount, while your processor charges on the total including tax, so the real fee is a little higher on taxed orders. The surest figure is your own: open a payout in Shopify's Finances section, read the fee on an order, and enter your rate as a custom rate.

If you only want the fee line, pick the plan and read the fees and refunds figure: a Shopify fees calculator for one order.

Where the inputs come from in Shopify

  • Cost of goods: start from the Cost per item field on each product variant (Shopify defines it as what the product itself costs you, before shipping and tax) and add inbound freight and duties if you want the landed cost. If you don't know the cost, leave the field blank here rather than typing 0: a blank gives a dash, a zero gives a margin that looks real and is wrong. The product costs guide covers filling the gaps.
  • Payment fees: pick your plan, or take the fee from a recent payout and enter it as a custom rate.
  • Shipping and packaging: your carrier or fulfilment partner's invoice divided by orders, or what you pay for labels if you buy them through Shopify.
  • Refunds: the Returns column of Shopify's sales reports as a share of gross sales over the last 90 days.
  • Ad cost per order: ad spend divided by orders for the same period, from your ad platform. Optional; leave it blank to see the margin before ads.

Margin vs markup

margin = profit ÷ selling price
markup = profit ÷ cost

A product that sells for $50 and costs $30 makes $20: a 40% margin and a 66.7% markup. Adding 40% to the cost instead gives $42, which is only a 28.6% margin. That gap is a common pricing mistake, and the Margin and markup mode shows both side by side.

Working backwards from a target margin

price = cost ÷ (1 − target margin)

For a 40% margin on a $30 cost: $30 ÷ (1 − 0.40) = $50. Use the Price for a target margin mode for any cost, then enter that price and your cost in the per-order mode to see what is left once shipping, fees and refunds are in. To set a ROAS target per campaign from the same costs, use the break-even ROAS calculator.

With Ordinary

Contribution margin on every order, not one product at a time.

A calculator shows one order with the costs you typed in. Across a store the product mix, discounts, shipping options and refunds change every day, and the order that barely pays for itself hides inside the blended average.

Ordinary reads cost per item from Shopify, adds your shipping, fulfilment and payment fees, and records what each order cost when it was placed. Profit per product and per channel sits next to revenue, so you can see which products and campaigns clear their own break-even. Costs sync on every plan; profit per product and the Offer Calculator are on Advanced and above.

Frequently asked questions

How do I calculate profit margin on a Shopify order?

Start from the price after any discount and add any shipping the customer paid. Subtract the cost of goods, your own shipping and packaging, the payment fee (worked out here on the pre-tax amount), and the share of sales you expect to refund. What is left is the contribution per order; divide it by the order value for the contribution margin. The calculator does this with your Shopify plan's fees filled in.

What fees does Shopify take on each sale?

With Shopify Payments in the US, online card payments cost 2.9% + 30¢ on Basic, 2.7% + 30¢ on Grow, 2.5% + 30¢ on Advanced, 2.25% + 30¢ on Plus (Shopify's pricing page, checked November 2026). If you take payment through another provider, Shopify adds a transaction fee of 2% on Basic, 1% on Grow, 0.6% on Advanced, 0.2% on Plus on top of that provider's own rate, but only when that provider replaces Shopify Payments: PayPal offered alongside Shopify Payments is not charged it. Rates for in-person sales, international cards, currency conversion and other countries differ.

What is the difference between gross margin and contribution margin?

Gross margin subtracts only the cost of the goods from the price. It is close to the gross profit in Shopify's reports, which also takes returns off net sales first. Contribution margin also subtracts the costs that come with every order: shipping, packaging, payment fees and refunds. It is the margin that has to pay for your ads, so it sets your break-even ROAS. Profit after ads subtracts the ad cost per order as well; fixed costs such as apps, staff and rent come after that.

Should I include shipping I charge the customer?

Yes, as revenue. If the customer pays $6 for shipping that costs you $8, the order keeps most of that $6 after the payment fee and refunds on it, so it does better than with free shipping. The calculator leaves it out of gross margin, which Shopify reports on product sales only, and includes it in the order value that contribution margin and break-even ROAS use.

How do refunds change the margin?

A refunded order gives the revenue back, but you have usually already paid for the goods and the shipping, and payment processors, Shopify Payments included, generally keep their fee on a refund. The calculator takes that cautious view: enter the share of sales you refund and it removes that share of revenue while keeping every cost. At 4% refunds on a $60 order, that is $2.40 per order. Ordinary's reports take a returned item's cost off with its revenue; the calculator keeps it, which is the cautious view.

What is a good profit margin for a Shopify store?

There is no single right number, and a gross margin on its own says little. What matters is the contribution margin, because it has to cover your ad cost and leave a profit. In the worked example a 60% gross margin becomes a 37.6% contribution margin after fees, shipping, packaging and refunds, which means ads can cost at most a little under 40 cents of every dollar of the order before the sale loses money.

What is 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. The same $20 profit on a $30 cost and $50 price is a 40% margin and a 66.7% markup. Pricing with a 40% markup instead of a 40% margin leaves you at 28.6% margin.

How do I price a product for a target margin?

Divide the cost by one minus the target margin. For a 40% margin on a $30 cost: $30 ÷ 0.6 = $50. Use the price-for-a-target-margin mode to do it for any cost, then enter that price and cost in the per-order mode to see what is left once shipping, fees and refunds are in.