MarginReality

Shopify Profit Formula Explained: The Complete Breakdown

Published May 2026 · 7 min read

Quick Answer

Shopify profit = Revenue - COGS - Refunds - Payment Fees - Shipping Costs. On a $50K/month store: COGS takes $15K, refunds $2.5K, payment fees $1.5K, shipping $3K — leaving $28K profit (56% margin).

Start a free trial — Start your Shopify storeaff.

Here's the formula. It's not complicated. What's complicated is actually tracking every variable.

Profit = Revenue − COGS − Refunds − Payment Fees − Shipping Costs − Discounts

Six variables. Most Shopify merchants only track the first one. Let's walk through each with a real example: a store doing $50,000/month selling $65 products.

Revenue — the number Shopify loves to show you

$50,000. Big bold number at the top of your dashboard. This is every dollar that came in from customers — product price, shipping charges, taxes. None of the costs are subtracted yet. It's the starting line, not the finish.

COGS — what you paid for the stuff you sold

Let's say you buy products for $22 each and sell for $65. That's 33.8% COGS. On $50K revenue, that's $16,900 gone. But wait — did you include inbound shipping? Packaging? The 3% of units that arrive damaged and can't be sold? Add another $2,500. Real COGS: $19,400.

Refunds — the cost nobody budgets for

Your refund rate is 7%. That's $3,500 refunded. But you also lost the payment processing fee on those orders ($110), paid return shipping labels ($280), and spent time restocking ($150). Real refund cost: $4,040. Calculate yours →

Payment fees — the quiet $1,500/month leak

2.9% + $0.30 per transaction. On 769 orders averaging $65, that's $1,631 every month. You never see this money. It's deducted before it hits your bank. Which is exactly why most merchants forget to count it.

Shipping — the gap you pretend doesn't exist

You charge $5.99 for shipping. It actually costs $7.50 (including the box, the tape, the label). That's $1.51 per order x 769 orders = $1,161/month in shipping subsidies. Find your shipping gap →

The final number

Revenue: $50,000

COGS: -$19,400

Refunds (true cost): -$4,040

Payment fees: -$1,631

Shipping gap: -$1,161

Actual profit: $23,768 (47.5%)

Almost half your revenue disappeared before you saw it. And we didn't even count Shopify plan costs, app subscriptions, or marketing spend.

Don't do this math manually. Drop your Shopify Orders CSV into the CSV Profit Checker and get the real number in 10 seconds.

Key Terms

Grow your Shopify store

If you sign up through these links, we may earn a commission at no extra cost to you.

Frequently Asked Questions

What is the Shopify profit formula?

Profit = Revenue − COGS − Refunds − Payment Fees − Shipping Costs − Discounts. Six variables. Most merchants only track revenue and maybe COGS. The other four — refunds, payment processing fees, your shipping gap, and discounts — silently eat into your margins. A $50K/month store doing the math correctly often finds actual profit closer to $24K, not the $33K they expected.

What should I include in COGS besides the product cost?

Start with what you paid for the product, then add inbound shipping (getting inventory to your warehouse), packaging materials, and the roughly 3% of units that arrive damaged and can't be sold. On a $50K/month store, these extras can add $2,500 or more to your COGS. Skipping them makes your margins look 5% healthier than they actually are.

Why is the real cost of refunds higher than the refunded amount?

When you refund $3,500 on a $50K store (7% rate), you also lose the payment processing fee on those orders ($110), return shipping labels ($280), and restocking labor ($150). The real cost becomes $4,040 — 15% more than what you refunded. Use the Refund Cost Calculator to see your own numbers.

How much do payment processing fees really cost per month?

Shopify Payments charges 2.9% + $0.30 per transaction. On 769 orders averaging $65 (a $50K/month store), that's $1,631 every month. The fee is deducted before the money hits your bank account, which is why most merchants forget to count it. On thinner margins, this alone can be the difference between profitable and unprofitable.

How do I calculate my actual profit without doing all this math manually?

Export your Shopify Orders CSV and drop it into the CSV Profit Checker. It pulls in revenue, COGS, refunds, payment fees, shipping costs, and discounts automatically — giving you the real profit number in about 10 seconds. No spreadsheets, no manual calculations, no guessing which costs you forgot.