StockTally Logo StockTally Contact Us
Menu
Contact Us

Cost of Goods Sold: Calculation and CRA Compliance

Master COGS calculations for Canadian tax purposes, understand inventory adjustments, and ensure your business meets Canada Revenue Agency requirements for accurate reporting.

11 min read Advanced March 2026
Business owner reviewing cost of goods sold report with calculator and financial analysis documents on wooden desk

Understanding Cost of Goods Sold

Cost of Goods Sold — COGS for short — represents the direct costs of producing goods that a company sells. It’s the foundation of calculating your gross profit and, ultimately, your taxable income. If you’re getting this wrong, you’re likely overpaying taxes or underpaying them, neither of which is good when the CRA’s watching.

The challenge isn’t just calculating COGS once. You’ll need to track it accurately throughout the year, adjust for inventory changes, and present it correctly on your tax return. We’re talking about opening inventory, purchases, freight-in, returns, closing inventory — all working together. Get the formula right and you’ve got a solid foundation for everything else.

Detailed spreadsheet showing inventory tracking with opening stock, purchases, and closing inventory calculations

The COGS Formula Breakdown

Here’s the formula you’ll use — it’s straightforward once you understand each component:

Opening Inventory + Purchases + Freight-in Returns Closing Inventory = COGS

Let’s break this down. Opening inventory is what you had on hand at the start of your fiscal year. Purchases are the goods you’ve bought for resale — that’s a big number. Freight-in includes shipping costs to get those goods to you. Returns are goods sent back to suppliers (this reduces your costs). Closing inventory is what’s left at year-end.

The CRA expects you to use one of three methods: FIFO (First In, First Out), weighted average cost, or specific identification. You can’t just pick whichever gives you the lowest COGS for tax purposes. Your choice has to be consistent year over year, and you’ll need to document it.

Financial spreadsheet showing COGS calculation with opening inventory, purchases, freight, returns, and closing inventory rows clearly labeled and calculated

Inventory Valuation Methods

Three approved methods, each with distinct advantages for different business situations.

FIFO Method

First In, First Out assumes your oldest inventory sells first. During inflation, this inflates COGS because you’re using older, cheaper costs. Result? Lower taxable income but higher ending inventory value. It’s straightforward to track and matches how many businesses actually move goods.

Weighted Average Cost

This method averages the cost of all available inventory. You’re calculating a weighted cost per unit based on quantity and price. It smooths out price fluctuations, which some businesses prefer. The calculation’s a bit more complex, but it gives you a middle-ground approach that reduces extreme swings in COGS.

Specific Identification

This works when you can actually track individual items — think jewelry, custom builds, or high-value goods. You’re literally tracking which specific units sold. It’s the most accurate but requires meticulous record-keeping. The CRA’s fine with it as long as your documentation’s solid.

Key Adjustments and CRA Compliance

You can’t just plug numbers into the formula and call it done. There are adjustments that’ll affect your final COGS figure, and the CRA’s strict about them.

Obsolete or Damaged Inventory

If you’ve got inventory that’s no longer saleable — damaged goods, obsolete stock — you can write it down. But you’ll need documentation. The CRA wants to see evidence that the inventory’s actually worthless or nearly worthless. A physical inspection report works. Don’t inflate write-downs without justification.

Freight and Handling

Shipping costs to get inventory to your business? That’s part of COGS. Freight-out (shipping to customers) isn’t — that’s a selling expense. The distinction matters. Keep your freight invoices organized by whether they’re inbound or outbound.

Purchase Discounts and Returns

Early payment discounts reduce your purchase costs. Returns to suppliers reduce them too. Both lower your COGS. Make sure your records show the net amount you actually paid after discounts and returns are factored in.

Manufacturing Overhead

If you manufacture goods, overhead like factory rent, equipment depreciation, and direct labor goes into COGS. Indirect costs — office salaries, marketing, administrative — don’t. The CRA expects you to allocate overhead systematically. You can’t arbitrarily shift costs between COGS and operating expenses.

Warehouse inventory management showing organized stock shelves with pricing labels and inventory tracking system

CRA Documentation Requirements

