Zyvo ← All posts
Taxes

Average Cost vs FIFO: Which Tax Method Should You Use?

Here's something that surprises a lot of investors the first time they see it: the exact same sale — same stock, same shares, same price — can produce two genuinely different taxable gains, depending entirely on which accounting method you use to figure out your cost basis. Neither number is wrong. They're just answering the question differently.

This is educational, not tax advice. Which method you're allowed to use (and how consistently you have to apply it) depends on your local tax rules. Confirm with an accountant before relying on either number for filing.

The problem: you bought the same stock more than once, at different prices

If you buy a stock in one single purchase and sell it in one single sale, there's no ambiguity — your gain is just proceeds minus what you paid. The complexity shows up the moment you buy the same stock more than once, at different prices, and then sell only part of your position. Which shares did you actually sell — the first ones you bought? A blend of all of them?

Average Cost: blend everything together

Average Cost takes every share you've ever bought of that stock, averages the price across all of them, and uses that single blended number as your cost basis for any sale — regardless of which specific purchase the shares "came from." It's simple, and it's the default most basic tracking tools use because it doesn't require keeping track of individual purchase lots.

FIFO: the oldest shares go first

FIFO — First In, First Out — assumes you sell your oldest shares first, tracked lot by lot. If you bought 10 shares in 2024 and 10 more in 2026, and then sell 15 shares, FIFO says you sold all 10 from 2024 plus 5 from 2026 — not a blend of both.

A real example where it matters

Say you bought 10 shares at $100 back in 2024, then bought 10 more at $150 in early 2026. You sell 15 shares in mid-2026 at $200.

MethodCost Basis UsedTaxable GainHolding Period
Average Cost$125/share (blended)$1,125Long-term (one blended sale)
FIFO$100 for 10 sh, $150 for 5 sh$1,250 totalSplit: $1,000 long-term + $250 short-term

Notice two things: the total gain is different between methods ($1,125 vs $1,250), and FIFO correctly recognizes that part of this sale was short-term while Average Cost lumps the whole thing into one holding-period bucket. Neither is "cheating" — they're legitimately different accounting conventions, and the gap between them can be meaningful once you're selling partial positions built up over several purchases.

Walking through the arithmetic directly — FIFO consumes the oldest lot first: 10 shares from the 2024 lot at $100/share is a $100/share gain × 10 shares = $1,000, held long enough to count as long-term. The remaining 5 shares come from the 2026 lot at $150/share, a $50/share gain × 5 shares = $250, held under a year, so short-term. Total: $1,250, split $1,000 long-term and $250 short-term. Average Cost instead blends both lots into a single $125/share basis before any sale happens, so the whole 15-share sale is one calculation: $75/share gain × 15 shares = $1,125, treated as a single holding-period bucket rather than two.

Why this is easy to get wrong without proper lot tracking

Average Cost is simple precisely because it throws away information — it doesn't need to know which shares you're selling, just the blended average. FIFO requires actually tracking each purchase as a separate lot, with its own date and price, and correctly consuming the oldest lot first, splitting a single sale into multiple pieces if it spans lots with different holding periods. Doing this by hand across a few years of trading is exactly the kind of bookkeeping that gets error-prone fast.

Frequently asked

Can I switch between FIFO and Average Cost after I've already sold shares?

In Zyvo, yes — the tax report lets you toggle the method per report, and it recalculates from your full transaction history each time. Whether you're allowed to change methods for an actual tax filing, especially retroactively, depends on your local tax rules and past elections — confirm with an accountant before relying on either number for filing.

Which cost-basis method does Zyvo use by default?

Neither is locked in — you choose per tax report, and Zyvo recalculates your realized gains from actual lot-by-lot transaction data rather than defaulting silently to one method.

Does the cost-basis method affect Zyvo's US tax estimate?

Yes. Zyvo's Tax Intelligence estimates US federal tax owed from your realized gains, and realized gains change depending on which method produced them. Since FIFO and Average Cost can split short-term and long-term gains differently, the resulting tax estimate can differ too.

Is Average Cost or FIFO better for taxes?

Neither is universally better — they're different accounting conventions, not a right-vs-wrong choice. FIFO tends to separate short-term from long-term gains more precisely; Average Cost is simpler but can blend a sale into a single holding-period bucket. Which one applies to your filing depends on your jurisdiction's rules.


Zyvo's Tax Intelligence lets you switch between Average Cost and FIFO with one click on a real tax report, so you can see exactly how much your realized gains — and your estimated US federal tax owed — change with proper lot-by-lot tracking, not an approximation. See it on a real sample portfolio first: view the live demo, no signup required — or start your free 14-day trial.
Related reading: Best portfolio trackers with tax reporting · Recording stock splits & broker transfers · TWR vs IRR