Bottom line: FIFO is the default at most brokers and sells your oldest shares first, which is usually the worst tax outcome. Specific identification lets you choose the lot; it requires an election at or before the sale and, in practice, an actual record of which lot you meant.

Why FIFO costs

Oldest lots carry the largest gains in a rising position. Selling FIFO realises maximum gain; selling the most recent or highest-cost lot realises the least, or a loss.

Lot Bought Cost Price now Gain if sold
A 2019 $40 $100 +$60
B 2023 $85 $100 +$15
C 2024 $105 $100 −$5

FIFO sells A (+$60). Identified selling sells C, banking a $5 loss and deferring the rest.

Making the election

Brokers differ: some have a per-sale lot selector in the order ticket, some require a default-lot change in settings, some require a written instruction. Get the confirmation in writing on the first sale — a support thread is your evidence if the default reverts.

Wash sales

30 days before or after a loss sale, a repurchase of the same or substantially identical security disallows the loss and rolls it into the new lot’s basis. Automatic reinvestment counts. Track loss sales against a 61-day window and pause reinvestment inside it.

Record keeping

Export the lot table before selling, not after. Brokers consolidate lots in the 1099-B and lose the identification trail. Keep a per-sale record: date, lot id, quantity, cost, election evidence.

Long versus short

A lot held over a year is long-term. If the position is near the boundary, holding a few weeks can halve the rate — worth more than lot selection in many cases. Check the holding period first, then the lot.

What brokers get wrong

Many reset the default to FIFO after a corporate action or an account migration. Re-check the setting after any of those, and after every tax year rollover.

Operating notes

Check the default lot method before the first sale each year and after every account migration or corporate action. Brokers silently reset to FIFO on both.

1
2
Settings → Cost basis method → Specific identification
Order ticket → Lot → choose the highest-cost lot

Then capture the order confirmation showing the lot. A support chat is not proof; the ticket is.

Wash sales

The window is 30 days before and after the loss sale, and automatic dividend reinvestment counts as a purchase inside it. Pause reinvestment for the 61 days around a planned loss harvest, or the loss is deferred into the new lot’s basis and the harvest does nothing this year.

Long versus short

Check the holding period before the lot. Moving a sale three weeks later can halve the rate, which usually beats the lot choice. Sort candidates by holding period first, cost basis second.

Records

Export the full lot table before selling, keep the per-sale record with lot id and election evidence, and reconcile the year-end 1099-B against your own list. The broker’s summary loses the identification and the difference is what an auditor will ask about.

FAQ

Why is FIFO usually the worst tax outcome?

FIFO sells your oldest shares first, and in a rising position the oldest lots carry the largest gains. Selling FIFO therefore realises the maximum gain, while selling the most recent or highest-cost lot realises the least, or even a loss. In the article’s example, FIFO sells the 2019 lot for a $60 gain instead of the 2024 lot for a $5 loss.

How do I make a specific identification election at my broker?

Brokers differ: some offer a per-sale lot selector in the order ticket, some require a default-lot change in settings, and some require a written instruction. Get the confirmation in writing on the first sale, because a support thread is your evidence if the default reverts. Capture the order confirmation showing the lot, since a support chat is not proof.

What is the wash sale window and does dividend reinvestment count?

The wash sale window is 30 days before and after the loss sale. A repurchase of the same or substantially identical security inside that window disallows the loss and rolls it into the new lot’s basis. Automatic dividend reinvestment counts as a purchase, so pause reinvestment for the 61 days around a planned loss harvest.

Should I check the holding period or the lot first?

Check the holding period first, then the lot. A lot held over a year is long-term, and if the position is near the boundary, holding a few weeks can halve the rate, which is worth more than lot selection in many cases. Sort candidates by holding period first and cost basis second.

What records should I keep for identified lots?

Export the full lot table before selling, not after, because brokers consolidate lots in the 1099-B and lose the identification trail. Keep a per-sale record with date, lot id, quantity, cost, and election evidence, then reconcile the year-end 1099-B against your own list. The difference is what an auditor will ask about.