The CRA doesn’t just want your COGS number — they want to see how you got there. Documentation is everything. You’re looking at keeping detailed records of:

  • Purchase invoices with dates and amounts
  • Inventory count sheets (physical counts at year-end)
  • Freight invoices, clearly marked inbound
  • Credit notes for returns to suppliers
  • Inventory valuation policy (which method you’re using)
  • Calculations showing opening inventory, purchases, and closing inventory
  • Supporting schedules for adjustments or write-downs

Keep these records for at least six years. The CRA’s audit period is typically six years, and they’ll want to verify your COGS calculation. If you can’t produce documentation, they’ll make assumptions — and those assumptions rarely work in your favor.

Professional accountant organizing financial records and tax documents with filing system and organized folders

Common COGS Mistakes That Trigger CRA Questions

We’ve seen these errors repeatedly. They’re not always intentional, but the CRA doesn’t care about intent — they care about accuracy.

Inconsistent Inventory Method

Using FIFO one year, weighted average the next. You can’t switch methods without CRA approval. Pick one and stick with it. If you genuinely need to change methods, you’ll need to file Form T1139 or request permission beforehand.

Including Non-Inventory Costs

Putting office supplies, marketing, or administrative salaries into COGS. These are operating expenses, not cost of goods sold. The CRA auditors know the difference and they’ll reclassify them if they spot it.

Sloppy Year-End Inventory Counts

Your closing inventory directly impacts COGS. If your physical count’s inaccurate, everything downstream suffers. A difference of $5,000 in closing inventory means a $5,000 swing in COGS and taxable income. Get it right.

Not Tracking Freight Separately

Lumping all freight together. Inbound freight’s COGS. Outbound’s not. If you can’t separate them, the CRA will scrutinize how you’ve allocated costs.

Practical Steps for Accurate COGS Calculation

Here’s how to set yourself up for success. You’ll want to establish a system now that’ll make year-end calculation straightforward.

1

Document Your Inventory Method

Write down whether you’re using FIFO, weighted average, or specific identification. Include this in your accounting policies. If you’re ever audited, you’ll show the CRA this documentation.

2

Organize Purchase Records

Keep invoices in chronological order with dates and amounts. Your accounting software should do this automatically, but verify it’s working. You’ll need this for your opening inventory and purchases figures.

3

Conduct Physical Inventory Counts

At minimum, count inventory at year-end. Better yet, count quarterly or monthly if you’re a larger operation. Document the date, method, and results. Take photos if there’s high-value inventory.

4

Track Freight Separately

Use separate accounts or cost centers for inbound and outbound freight. Don’t mix them. This makes your COGS calculation cleaner and defensible.

5

Calculate and Document COGS

Create a detailed COGS schedule showing all components. Opening inventory + purchases + freight-in – returns – closing inventory. Keep this with your tax return. It’s your proof.

Business owner calculating year-end inventory adjustments with laptop and physical inventory sheets spread across desk

Getting COGS Right Matters

Cost of Goods Sold isn’t just a line item on your tax return. It’s the foundation of your gross profit calculation and a key area the CRA examines. Getting it wrong costs you — either in overpaid taxes or audit complications.

The good news? It’s not complicated once you understand the formula and the three valuation methods. Pick your method, document your process, keep your records organized, and you’ll be in solid shape. You’ll also sleep better knowing you’re compliant.

Start with your inventory policy. Document which method you’re using. Get your year-end count right. Track your purchases and freight carefully. Do this consistently, and you won’t have to worry about COGS audit questions.

Remember: The CRA expects consistency, documentation, and accuracy. Three years from now, if you’re audited, you’ll want to show them a clear paper trail. Make that easy on yourself by setting up your COGS tracking properly today.

Disclaimer

This article provides educational information about cost of goods sold calculation and Canadian tax compliance. It’s not professional tax or accounting advice. Tax regulations are complex and individual circumstances vary. Before implementing any changes to your COGS calculation method or inventory valuation approach, consult with a qualified accountant or tax professional who understands your specific business situation and current CRA requirements. The Canada Revenue Agency’s rules and guidance may change, so verify current requirements directly with the CRA or a tax specialist.