Shopify COGS accounting is the process of booking the cost of inventory sold through a Shopify store to the general ledger each month. Shopify itself does not post a COGS journal entry. The Cost per Item field is a product attribute used for reports — the actual entry is a periodic accrual that bookkeepers calculate from inventory movements and book manually in QuickBooks or Xero.
This guide is the month-end close playbook Ottit runs for 100+ Shopify brands. We skip the "what is COGS" primer that every ranking page already covers and go deep on the three adjustments that break most closes: landed cost timing, returns reversals, and bundle allocation. If you've ever stared at Shopify's cost report and your QuickBooks inventory balance and wondered why they don't match, this is for you.
What Is Shopify COGS Accounting?
Shopify COGS accounting is the monthly workflow of calculating the cost of goods sold through a Shopify store and recording it as a journal entry in your accounting software. It involves three accounts: Inventory (asset), Purchases (clearing or direct to inventory), and Cost of Goods Sold (expense). The entry reduces inventory and increases COGS by the cost of units shipped.
The thing most new Shopify finance leads miss: Shopify does not know your true cost. It knows the number you typed into the Cost per Item field at some point. That number drives Shopify's gross margin reports, but it does not sync to your accounting software as a journal entry. The GL side is a separate workflow.
For a conceptual walkthrough of whether COGS is an expense or something else, see our guide on is cost of goods sold an expense.
How Does Shopify Track Cost of Goods Sold?
Shopify tracks COGS at the variant level through the Cost per Item field on each product. When an order ships, Shopify multiplies units sold by Cost per Item to populate gross profit in its reports. This is a reporting calculation only. It does not create a journal entry, update your inventory asset, or sync to QuickBooks or Xero without a third-party app.
The Cost per Item field has three practical limits. First, it is a single static number per variant — it does not change when your landed cost changes mid-month. Second, it does not allocate freight-in, duties, or inbound 3PL fees unless you manually bake them in. Third, it ignores returns. If a $40 cost item is refunded, Shopify reverses the $100 sale but not the $40 cost.
See the Shopify Analytics and Reports documentation for how Shopify surfaces the Cost per Item in Finance reports.
What Are the Main Shopify COGS Accounting Methods?
Two methods dominate Shopify COGS accounting: perpetual and periodic. Perpetual books COGS at each sale through an integrated inventory system. Periodic books one journal entry at month-end based on counted or system-reconciled inventory. Most sub-$10M Shopify brands run periodic because Shopify's native stack does not support real-time COGS posting without heavy ERP tooling.
Periodic (what most brands actually do)
At the end of the month, you calculate: beginning inventory + inventory received during the month − ending inventory on hand = COGS for the period. You post one journal entry. This is what the Shopify brands Ottit closes books for use, unless they're on NetSuite or Cin7 with full perpetual tracking.
Perpetual (ERP-driven)
Each shipment triggers a COGS entry in real time. Requires an inventory system of record (Cin7, NetSuite, Brightpearl) that writes to the GL. Clean, but overkill for a $2M DTC brand with one SKU family.
| Method | When It Fits | GL Tool | Inventory Tool |
|---|---|---|---|
| Periodic monthly | Sub-$10M DTC brands, single warehouse | QuickBooks or Xero | Shopify + spreadsheet or Stockroom |
| Periodic weekly | $10M+ brands with faster close cadence | QuickBooks or Xero | Cin7 or similar |
| Perpetual | $20M+ or multi-channel with ERP | NetSuite | NetSuite inventory module |
How Do You Record Shopify COGS Journal Entries?
The standard Shopify COGS journal entry debits Cost of Goods Sold and credits Inventory for the total cost of units shipped during the period. The amount comes from the inventory formula, not from Shopify's reports directly. Separately, inventory purchases received during the month debit Inventory and credit Accounts Payable (or Cash) when the bill arrives.
The purchase entry (when inventory arrives)
The month-end COGS entry
This entry is why Shopify brands need a reliable ending inventory count. If the warehouse count is wrong, COGS is wrong. For a broader view of month-end adjusting entries, see our guide on how to book adjusting entries for a Shopify month-end close.
Which Apps Handle Shopify COGS Best?
No single app handles the full Shopify COGS workflow end-to-end. You need two layers: a payout sync tool that moves Shopify sales, fees, and refunds into your GL, and an inventory system that tracks units and landed cost. The payout tool does not calculate COGS. The inventory tool does.
Payout sync (sales side)
For the 100+ Shopify stores Ottit closes books for, we use Bookkeep to summarize Shopify payouts into clean daily or monthly journals in QuickBooks or Xero. Bookkeep posts sales, discounts, fees, refunds, gift cards, and sales tax by account — it does not touch COGS. Synder is another payout sync option documented in the Synder Shopify integration guide.
A2X is a well-known alternative in this category, though for the stacks Ottit runs we've standardized on Bookkeep because its sales tax detail and multi-store consolidation fit DTC close workflows better. A2X covers the same payout-sync job.
Inventory and landed cost (COGS side)
For sub-$10M brands, a spreadsheet plus Shopify's inventory report works. For $10M+, a dedicated inventory system is table stakes.
- Cin7 — full inventory ERP with landed cost, works for brands on QuickBooks or Xero and scaling into multi-channel.
- Stockroom — Shopify-first landed cost tracking that writes true per-unit cost at receiving.
- DOSS — operations platform with inventory and purchase order management for growing brands.
- NetSuite — perpetual inventory, best for $20M+ brands that have outgrown QuickBooks.
Profit dashboards (reporting, not GL)
Triple Whale, Northbeam, and app-store tools like OpenProfit calculate contribution margin from Shopify data. They are reporting layers, not accounting systems. They do not replace the GL journal entry. For attribution-driven profitability, Triple Whale is the tool we see most across the stores we work with.
How Do You Calculate Landed Cost for Shopify COGS?
Landed cost is the full per-unit cost to get inventory to your warehouse ready to sell: product cost + freight-in + duties + inbound 3PL receiving fees + any inspection or compliance costs. For Shopify COGS to be accurate, the Cost per Item field (and your GL inventory balance) must reflect landed cost, not just the invoice price from the supplier.
The landed cost formula
The invoice says $16/unit. The landed cost is $21/unit. If you only load $16 into Shopify's Cost per Item, every gross margin report is 31% overstated. Scaled across a year, that's the difference between a brand that thinks it's profitable and one that actually is.
The landed cost timing problem
Freight and duty invoices arrive 30–60 days after the inventory lands. The common fix: book an accrual at receiving based on a standard landed-cost percentage, then true up when the actual freight invoice arrives. The accrual hits inventory (not an expense) because the cost is attached to units sitting in your warehouse.
For the broader accrual mechanics, see our accrued expenses playbook.
How Do You Handle Returns and Refunds in Shopify COGS?
When a customer returns sellable product, two separate entries happen. Shopify reverses the sale and refunds the customer automatically. The cost side is manual: debit Inventory and credit COGS for the cost of the returned unit. If the return is damaged and scrapped, debit Inventory Write-Off (expense) instead of Inventory.
The sale reversal (Shopify side)
Bookkeep or your payout sync tool handles this automatically — refunds show up as negative sales and negative sales tax in the daily payout journal. No manual work.
The cost reversal (manual, every month)
This is the step most Shopify brands skip for the first year. Example: 40 units returned in September at $21 landed cost each.
For damaged returns that cannot be resold, the credit goes to COGS the same way, but the debit goes to an Inventory Write-Off expense account rather than Inventory. For a deeper walkthrough of return mechanics, see our sales returns and allowances guide.
How Do You Allocate COGS for Shopify Bundles and Kits?
Shopify treats a bundle as a single SKU with a single Cost per Item. If the bundle is actually three component SKUs picked and packed together, the Cost per Item field has to equal the sum of the three component costs — or your COGS will be wrong every time a bundle sells. This breaks silently and compounds.
The clean fix: use a bundle app like Shopify's native Bundles, Bundler, or an ERP module that tracks components. The bundle SKU gets zero Cost per Item in Shopify, but the inventory system deducts the three components at their individual landed cost when a bundle order ships. The GL inventory entry is driven by the component movement, not the bundle SKU.
For brands without a bundle system, the workaround is a monthly manual journal: calculate bundles shipped × component cost − bundle Cost per Item recorded, and true up with an adjusting entry. Painful but necessary for accurate margin reporting.
What Are the Most Common Shopify COGS Mistakes?
Across the stores Ottit works with, five Shopify COGS mistakes come up on nearly every onboarding. Each one either overstates or understates gross margin by a material amount.
- Expensing inventory purchases to COGS at receipt. Buying $50K of product and booking it all to COGS this month inflates expenses and empties the inventory asset. Correct treatment: debit Inventory, not COGS, until units ship.
- Loading Cost per Item without landed cost. Using the supplier invoice price only. Freight and duties get missed. Gross margin looks great until the P&L closes and operating income doesn't match.
- Never reversing cost on returns. Shopify refunds the sale, but the cost sits in COGS forever. Over a year with 8% return rate, this understates ending inventory meaningfully.
- Bundle Cost per Item set to the component sum, but inventory also deducted at component level. Double-counting. The bundle SKU should have zero cost if components are tracked separately.
- Reconciling Shopify's cost report to GL inventory and expecting them to match. Shopify's report uses current Cost per Item for every historical sale. GL inventory uses the landed cost at the time of each receipt. They will not match. Reconcile to unit movement, not dollar totals.
How Does Shopify COGS Affect Tax Filings?
COGS directly reduces taxable income. For US Shopify brands filing Schedule C, Form 1120, or 1120-S, COGS flows through a specific section (Form 1125-A for corporations) that requires beginning inventory, purchases, labor, and ending inventory. Overstating ending inventory understates COGS and overstates taxable income — the IRS cares about this specifically.
The inventory method you pick (FIFO, LIFO, weighted average, specific identification) must be consistent year over year. Most Shopify brands use FIFO or weighted average because they match how DTC inventory actually moves. Changing methods requires IRS Form 3115. See the AICPA GAAP overview for the accounting principles that underpin inventory valuation.
Section 263A (UNICAP) rules can require capitalizing certain indirect costs (warehouse rent, inventory handling labor) into inventory rather than expensing them, if the brand hits the gross receipts threshold. This is a conversation for a tax CPA, not a bookkeeper. For broader e-commerce tax context, our tax for ecommerce playbook covers the P&L implications.
What Does a Monthly Shopify COGS Close Look Like?
A clean monthly Shopify COGS close takes 2–4 hours for a sub-$10M brand with one warehouse. The sequence is fixed: pull ending inventory, calculate COGS, book the entry, handle returns, book landed cost accruals, and reconcile. Skipping steps compounds variance over time.
- Pull ending inventory on the last day of the month. Either a physical count or a system report (Shopify, Cin7, 3PL WMS) priced at landed cost per unit.
- Pull purchases received during the month. Match to bills in QuickBooks or Xero. Confirm each PO received is booked as inventory, not COGS.
- Calculate COGS. Beginning inventory + purchases − ending inventory = COGS. Compare to Shopify's unit-level cost report as a sanity check. Variance over 2% means investigate.
- Book the COGS journal entry. Debit COGS, credit Inventory.
- Book returns reversal. Pull return units from Shopify or your 3PL. Multiply by landed cost. Debit Inventory, credit COGS. Scrapped units go to Inventory Write-Off instead.
- Book landed cost accruals. Any PO received without a freight invoice yet gets an estimated accrual. Debit Inventory, credit Accrued Freight.
- Reconcile. GL Inventory balance should equal (ending unit count × landed cost per unit) within 1–2%. Investigate anything larger.
If your GL inventory balance drifts from your warehouse count by more than 2%, the problem is almost never math. It's a missing step in the close workflow.
The brands that run this cleanly month after month see gross margin numbers they can actually make decisions on. The ones that skip steps spend Q1 of the next year rebuilding a full year of inventory history. We've done both. The first is cheaper.