How to Track Inventory Costs in Shopify: Your Guide to Profitability

TL;DR

Shopify's cost of goods (COGS) tracking requires entering product costs manually or through bulk CSV import — Shopify does not automatically pull costs from supplier invoices. Once costs are entered, Shopify's Finances reports show gross margin per product, and the Inventory report shows total inventory value. For accurate COGS accounting, you need either Shopify's built-in cost fields (basic) or a third-party accounting integration like QuickBooks or Xero.

Revenue is vanity, profit is sanity.

You can hit six figures in a month and still be broke at tax time. We've seen it happen more times than we can count. 

The culprit? Most Shopify merchants have no idea what their actual Cost of Goods Sold (COGS) is. They know what they paid the supplier, sure. 

But shipping? Duties? Storage? That's where the math gets fuzzy.

This guide will help you move beyond counting units and start tracking the numbers that matter so every sale you make is genuinely profitable, not just busy work. 

We are a Shopify marketing agency led by Jack Paxton, a highly-regarded eCommerce marketing expert. This article is written from our own perspective, so reach out if you have questions.

Does Shopify automatically track cost of goods sold?

No — Shopify's "cost per item" field requires manual entry or CSV bulk import. Once entered, Shopify reports gross margin per product and total inventory value, but accurate ongoing COGS accounting needs a QuickBooks or Xero integration or a dedicated inventory app.

What's the difference between landed cost and unit cost in Shopify?

Unit cost is what you pay your supplier per item; landed cost adds shipping, duties, customs, and 3PL handling. Tracking landed cost (typically 15–35% higher than unit cost) is the only way to see true gross margin — and it's the number Shopify's native field doesn't capture.

Should Shopify stores use FIFO or average cost for inventory valuation?

FIFO (first-in, first-out) is the GAAP standard for most US DTC brands and produces cleaner financials when input costs rise. Average cost is simpler operationally but masks margin compression. Pick one method, document it, and stay consistent across reporting periods.

Understanding the "Cost Per Item" Field

Everything starts with Shopify's Cost per item field. You'll find it in the pricing section of every product variant, and it's the brain behind all your profit reports.

How it works: Enter your inventory cost here, and Shopify automatically calculates your margin and gross profit for every sale.

The gotcha: This field is not retroactive. If you sold 100 units with the cost set to zero, then update it to $10, Shopify won't go back and fix your past sales. Those reports are cooked.

Why you can't skip this: Without cost data, your "Profit" reports are just your "Gross Sales" reports wearing a fake mustache. You're lying to yourself about how healthy your business actually is.

Method 1: Manual Tracking & Bulk Editing 

If you've got a manageable catalog, manual updates are totally fine. You don't need fancy software—you just need to actually do it.

The Bulk Editor: Go to Products, select everything, hit Bulk Edit. Add the "Cost per item" column and tab through like a spreadsheet. Done.

CSV Uploads: For bigger catalogs, export your products to CSV, open it in Excel or Google Sheets, find the Variant Cost column, fill it in, and re-import. Just make sure to select "Overwrite any current products that have the same handle."

The downside: This is set-and-forget. When your supplier raises prices next quarter (and they will), you have to remember to update everything again. If you don't, your margin data slowly rots.

Method 2: Landed Cost vs. Unit Cost

Here's where most people make mistakes: they think the factory price is the cost. It's not. Not even close.

You need to calculate your Landed Cost: the total price of getting a product to your warehouse. That includes:

  • Unit Price: What the manufacturer charged
  • Freight: Shipping by sea, air, or truck
  • Customs & Duties: Import taxes and brokerage fees
  • Packaging: Boxes, labels, inserts, tape

Here is the formula to track landed cost:

If you're only tracking the unit price, you're letting your team burn money on products that are secretly expensive to get into the country. Don't do that.

Method 3: Using Shopify Reports for Financial Clarity

Once you've got cost data in place, Shopify's Analytics section stops being a vanity dashboard and starts being useful.

  • Profit by Product Report: This tells you which products are heroes and which are zombies. High sales volume means nothing if the margin is garbage.
  • Inventory Value Report: Critical for year-end accounting. Shows you exactly how much cash is sitting in boxes on shelves.
  • Product ABC Analysis: Categorizes your inventory. A-grade items drive 80% of your revenue. If you're only going to track costs for some products, start with these.

Inventory Valuation: FIFO vs. Average Cost

What happens when you buy the same product at different prices over time?

Shopify uses Average Cost logic by default. Buy 50 units at $10, then 50 more at $12, and Shopify values your inventory at $11.

But many accountants prefer FIFO (First-In, First-Out), where the oldest stock gets "sold" first. 

If your CPA insists on FIFO for tax purposes, Shopify's native tools won't cut it—you'll need a dedicated inventory app.

