Cannabis COGS Calculation Methods: FIFO, LIFO & Permitted Inventory Costing

If you're researching cannabis cost-of-goods compliance before you bring in a CPA — or between CPA engagements — the question you keep tripping over isn't whether §280E applies (it does), but how exactly you're supposed to calculate the COGS deduction it allows. The IRS doesn't publish a cannabis-specific COGS worksheet. It does require that you follow generally accepted inventory accounting, and the rules for which methods qualify, and which don't, are where most operators quietly expose themselves to adjustment.

This is the cluster piece beneath the 280E deduction pillar post. That post maps what's deductible; this one walks through how you build the deduction — what counts as a cannabis COGS line item, which inventory costing methods the IRS actually permits on a §471 return, and the specific errors that consistently surface as audit adjustments in cannabis examinations.

What Counts as COGS in Cannabis vs. Other Industries

Under IRC §471, cost of goods sold is the direct cost of producing or acquiring inventory that a business sells. In a normal trade — say, a software reseller — anything reasonable and customary flows into COGS: purchase price, freight in, handling, and indirect production costs (under §471's full-absorption model with the §263A uniform capitalization rules). Most ordinary expenses that would otherwise be §162 deductions end up capitalized into inventory and recognized as COGS when the item sells.

Cannabis is the carve-out. §280E says that in trafficking a Schedule I or II controlled substance, no deduction shall be allowed for any amount otherwise allowable under §162 (trade or business expenses) or any amount otherwise allowable under §165 (losses). It excepts §471 cost of goods sold — but only the cost "directly related to" the production or purchase of inventory. Selling, marketing, general administrative, and most overhead costs are not directly related to production, even when they are necessary to produce or sell the product, and even when §471 would otherwise capitalize them in a non-cannabis business.

The practical meaning: a non-cannabis retailer absorbs its payroll, rent, and marketing into inventory under §263A and recovers those costs as COGS. A cannabis retailer cannot — those expenses stay capitalized in inventory, flow out as part of COGS only to the extent they are directly related to production, and once sold they disappear into non-deductible cost. This is why the question of what counts as a cannabis COGS line — and which costing method you apply to it — is materially different for a §280E operator.

Operator TypeDirect COGS (Always Allowed)Allocable Indirect (Often Disallowed)
CultivatorClone/seed cost, growing media, nutrients, direct cultivation labor, METRC-tagged packaging.Compliance wages, facility rent when not allocable to a production line, executive compensation.
ProcessorInput cannabis (wholesale biomass, distillate, isolate), extraction labor, solvents and consumables, primary packaging inputs.Brand/marketing for the SKU line, R&D not tied to inventory on hand, sales overhead.
Dispensary / RetailerWholesale cost of finished inventory, inbound freight-to-shelf, sales-floor direct labor where properly classified.Store manager salary (typically), marketing & promotion, security if not production-related, store rent.

The point of the table is not that indirect costs can never be in COGS — §471 and §263A allocations are occasionally defensible for cannabis — but that the IRS has repeatedly pushed back on aggressive allocations across §280E audits, and examiners will not let you capitalize a §162 expense into inventory just because §263A says you can. The "directly related" test in §280E is narrower than §471's "incident to" language. We covered this distinction in depth in the cluster pillar on 280E deductions; costing-method choice is the second piece of the same problem.

Inventory Costing Methods Allowed for Cannabis

Treasure Reg. §1.471-2 requires that inventory be accounted for in a way that "clearly reflects income." §1.471-3 (and -3A for retailers) lists the statutorily permitted methods. The list is short, and it's narrower than most cannabis operators initially assume — particularly because the IRS specifically rejects any method that relies on averaging or standard-cost approximation when an actual-cost alternative is available.

For a §280E cannabis operator, three methods come up in practice. They are summarized below; each carries different audit exposure depending on your business model.

MethodPermitted? (Federal §471)Fit for Cannabis?
FIFO (First In, First Out)Yes — treated as the default "clear reflection" method.Best practical fit. Aligns with the IRS preference, with lot-tracking systems like METRC, and with the natural flow of cannabis inventory from cultivation through sale.
Specific identificationYes — but Taxpayers must show actual cost link to specific item sold.Rarely usable for cannabis at retail because lots are pooled and commingled in cultivation and frequently intermingled at point of sale. Audit exposure increases wherever you cannot tie a sold gram to a specific production lot at documented cost.
LIFO (Last In, First Out)Permitted under §472 — but election, LCM, RTC, and §263A compliance are required.Typically disallowed in practice. Cannabis operations rarely meet the lower-of-cost-or-market and ratio-of-total-costs consistency tests that LIFO demands; most operators haven't filed Form 970 to elect it.
Weighted-average / standard costNot permissible as a §471 method for U.S. federal tax.Common in seed-to-sale software, but the underlying transaction records must convert to FIFO or specific identification for the tax return. Do not put a weighted-average number on Schedule A.

The IRS treatment is straightforward in framing: FIFO is the safe default. Specific identification is permissible if you can defend it lot-by-lot in an audit. LIFO is rarely the right answer for a cannabis operator, even though it's allowed in other industries, because it tends not to match the way cannabis flows through production — and selecting LIFO without a clean Form 970 election and ongoing LCM/RTC compliance is its own audit trigger.

FIFO as the IRS-preferred default

FIFO is permitted without election under §1.471-2 and lines up naturally with cannabis operations, where lots are produced, then draw down in roughly the order they're produced. Most seed-to-sale platforms (METRC, BioTrack, Canix) already timestamp lot creation and depletion in a way that supports FIFO costing. If you're setting up a §471 system for the first time, FIFO is the lowest-friction starting position — and the hardest position for an IRS examiner to argue against in a COGS adjustment.

Specific identification — narrow and risky

Specific identification is the only method that lets you match the actual cost of a specific item to its sale, which sounds attractive — but it requires you to be able to identify and track each unit. Cannabis is challenging because cultivation lots are typically pooled before drying and trim stages, and dispensaries commingle products by strain and SKU during merchandising. The IRS has frequently treated "specific identification" claims in cannabis audits as effectively FIFO — meaning the operator gave up the flexibility specific identification offers without getting the audit defense it appeared to promise.

LIFO — usually the wrong answer

LIFO is technically allowed under §472 (with a Form 970 election filed by the due date of the first return), but layers in lower-of-cost-or-market (LCM), the recurring Taxable Income (RTC) conformity requirement, and §263AUNICAP compliance. In an industry where wholesale prices can move significantly year to year (and where year-over-year cost trends do not consistently point in one direction), LIFO rarely produces a defensible book-tax picture. It is also the method most likely to invite a transfer-pricing or unit-cost-inflation adjustment if your intercompany transfer pricing isn't perfectly documented — see the audit-red-flag discussion below.

Critically, you cannot switch between methods mid-year without filing Form 3115 (Change in Accounting Method) under §263(a). A method change made without IRS consent is treated as an unauthorized method change in the year of the change — and the IRS has discretion to require full §481(a) adjustments. That applies whether you're moving from FIFO to specific identification, back from LIFO to FIFO, or anything else.

The bottom line on method choice: using FIFO from the start of your first §471 return is the audit-resilient default. Specific identification can be defensible if every unit's lot lineage is documented and unbroken. LIFO can be defensible if elected properly and sustained — but it is rarely the right choice for a cannabis operator and produces its own audit exposure.

Common COGS Calculation Errors That Trigger IRS Scrutiny

This is the section operators most often skip — and the one IRS examiners read most closely. The seven errors below are the specific COGS calculation mistakes the IRS has consistently adjusted in cannabis audits. They overlap heavily with the broader 280E audit red flag post, but each one has a method-choice or costing-mechanics element that this guide is the right place to flag.

  1. Mixing direct and indirect costs inconsistently year-over-year. An operator that capitalizes a facility's rent into COGS in year one and treats it as a §162 expense (non-deductible under §280E) in year two has changed methods without §263(a) consent. The IRS treats the inconsistency as an unauthorized method change.
  2. Capitalizing labor that should flow out as indirect — or vice versa. Employees split across functions (production-line labor vs. management vs. compliance vs. sales) must be classified and costed consistently. Wholesale-cap packaging labor typically belongs in COGS; a dispensary general manager's salary typically does not. The IRS regularly adjusts where labor cost was lumped into COGS without function-level documentation.
  3. Using LIFO when §472 LCM or RTC requirements aren't met. LIFO requires ongoing LCM testing and year-over-year conformity (the "RTC" consistency test). A violator — even one — taints the election and can result in the IRS treating the LIFO reserve as taxable income in the year of the conformity failure.
  4. Reclassifying G&A into COGS after the fact. Moving an expense into COGS to reduce current-year taxable income — without a contemporaneous accounting policy, without consistent application, and without §263(a) consent — is an adjustment magnet. IRS examiners specifically test whether a §162 expense ended up in COGS for the first time in the year under audit.
  5. Inventory shrinkage / spoilage not reconciled to METRC. METRC reports inventory drawdowns by lot and weight. If your COGS calculation uses a different shrinkage assumption than METRC reports, you have a documented mismatch — and you have it in writing. We covered METRC reconciliation in the audit red flags pillar; it bears repeating because it's the single most common §471 adjustment mechanism.
  6. Inflating unit costs in intercompany transfers. If your cultivation entity transfers wholesale cannabis to a processing or retail entity at a price above fair market, you've created a transfer-pricing exposure. The IRS has authority under §482 to reallocate income between commonly-owned entities. Inflated transfer prices amplify cultivated-product COGS at the upstream tier — and create a paper trail the IRS will pull.
  7. Mid-year method changes without Form 3115 consent. Switching costing methods, capitalizing a previously §162 expense, or changing a §263A allocation methodology requires Form 3115 and advance or automatic IRS consent. Mid-year switches without consent are unauthorized method changes and are treated under §481(a).

Each of these is a COGS calculation error that exists at the seam between inventory accounting and §280E. They are not "did you add up the numbers correctly" errors — they're "is your costing methodology defensible in audit" errors. A COGS number built on a method the IRS rejects is an even bigger problem than a COGS number that is smaller than you'd like.

See your COGS with the right costing method applied

The free TrimBooks calculator applies FIFO costing to your actual expense mix, so the COGS you see is the COGS that survives a §471 exam.

Calculate My COGS Free

The Bottom Line

Cannabis COGS calculation methods are not a stylistic choice — they are a §471 compliance posture. FIFO is the default and the audit-resilient starting point. Specific identification is defensible only where you can tie every sold unit to a fully-costed lot. LIFO is technically permitted but operationally risky for most cannabis operators. Weighted average and standard cost are not §471 methods at all, even though seed-to-sale software often defaults to one of those views.

The IRS doesn't care which method you choose. The IRS cares that you choose, document, and follow it consistently — and that the COGS figure it produces is reconciled against METRC, against other state agencies, and against transfer-pricing between commonly-owned entities. The errors that surface again and again in cannabis examinations are method-choice errors, not arithmetic errors.

For a deeper walk-through of what flows into and out of COGS specifically, see the 280E deduction pillar — and run your own expense mix through the free TrimBooks calculator to see what your COGS looks like at FIFO costing on your real numbers.

Related Guides

Go deeper on the topics covered in this guide: