How to Calculate True Profit on Shopify: 2026 Guide

Most Shopify dashboards lie to you about profit. The big number on your home screen is gross sales, which feels like a win until you remember it has not subtracted what you paid for the product, what Stripe or Shopify Payments took, what the courier charged, or the 20% off code your customer applied at checkout. This guide shows you the real Shopify profit calculation, step by step, with a worked example you can copy. By the end you will know exactly what a winning order looks like and which orders are quietly bleeding you out.

The True Profit Formula

In plain English, true profit on a Shopify order is what you keep after every variable cost the order created. The formula looks like this:

Profit = Revenue − Discounts − Payment Fees − Shipping Cost − COGS + Shipping Charged to Customer

Taxes are usually left out because they are remittable, you collect them on behalf of the government and pass them through. Fixed costs like rent, salaries, and software subscriptions are not part of per-order profit either; they belong in your monthly P&L, not the unit economics of a single sale.

Let us run a real example. A customer puts a $100 item in their cart, applies a 20% off code, and pays $4 for shipping. You ship via a courier that charges you $6 for the parcel. Shopify Payments takes 2.9% plus 30 cents. Your wholesale cost on the product is $35.

True profit on that order is $84.00 − $2.74 − $6.00 − $35.00 = $40.26, a margin of about 47.9% on the customer total. Notice how the picture changed: the Shopify dashboard would have shouted $100 at you, but you actually kept just over forty bucks. That gap is where most stores quietly lose money without realising it.

Why Revenue and Gross Sales Are Not Profit

Shopify Analytics is excellent at showing what you sold. It is not designed to show what you earned. The default reports surface gross sales, net sales (gross minus discounts and returns), and total sales (net plus shipping and tax). None of those subtract the cost of the goods, the payment processor cut, or your actual shipping spend. Merchants routinely look at a $50,000 month and assume things are healthy, only to realise during tax season that the bank balance does not match the story.

We have a longer breakdown of this exact problem in our piece on why Shopify hides real profit by default, but the short version is that Shopify is a sales platform first, and a profit-tracking platform a distant second. If you want the truth, you have to do the math yourself or use an app that does it on every order.

The Five Inputs You Need

To run an accurate Shopify profit calculation, you need five numbers per order. Get these five right and everything else falls into place.

Why Discount Codes Make This Harder

Discounts are where most merchants quietly cross from profitable to unprofitable. The reason is that discounts attack revenue but leave costs untouched. A 30% off code does not get you a 30% discount from your supplier. A free shipping promotion does not make DHL drop their rates.

Take the same $100 item, but this time the customer stacks a 30% loyalty code with free shipping. Now revenue is $70, shipping charged is $0, payment fee is $2.33, shipping cost is still $6, and COGS is still $35. Profit drops to $70 − $2.33 − $6 − $35 = $26.67. Same product, same customer, the difference between a 47% margin and a 38% margin came entirely from a promo stack. Run that across a Black Friday weekend with thousands of orders and the impact on the bottom line is brutal.

The takeaway: every time you launch a promotion, you should pre-compute the minimum margin you can tolerate and cap discounts there. A 40% off code on a product with a 45% gross margin is a thinly disguised charity event.

How to Track This Automatically

You can do all of this in a spreadsheet. People have. It works for about a week, then you forget to log an order, miscategorise a refund, or a customer service ticket eats your evening and the sheet falls behind. By the time you reconcile at the end of the month, the data is stale and the bad orders have already shipped.

The better approach is to compute true profit at the moment the order is placed, on every order, automatically. That is what real-time profit monitoring is built for: the webhook fires the instant a checkout completes, the calculation runs in milliseconds, and unprofitable orders get flagged before they leave your warehouse. You can keep a daily P&L report too, but the live signal is what stops the bleeding.

Want this calculated automatically on every order?

Profit Guard plugs into Shopify and shows real profit per order in real time. Free tier available, no credit card.

Install Profit Guard on Shopify