How Do I Calculate Profit for a Shopify Store?

If you run a Shopify store, revenue is only the starting point.

A store can generate $100,000 in sales and still make very little money after product costs, advertising, shipping, payment fees, refunds, software, payroll, and other operating expenses.

So, how do you actually calculate profit?

The simplest answer is:

Profit = Revenue − Total Costs

But for ecommerce, that formula needs to be broken into several layers. Looking at gross profit, contribution profit, and net profit separately gives you a much clearer picture of where your money is going.

For Shopify merchants, this is especially important because Shopify’s built-in profit reporting primarily calculates gross profit from net sales minus recorded product costs (COGS). It does not, by itself, represent the complete net profit of your business after every operating expense.

The Short Answer: Shopify Profit Formula

For a complete business-level calculation:

Net Profit = Net Sales − COGS − Variable Costs − Operating Expenses − Other Expenses

Where:

  • Net Sales = sales after discounts, returns, and relevant sales reversals
  • COGS = direct cost of the products sold
  • Variable Costs = costs that increase with orders or sales, such as payment fees or certain fulfillment costs
  • Operating Expenses = advertising, software, payroll, rent, agencies, and other business expenses
  • Other Expenses = interest, taxes, and other applicable costs

A useful way to visualize the calculation is:

Sales → Net Sales → Gross Profit → Contribution Profit → Operating Profit → Net Profit

Each layer answers a different question.

1. Start With Revenue — But Don’t Stop There

The first number most Shopify merchants look at is sales revenue.

Suppose your store generates:

$100,000 in gross sales

That sounds impressive.

But imagine you also gave customers:

  • $5,000 in discounts
  • $3,000 in refunds and returns

Your actual net sales are closer to:

$100,000 − $5,000 − $3,000 = $92,000

This distinction matters because profitability should be calculated using the revenue that actually remains after relevant sales adjustments.

Shopify’s reporting separates gross sales, discounts, returns, and sales reversals rather than treating all sales activity as the same number.

The basic flow

Gross Sales
↓
− Discounts
↓
− Returns / Sales Reversals
↓
Net Sales

So the first mistake to avoid is:

Revenue ≠ Profit

And, depending on the definition being used:

Gross Sales ≠ Net Sales

2. Calculate COGS

Once you know your net sales, the next major cost is Cost of Goods Sold (COGS).

COGS represents the direct costs associated with the products you sold.

For an ecommerce store, this can include things such as:

  • Product purchase cost
  • Manufacturing costs
  • Raw materials
  • Direct production labor
  • Certain inbound freight or import costs
  • Packaging directly associated with preparing products for sale

 

The exact accounting treatment depends on your business and accounting method, but the key idea is simple:

COGS is the direct cost of producing or acquiring the products that generated your sales.

Shopify’s gross profit calculation is based on net sales minus cost of goods sold. 

Read more: Shopify – Profit Reports

3. Calculate Gross Profit

Now we can calculate the first meaningful level of profit.

Formula

Gross Profit = Net Sales − COGS

Imagine:

  • Net Sales = $92,000

  • COGS = $36,800

Then:

$92,000 − $36,800 = $55,200

Your store generated:

$55,200 Gross Profit

Your gross margin is:

$55,200 ÷ $92,000 × 100 = 60%

So:

Gross Margin = 60%

This means that for every $1 of net sales, the store retains about $0.60 after direct product costs, before other expenses.

Shopify defines gross margin as gross profit divided by net sales.

Gross Profit vs. Gross Margin

These two metrics are closely related but answer different questions.

MetricWhat it tells you
Gross ProfitHow many dollars remain after COGS
Gross MarginWhat percentage of net sales remains after COGS

For example:

$100,000 Net Sales
$40,000 COGS
$60,000 Gross Profit
60% Gross Margin 

Gross profit is particularly useful when determining whether your store generates enough dollars to cover the rest of the business’s expenses.

Gross margin is useful when comparing products, periods, pricing strategies, or changes in COGS.

4. Don’t Confuse Gross Profit With Net Profit

This is one of the biggest mistakes Shopify merchants make when analyzing profitability.

Suppose your store has:

$100,000 Net Sales

and:

$40,000 COGS

You have:

$60,000 Gross Profit

It would be incorrect to say:

“My store made $60,000 in profit.”

That’s gross profit, not necessarily the money your business actually kept.

You still need to account for the costs of running the store.

For example:

CostAmount
Net Sales$100,000
COGS−$40,000
Gross Profit$60,000
Advertising−$20,000
Shipping/Fulfillment−$8,000
Payment Fees−$3,000
Software−$2,000
Payroll−$10,000
Other Operating Expenses−$5,000
Net Profit$12,000

The store generated $100,000 in sales, but only $12,000 in net profit.

That’s a 12% net profit margin.

This is why revenue alone can give you a very misleading picture of business performance.

5. Where Does Marketing Fit Into Shopify Profit?

For many ecommerce businesses, marketing is one of the largest costs outside COGS.

Imagine two Shopify stores.

Store A

  • Revenue: $100,000
  • COGS: $40,000
  • Marketing: $10,000
  • Other expenses: $20,000
  • Profit: $30,000

 

