Loading...
Loading...
Found something confusing or wrong on this page?
FIFO Accounting: FIFO (first in, first out) is the tax-lot method that treats the earliest-acquired shares or contracts as sold first when part of a position is sold. For US tax purposes it is the default when no specific lot is identified.
Educational content. Not financial, investment, tax, or legal advice. Options involve risk and are not suitable for all investors. How we write & review this glossary.
FIFO (first in, first out) is the cost-basis method that treats the earliest-acquired shares or contracts as the ones sold when only part of a position is sold. For US tax purposes it is the default: if you do not adequately identify which lot you sold, the basis is that of the securities you acquired first, and brokers report the sale in that order on Form 1099-B.
6:59 walkthrough — definition, mechanics, worked example, and common mistakes for FIFO Accounting.
FIFO accounting functions like a grocery store shelf, selling your oldest shares first to determine tax implications.
FIFO accounting is a tax-lot method where the oldest shares are sold first when you close a partial position. This approach is like a grocery store shelf, where older items are sold first, affecting your tax calculations.
When you sell shares, many brokers default to FIFO for stocks, automatically selling the oldest shares, though the default can be changed and some products, such as mutual funds, may default to a different method such as average cost. This impacts your cost basis and realized gain or loss, which are crucial for IRS reporting. Brokers like Schwab and Fidelity use FIFO as the default for most non-mutual-fund securities.
Consider a hypothetical scenario where you bought 100 shares of a stock at $120 in 2022 and another 100 at $180 in 2024. If you sell 100 shares at $230, FIFO sells the 2022 shares, realizing a $110 per share gain.
In this case, the gain is $11,000 and, with a holding period over one year, would generally be treated as long-term. If you had used LIFO, selling the 2024 shares, the gain would be $5,000, which could be treated as short-term depending on the holding period.
Although FIFO often leads to long-term gain treatment, it may not be the most tax-efficient. Traders can elect specific lot identification to choose which shares to sell, optimizing their tax outcomes.
To override FIFO, you can file a standing instruction with your broker or select specific lots at the time of trade. However, be aware of the wash sale rule, which can disallow losses if you acquire substantially identical shares within 30 days before or after the loss sale.
Understanding FIFO helps explain how brokerage lot-selection settings can affect a tax bill.
FIFO is what happens when you make no choice; specific identification is the choice, and it only counts if the lot is named at the time of the sale and confirmed in writing by the broker.
Lot selection changes the size of the gain or loss recognized in a given year and, for longer-held positions, whether it is short- or long-term, which can change the tax rate. Under FIFO in a rising market, the oldest lots usually have the lowest basis, so FIFO tends to realize larger gains sooner, but those older lots are also the ones most likely to qualify as long-term. Neither method is better in general; the outcome depends on prices, dates and the rest of the year's gains and losses.
When a position was built in several purchases at different dates or prices and only part of it is sold, a method is needed to decide which lot was sold. Under FIFO the first lot acquired is matched first, so the realized gain or loss uses that lot's cost basis and its acquisition date determines the holding period. The alternative is specific identification: telling the broker which lot to sell at the time of the sale and receiving written confirmation within a reasonable time. If no identification is provided, the IRS instructions for Form 1099-B tell brokers to report sales starting with any shares whose acquisition date is unknown and then the shares acquired first. Lot-selection choices that brokers may offer, such as 'last in, first out', work by identifying which lot is sold in each sale.
Hypothetical: a trader buys 5 call contracts at $4.10 in one month and 5 more of the same series at $5.40 the next month, then sells 5 at $6.20. Under FIFO the first lot is matched: ($6.20 - $4.10) x 100 x 5 = $1,050 short-term gain. If the trader had instead identified the second lot at the time of sale, the gain would be ($6.20 - $5.40) x 100 x 5 = $400. Either way the remaining 5 contracts keep their own cost basis, so the total gain over the life of the position is the same; the method changes when it is recognized.
Assuming you can pick a lot after the trade: identification has to be made at the time of the sale and confirmed by the broker. Assuming FIFO is always the most or least tax-efficient. Forgetting that the wash sale rule applies regardless of the lot method: a loss can be disallowed if substantially identical securities, or options to buy them, are acquired within 30 days before or after the sale. Changing a broker's default method and expecting it to apply to sales already made.
It matches the earliest-acquired contracts or shares with a partial sale, so the realized gain or loss is based on the oldest lot's cost and the holding period starts from that lot's acquisition date. It applies when you have not identified a specific lot.
IRS rules say that if you cannot adequately identify the securities sold, their basis is the basis of the securities acquired first, and the Form 1099-B instructions direct brokers to report unidentified sales in that order.
Tell the broker which lot to sell at the time of the sale and receive written confirmation within a reasonable time. Many brokers let you set a standing lot-selection method or choose lots on the order ticket; the identification must exist by the time of the sale.
Independently. The lot method decides which basis is used for a sale; the wash sale rule then disallows a loss if substantially identical securities, or a contract or option to buy them, are acquired within 30 days before or after the sale, and adds the disallowed loss to the basis of the replacement.
General references for this topic area, not citations for the specific figures above. VolRadar is not affiliated with these organizations.

Understand options faster.
One term, one worked example, one real ticker. Every Sunday. No jargon.
One email per week, no drip campaigns · Unsubscribe anytime