Strategic Comparison: Shopify Native vs. Advanced Tools

Here's how to know if you've outgrown the basics:

Method 4: Advanced Cost Tracking with Inventory Apps

If you're dealing with international suppliers, multiple currencies, or prices that change monthly, Shopify's native setup will eventually fail you. That's when apps become worth it.

Stocky (by Shopify): If you use Shopify POS, this is a solid bridge. Create Purchase Orders and "receive" stock at specific costs.

Prediko: The gold standard for serious brands. Deep financial tracking, COGS trend analysis, and forecasting that tells you exactly how much cash you need for your next production run.

Cloud Accounting Sync: Tools like A2X connect Shopify to QuickBooks or Xero so your bookkeeper sees the same numbers you do. No more month-end reconciliation nightmares.

Common Pitfalls & How to Avoid Them

There are few things you need to consider when you want to track inventory costs in Shopiify:

Ignoring Currency Fluctuations: If you pay in USD but sell in GBP, a 5% exchange rate swing can quietly erase your profit. Use a conservative average exchange rate when setting costs.

Forgetting Returns: When a customer returns something damaged that you can't resell, that cost needs to move from "Inventory Asset" to "Loss." Don't let broken products haunt your margin reports.

Putting Shipping in the Wrong Place: Some merchants dump shipping into "Operating Expenses" instead of COGS. Both affect net profit, but only COGS gives you an accurate Gross Margin.

Action Plan For Tracking Costs in Shopify

You can't scale what you don't measure. Tracking inventory costs is what separates businesses from expensive hobbies. Once you shift to a "Landed Cost" mindset, you'll have the clarity to spend aggressively on marketing and restock with confidence.

Your 3-Step Action Plan:

  1. Audit: Export your products today. How many are missing a "Cost per item"? Fix that.
  2. Calculate: Run the Landed Cost formula for your top 5 bestsellers. Prepare to be surprised (and maybe a little horrified).
  3. Automate: If you've got 50+ SKUs and costs that change regularly, try an app like Prediko. Your future self will thank you.

Stop celebrating revenue. Start protecting profit.

If you want someone to take care of this for you as well as manage advertising and other operations, reach out.

Frequently Asked Questions

How do I enter product costs in Shopify?

In Shopify Admin, go to Products > select a product > scroll to the Cost per item field in the Pricing section. Enter the cost (not including shipping or overhead) for the product or each variant. Shopify uses this to calculate gross margin in reports. For bulk updates, export your product CSV, fill in the Cost per item column, and reimport. Keeping costs current after every supplier price change is essential for accurate margin reporting.

Where can I see COGS reports in Shopify?

Shopify's COGS reporting is in Analytics > Reports > Finances > Profit by product. This shows revenue, cost, gross profit, and gross margin percentage per product over your selected date range. You can also see total inventory value (at cost) in Inventory > Export, then filter the CSV by 'Cost per item' multiplied by 'On hand.' Shopify's built-in reports are adequate for basic cost tracking; for full P&L accounting, use QuickBooks or Xero integrated with Shopify.

Does Shopify track inventory valuation?

Yes, partially. Shopify calculates inventory value as (cost per item × on-hand quantity) for all products with cost data entered. View this in Inventory > Analytics or export your inventory as a CSV and calculate total value. Shopify uses FIFO (First In, First Out) cost accounting for inventory valuation in its reports. For more sophisticated inventory costing methods (weighted average, LIFO), you need an integrated accounting tool.

What is the best way to track inventory costs for a growing Shopify store?

For most Shopify stores under $2M/year, Shopify's built-in cost fields + QuickBooks Online integration provides adequate COGS tracking. Above $2M or with complex inventory (multiple warehouses, assemblies, or manufacturing), consider a dedicated inventory management system (Cin7, Brightpearl, or Katana) that integrates with both Shopify and your accounting software for real-time inventory valuation.

How do I calculate gross margin in Shopify?

Shopify calculates gross margin automatically for products with cost data entered: Gross Margin = (Revenue - COGS) ÷ Revenue × 100%. Find this in Analytics > Reports > Finances > Profit by product. At the store level, your blended gross margin is total revenue minus total product cost, divided by total revenue. Track this monthly — declining gross margin (without deliberate changes) usually signals rising supplier costs or product mix shift toward lower-margin items.

How do I account for shipping costs in Shopify inventory tracking?

Shopify's 'Cost per item' field is intended for product cost only (what you paid the supplier). Inbound shipping costs (freight, duties) are typically added as a percentage of product cost or tracked separately as overhead. For accurate landed cost calculation, use an inventory management tool like Cin7 or a spreadsheet that adds inbound freight ÷ units received to each product's cost basis. This matters significantly for imported goods with high freight costs.

You May Also Like...

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This