Store B

  • Revenue: $100,000
  • COGS: $40,000
  • Marketing: $30,000
  • Other expenses: $20,000
  • Profit: $10,000

Both stores generated exactly:

$100,000 in revenue

But Store A made 3× as much profit.

This is why metrics such as ROAS and MER should not be confused with profitability.

A campaign can generate strong attributed revenue while still producing weak or negative business-level profit.

6. ROAS Is Not Profit

Suppose you spend:

$10,000 on advertising

and generate:

$50,000 in attributed revenue

Your ROAS is:

$50,000 ÷ $10,000 = 5×

That sounds excellent.

But what if:

  • COGS = $25,000
  • Shipping = $5,000
  • Payment fees = $2,000
  • Returns = $3,000
  • Other costs = $8,000

The economics become very different.

The important question isn’t just:

“How much revenue did my ads generate?”

It’s:

“How much profit remained after the costs required to generate and fulfill those sales?”

That’s the fundamental difference between revenue efficiency and profitability.

7. MER Gives You a Bigger Marketing Picture

This is where Marketing Efficiency Ratio (MER) becomes useful.

Formula

MER = Total Revenue ÷ Total Marketing Spend

For example:

  • Total Revenue = $100,000
  • Marketing Spend = $20,000

MER = 5×

That means the business generated $5 in revenue for every $1 spent on marketing.

But again:

MER is not profit.

A 5× MER can still be unprofitable if the store has low product margins or high operating costs.

This is why MER belongs in the profitability analysis rather than replacing it.

A useful hierarchy is:

CPM
↓
CTR / CPC
↓
CPA / CAC
↓
ROAS
↓
MER
↓
Contribution Profit
↓
Net Profit

Each step gives you a wider view of the business.

8. Contribution Profit: The Missing Layer

For ecommerce businesses, there is another useful layer between gross profit and net profit:

Contribution Profit

Contribution profit looks at the money remaining after costs that are directly associated with generating and fulfilling sales.

Depending on your accounting setup, this may include:

  • COGS
  • Payment processing fees
  • Fulfillment costs
  • Shipping costs
  • Marketplace fees
  • Variable transaction costs
  • Marketing costs

The exact definition should be consistent with your business model.

For example:

$100 Sale

− $40 COGS
− $5 Payment + fulfillment costs
− $20 Marketing

= $35 Contribution Profit

That $35 is much more informative for certain decisions than looking at the $100 revenue alone.

It helps answer:

“After the costs required to make and fulfill this sale, how much money is this order actually contributing to the business?”

This is particularly useful when evaluating:

  • Ad campaigns
  • Promotions
  • Discounts
  • Products
  • Customer acquisition
  • Free shipping offers
  • Scaling decisions

9. A Complete Shopify Profit Example 

10. How Shopify’s Built-In Profit Reports Work

Shopify already provides profit reporting, but understanding what those reports include is important.

Shopify’s profit reports can show:

  • Gross profit by product
  • Gross profit by product variant
  • Gross profit by POS location
  • Profit margin by order
    Average profit margin by market

 

However, Shopify’s profit reporting depends on having cost per item recorded for products or variants. If product costs aren’t recorded, Shopify may not include those sales in its gross-profit calculation.

This creates an important distinction:

Shopify’s gross profit view

Net Sales − Recorded Product Costs

vs.

Full business profitability

Net Sales − COGS − Marketing − Fulfillment − Fees − Operating Expenses − Other Costs

The second calculation is what you need to understand true business profitability. 

However, this is where dedicated GoProfit analytics view becomes useful.

Shopify tells you a lot about sales and product-level gross profit. But merchants often need to connect that information with the costs that happen after the sale.

GoProfit brings these numbers together so you can move from:

Sales → Gross Profit → Expenses → Net Profit

Instead of looking at advertising in one place, product costs somewhere else, and operating expenses separately, you can evaluate how these costs affect the final profit your store actually keeps.

For example, a merchant might see:

$150K in sales → $81K gross profit → $20K net profit

That immediately changes the question from:

“How can I increase sales?”

to:

“What is taking $61K away from my gross profit, and where can I improve?”

That is the real value of profit reporting.

From reporting numbers to making decisions

A profit report becomes much more useful when it helps you identify what to do next.

For example:

  • Gross margin is falling → investigate COGS, discounts, or product mix.
  • Advertising spend is increasing faster than profit → look beyond ROAS and evaluate marketing profitability.
  • Sales are growing but net profit is flat → find the costs absorbing the additional revenue.
  • A best-selling product has weak margins → consider pricing, COGS, or promotion strategy.
  • Shipping costs are eating into margins → evaluate fulfillment costs and order economics.

 

So the goal isn’t simply to produce another report.

The goal is to understand where your money is going — and which numbers are actually driving your profit.

Shopify + GoProfit: different layers of the same picture

Think of it this way:

Shopify
→ What did I sell?
→ What did those products cost?
→ What is my gross profit?

GoProfit
→ What did I actually keep after the costs of running and marketing the business?
→ Which costs are reducing my profit?
→ Where are my biggest profit opportunities?

For Shopify merchants, these aren’t competing questions. They are different layers of the same profitability picture.

And that distinction matters because $150,000 in sales sounds impressive — but $20,000 in net profit tells you much more about the actual financial outcome.