Shopify makes revenue easy to see.
Orders appear in your dashboard as they come in, and a good day of sales can feel like proof that a product works.
But revenue is only the top line.
Behind each order sit costs that are much less visible: the payment fee, the ad spend that brought the customer in, fulfillment, the shipping you paid for, packaging, discounts, returns and, for many stores, import costs and currency movements.
A store can grow its revenue month after month and still keep very little from each order.
So the useful question is not:
“How much did I sell?”
It is:
“How much do I really keep from each order once every cost is included?”
The simple Shopify margin calculation, and why it is incomplete
Most merchants start here:
Selling price − product cost = apparent profit
If a product sells for $80 and costs $25 from the supplier, the apparent profit is $55, or a margin of nearly 69%.
That is a reasonable first filter. It tells you whether there is room in the price.
But it is not the profit of a Shopify order. It leaves out everything that happens between finding the customer and completing the sale, and in direct-to-consumer ecommerce those costs can be large.
Costs Shopify merchants should consider
Not every cost applies to every store. The point is to check each one deliberately instead of finding it later in your bank account.
Product and supplier cost
What you pay per unit. If you buy in another currency, this also depends on the exchange rate you actually pay.
Payment processing
Most payments carry a processing fee, often a percentage of the order value plus a fixed amount per transaction. The rate depends on your country, your plan, the payment provider and the card or payment method used.
Shopify-related transaction costs
Depending on your plan and setup, there may be additional transaction fees, for example when using a third-party payment provider, as well as currency conversion charges. Check the current terms for your own plan and country.
Advertising and customer acquisition
For many DTC brands, paid ads are one of the largest costs of each order. More on this below.
Fulfillment
Picking, packing and handling each order, whether you do it yourself or pay a fulfillment provider.
Shipping you pay or subsidize
Any part of the carrier cost that the customer does not pay, including “free shipping” offers.
Packaging
Boxes, mailers, tissue, inserts and labels all add cost per order.
Apps and software
Some apps charge per order or scale with sales volume. Where a software cost genuinely grows with sales, it is worth allocating a share to each order.
Discounts and promotions
Discount codes, automatic discounts, bundles and free gifts all reduce what you actually collect.
Returns and refunds
Some orders come back. Depending on the product and your policy, a return can cost far more than the refunded price alone.
Chargebacks
Disputed payments can lead to lost revenue, lost goods and dispute fees. For most stores this is a small cost, but in some categories it is worth including.
Marketplace and channel costs
If Shopify is only one of your sales channels, products sold through marketplaces or other channels carry their own fees, which can make the same product more or less profitable depending on where it sells.
Duties and import costs
If you source internationally, customs duty, brokerage and other import charges are part of what the product really costs.
Taxes that are a genuine cost
VAT, GST or sales tax collected from the customer and passed on to the tax authority is usually not your profit, but it is not automatically a cost to you either. Where tax is recoverable or simply collected and remitted, it generally passes through. Where a tax cost cannot be recovered in your situation, it reduces what you keep and belongs in the calculation. The right treatment depends on your registration and circumstances, so it is worth confirming with a tax advisor.
Currency and FX exposure
If you buy in one currency and sell in another, or sell to customers in several currencies, exchange rates affect your margin.
Other costs directly tied to the sale
Anything else that scales with each order: customer service outsourced per ticket, warranties, or a commission to an affiliate or partner.
Shopify-related costs vary by country, plan, payment provider, currency, app stack, fulfillment model, shipping strategy and business setup. That is why this article does not list fee rates. Check the current figures for your own store before relying on them.
A more realistic Shopify profit formula
A fuller view of a single order looks something like this:
Real profit = Selling price − product cost − payment and transaction costs − advertising − fulfillment − shipping − packaging − discounts − returns − import and non-recoverable tax costs − other relevant costs
Real margin % = Real profit ÷ Selling price × 100
This is a framework for making decisions, not a universal accounting rule. Which costs apply, and how to treat them, depends on your store, your channels, where you source from and your tax position.
The aim is simply to make sure nothing that genuinely reduces your profit is left out. For a step-by-step approach that applies to any channel, see how to calculate true profit margin before selling.
An illustrative example
The figures below are invented for illustration only. They are not Shopify's fees or any provider's current rates, and they do not represent a real store.
A merchant sells a product for $80 (before any VAT or sales tax). The supplier cost is $25.
Apparent profit: $80 − $25 = $55, a 68.75% margin.
Now the merchant lists the full cost of an average order. All figures are illustrative:
- Supplier cost: $25.00
- Payment processing: $2.70
- Advertising cost per order: $16.00
- Fulfillment: $3.50
- Shipping paid by the merchant: $7.00
- Packaging: $1.20
- Returns allowance: $2.80
- Apps and software, allocated per order: $0.80
Total cost per order: $59.00
Real profit: $80 − $59.00 = $21.00, a 26.25% margin.
The product still makes money in this example. But the margin is well under half of what the first calculation suggested, and that changes how much room there is for higher ad costs, discounts or a supplier price increase.
Why customer acquisition cost changes the whole picture
In a direct-to-consumer business, advertising is often one of the largest variable costs of an order, and one of the least stable.
When ad spend goes up, revenue usually goes up too. But if each additional order costs more to acquire, profit can grow much more slowly than revenue, or even fall.
A few points worth keeping in mind:
- Acquisition cost belongs in the margin of each order, not only in a separate marketing budget.
- The cost of acquiring a new customer can be very different from the cost of selling to a returning one.
- Ad costs change with competition, season and platform, often outside your control.
There is no single ROAS, CAC or margin target that is right for every store. What a product can sustain depends on its price, its other costs and the margin you need. A more useful question is:
“How much acquisition cost can this product carry before it falls below my target margin?”
Free shipping is not free to the merchant
“Free shipping” is a promise to the customer, not a cost that disappears.
The carrier or fulfillment provider still has to be paid. If the customer does not pay for shipping, the merchant does, and that cost comes out of the margin of the order.
That does not make free shipping a bad idea. It can lift conversion and average order value. But it needs to be part of the calculation when you set prices, decide which products qualify, or choose a minimum order value for free shipping. A low-priced product with a high shipping cost can lose money on every free-shipping order while still looking healthy in the revenue report.
Discounts can increase sales while reducing contribution margin
Discount codes and promotions can produce impressive revenue days. They can also quietly remove most of the profit from each order.
Take the illustrative order above. A 20% discount code reduces the price from $80 to $64. Supplier cost, advertising, fulfillment, shipping, packaging and the other costs do not fall with the price. Even if payment processing falls in proportion (from $2.70 to $2.16), total cost per order is $58.46.
Real profit with the discount: $64 − $58.46 = $5.54, a margin of about 8.7%.
The discount took $16 off the price, and most of that came straight out of profit.
A promotion can still be the right decision, for example to clear stock or win customers who will come back. But the discounted order is its own scenario, and it is worth modeling before the promotion launches rather than after.
Returns and refunds
Expected returns are part of the real cost of selling many products, especially in categories such as apparel and footwear.
Not every return has the same economic effect. Depending on the product and your policy, a return can involve:
- outbound shipping that has already been paid
- return shipping, if you cover it
- handling and processing
- items that are damaged or cannot be resold at full price
- acquisition spend on an order that ultimately produced no revenue
A simple way to reflect this in a pre-decision calculation is to estimate a return rate and an average cost per return for the product, and include the expected cost in each order's economics.
International sourcing and landed cost
Many Shopify products are manufactured abroad, which adds costs before the inventory reaches you or your fulfillment provider:
- Supplier cost: the quoted price per unit.
- Freight: sea, air or courier transport, plus local delivery.
- Duties and customs-related costs: duty, brokerage and clearance charges, which depend on the product, its origin and the destination.
- FX: if the supplier invoices in another currency, the cost in your selling currency depends on the exchange rate.
- Incoterms: the agreed Incoterm determines which of these costs and responsibilities sit with you and which sit with the supplier. It does not set the costs themselves.
The figure that matters for margin is not the supplier quote but the landed cost: what the product really costs once it has arrived and is ready to sell.
Stress-testing a Shopify product before spending more
A margin calculated with today's numbers is a snapshot. Before scaling ad spend, launching a promotion or placing a larger order, it is worth asking:
- What if ad cost per order increases?
- What if the supplier raises its price?
- What if shipping becomes more expensive?
- What if discounts increase?
- What if returns increase?
- What selling price would I need to keep my target margin?
MarginGuides is built to answer questions like these before you commit money.
You enter your own figures for the product and order, including the fees and costs that apply to your store. MarginGuides does not connect to Shopify or read data from your store, so the numbers are the ones you supply.
Analyze shows the real profit and margin, the break-even price and, if you set a target margin, the selling price needed to reach it. A discounted price or a higher return rate can be analyzed as its own scenario and compared with the original.
Stress Test applies an explicit change, such as a higher supplier cost, higher acquisition cost, higher shipping cost, a higher payment fee or a different exchange rate, and shows how profit, margin and the decision change.
Resilience runs several adverse changes against the same baseline and shows which one would cost the most profit. It compares only the changes you choose; it does not forecast or estimate how likely they are.
Improve My Margin works backwards from your target margin. For example, it can solve for the maximum marketing and acquisition cost per order the product can carry before it falls below target, or how far the supplier cost would need to fall to reach it.
Excel vs a structured decision engine
A well-built spreadsheet can model Shopify economics, and many merchants already do this well in Excel or Google Sheets.
The work tends to grow with the number of products, channels and what-if questions: each new scenario becomes another sheet or column to build, check and keep consistent.
MarginGuides is designed to make that repeated scenario testing more structured, with the same calculation behind every analysis, stress test and solved target. For a balanced comparison of the two approaches, see MarginGuides vs Excel.
Conclusion
A Shopify product is not attractive simply because it generates revenue.
The important question is how much profit remains once the full cost of acquiring, fulfilling and servicing each order is included: payment costs, advertising, fulfillment, shipping, packaging, discounts, returns and, where relevant, import costs and currency.
Answering that before you scale spend or launch a promotion is much cheaper than discovering it afterward.
