First In, First Out (FIFO)

Account Management
intermediate
8 min read
Updated Jan 7, 2026

Important Considerations for First In First Out Fifo

First In, First Out (FIFO) is a tax accounting method where the first shares purchased are considered the first shares sold when calculating capital gains and losses for tax purposes, using the cost basis of the earliest acquired securities.

When applying first in first out fifo principles, market participants should consider several key factors. Market conditions can change rapidly, requiring continuous monitoring and adaptation of strategies. Economic events, geopolitical developments, and shifts in investor sentiment can impact effectiveness. Risk management is crucial when implementing first in first out fifo strategies. Establishing clear risk parameters, position sizing guidelines, and exit strategies helps protect capital. Data quality and analytical accuracy play vital roles in successful application. Reliable information sources and sound analytical methods are essential for effective decision-making. Regulatory compliance and ethical considerations should be prioritized. Market participants must operate within legal frameworks and maintain transparency. Professional guidance and ongoing education enhance understanding and application of first in first out fifo concepts, leading to better investment outcomes. Market participants should regularly review and adjust their approaches based on performance data and changing market conditions to ensure continued effectiveness.

Key Takeaways

  • FIFO assumes first-purchased shares are sold first for tax calculations
  • Default method for most brokerage accounts unless specified otherwise
  • Can result in higher capital gains taxes in rising markets
  • Provides clear, chronological tracking of cost basis
  • Required for certain retirement and institutional accounts
  • Tax implications vary based on holding periods and market conditions

What Is First In, First Out (FIFO)?

First In, First Out (FIFO) is a fundamental accounting principle applied to tax reporting for securities transactions that has become the cornerstone of cost basis calculation in the United States. Under FIFO methodology, when an investor sells shares, the IRS assumes that the shares sold are the ones that were purchased first chronologically, regardless of which specific shares the investor actually intends to sell or wishes had been sold for tax purposes. This method creates a systematic chronological approach to cost basis calculation that simplifies record-keeping and ensures consistency across tax years. Each time shares are sold, the cost basis is determined by using the purchase price of the oldest shares in the investor's portfolio. This creates a predictable method for calculating capital gains and losses that both brokers and tax authorities can easily verify and audit. FIFO serves as the default cost basis method for most brokerage accounts in the United States unless the investor specifically elects an alternative method like specific lot identification, average cost, or last in, first out (LIFO). The method's widespread adoption stems from its simplicity and the fact that it mirrors how most inventory systems operate in business contexts, where older inventory is typically used before newer inventory to prevent spoilage or obsolescence. For investors who have accumulated shares over time at various prices, understanding FIFO is essential for anticipating tax consequences and planning investment strategies that account for the order in which shares will be deemed sold.

How FIFO Works in Practice

FIFO operates through a systematic process of tracking and applying cost basis that brokers and investors follow for every sale transaction: Purchase Tracking: Each share purchase is recorded with complete details including date, quantity, price per share, and total cost including commissions and fees. Modern brokerage systems automatically capture and store this information. Chronological Organization: All shares are organized in a queue by purchase date, from oldest to newest. This creates a clear sequence that determines the order in which shares will be assigned to future sales. Sale Application: When shares are sold, the cost basis is calculated by assigning the sale to the oldest available shares in the queue. If the sale exceeds the oldest lot, additional lots are used in chronological order until the full sale quantity is covered. Remaining Shares: Unsold shares retain their original cost basis and purchase date for future calculations. Partially sold lots are tracked separately with the remaining quantity at the original purchase price. Holding Period Determination: FIFO also determines whether gains are short-term or long-term by using the purchase date of the oldest shares. This can significantly impact tax liability since long-term gains are taxed at preferential rates. Tax Reporting: Capital gains and losses are reported on Form 1099-B and Schedule D based on the FIFO-assigned cost basis, with brokers providing detailed reports showing the calculation methodology. This methodical approach ensures consistent, auditable tax calculations that withstand IRS scrutiny.

FIFO vs. Other Cost Basis Methods

FIFO represents one of several cost basis calculation methods available to investors: FIFO: Uses oldest shares first, default method for most accounts. Specific Lot Identification: Investor specifies which shares to sell, offering maximum control. Average Cost: Blends all purchase prices to create an average cost basis. Last In, First Out (LIFO): Uses most recently purchased shares first. High Cost First: Sells highest cost basis shares first to minimize gains. Low Cost First: Sells lowest cost basis shares first to maximize gains. Each method has different tax implications and strategic applications.

Tax Implications of FIFO

FIFO has significant tax consequences that vary based on market conditions: Rising Markets: FIFO typically results in higher capital gains taxes because older, lower-cost shares are sold first. Falling Markets: FIFO can result in losses being realized sooner, providing tax benefits. Holding Periods: Affects whether gains are classified as short-term or long-term. Wash Sale Rules: Interacts with wash sale prohibitions on loss harvesting. Tax Efficiency: May not be optimal for tax-loss harvesting strategies. Retirement Accounts: FIFO is mandatory for certain tax-advantaged accounts. The tax impact depends on the investor's specific situation and market conditions.

Strategic Considerations

Investors should consider several factors when evaluating FIFO: Market Direction: FIFO works well in declining markets, poorly in rising markets. Tax Situation: Consider current tax bracket and capital loss carryforwards. Investment Goals: Align cost basis method with overall investment strategy. Account Types: Some accounts require specific methods. Record Keeping: FIFO requires detailed purchase records. Alternative Methods: Consider if specific lot identification better serves needs. Long-term vs. Short-term: Different implications for different holding periods.

FIFO in Retirement Accounts

Retirement accounts have specific FIFO requirements and implications: Required Method: Many retirement accounts mandate FIFO usage. Tax Deferral: Capital gains taxes are deferred until withdrawal. Required Minimum Distributions: FIFO affects RMD calculations. Inherited Accounts: Beneficiaries may be required to use FIFO. Roth Conversions: Different tax treatment affects strategy. Account Types: IRAs, 401(k)s, and other retirement vehicles have specific rules. Understanding these requirements is crucial for retirement planning.

Brokerage Account Implementation

Modern brokerage platforms handle FIFO calculations automatically: Default Application: Most accounts default to FIFO unless specified otherwise. Cost Basis Reporting: Detailed year-end reports show FIFO calculations. Tax Document Preparation: 1099-B forms reflect FIFO cost basis. Alternative Method Election: Investors can choose different methods if allowed. Historical Tracking: Systems maintain complete purchase and sale histories. Regulatory Compliance: Brokers ensure IRS-compliant cost basis calculations. This automation makes FIFO management transparent and reliable.

Real-World Example: FIFO Tax Calculation

An investor sells 200 shares of XYZ stock and FIFO determines the tax consequences.

1Purchase 1: 100 shares at $20 each (January 2020)
2Purchase 2: 150 shares at $25 each (June 2021)
3Purchase 3: 100 shares at $30 each (March 2022)
4Sale: 200 shares at $35 each (December 2023)
5FIFO assigns: 100 shares from Purchase 1 ($20) + 100 shares from Purchase 2 ($25)
6Total cost basis: (100 × $20) + (100 × $25) = $4,500
7Sale proceeds: 200 × $35 = $7,000
8Capital gain: $7,000 - $4,500 = $2,500
Result: FIFO results in $2,500 capital gain taxed at long-term rates, demonstrating how FIFO uses oldest shares first for tax calculations.

Cost Basis Method Comparison

Comparison of different cost basis methods and their tax implications.

MethodTax Efficiency in Rising MarketsTax Efficiency in Falling MarketsComplexityAvailabilityBest Use Case
FIFOPoorGoodLowDefaultMost investors
Specific LotExcellentExcellentHighAvailableActive traders
Average CostFairFairLowLimitedMutual funds
LIFOGoodPoorMediumLimitedCommodities
High Cost FirstExcellentPoorMediumAvailableTax optimization

Tips for FIFO Management

Understand how FIFO affects your tax situation. Keep detailed records of all purchases and sales. Consider market conditions when planning sales. Evaluate if alternative cost basis methods better serve your needs. Work with tax professionals for complex situations. Review brokerage statements regularly. Plan sales around tax implications. Consider year-end tax-loss harvesting opportunities. Understand FIFO requirements for retirement accounts. Monitor changes in tax laws affecting cost basis rules. Use tax software that handles FIFO calculations.

Common Questions About FIFO

Frequently asked questions about First In, First Out accounting:

  • Is FIFO required for all investment accounts? - No, FIFO is the default method, but investors can elect alternatives like specific lot identification in taxable accounts.
  • How does FIFO affect capital gains taxes? - In rising markets, FIFO typically results in higher taxable gains because lower-cost shares are sold first.
  • Can I change my cost basis method? - For most accounts, you can change methods, but changes must be made prospectively and may have tax implications.
  • Does FIFO apply to mutual funds? - Mutual funds typically use average cost basis, but individual stocks and ETFs use FIFO by default.
  • How does FIFO work with stock splits? - Stock splits are accounted for chronologically, maintaining the FIFO sequence.
  • What happens with FIFO in retirement accounts? - Many retirement accounts require FIFO for required minimum distributions and other calculations.
  • Can FIFO create short-term capital gains? - Yes, if shares held less than a year are sold first under FIFO, even if longer-term shares are available.
  • How do I report FIFO on my taxes? - Your brokerage provides Form 1099-B with cost basis information calculated using FIFO.
  • Does FIFO apply to options trading? - Options have their own tax rules, but the underlying stock positions follow FIFO if applicable.
  • What if I disagree with my broker's FIFO calculation? - You can elect specific lot identification to override FIFO and choose which shares to sell.

FAQs

FIFO provides a simple, chronological, and consistent method for calculating cost basis that is easy to understand and apply. It requires minimal record-keeping and is the default method used by most brokerage firms, making it straightforward for tax reporting.

Consider alternatives when FIFO would create unfavorable tax consequences, such as in rising markets where you want to minimize capital gains, or when you have specific tax-loss harvesting goals. Specific lot identification gives you maximum control over which shares are sold.

FIFO can affect wash sale calculations because it determines which shares are considered sold. If FIFO assigns a loss to a sale, you cannot claim that loss if you repurchase substantially identical securities within 30 days before or after the sale.

Yes, FIFO is required for many retirement accounts including traditional IRAs, Roth IRAs, and 401(k) accounts. It's also the default method for most taxable brokerage accounts, though alternatives may be available.

FIFO can affect holding period calculations because it uses the oldest shares first. If your oldest shares have been held more than a year, gains may qualify for lower long-term capital gains rates, but if newer shares are sold, they might be taxed at higher short-term rates.

You need to maintain records of purchase dates, quantities, and prices for all securities. Most modern brokerage platforms automatically track this information and provide detailed cost basis reports for tax purposes.

The Bottom Line

First In, First Out (FIFO) represents the cornerstone of cost basis accounting for securities transactions, providing a systematic and chronological approach to calculating capital gains and losses for tax purposes. As the default method for most brokerage accounts, FIFO offers simplicity and consistency, ensuring that the first shares purchased are considered the first shares sold. While this method works well in declining markets where it can accelerate loss recognition, it may result in higher taxes in rising markets. Understanding FIFO's mechanics, tax implications, and strategic applications is essential for investors seeking to optimize their tax efficiency. The method's widespread adoption and regulatory support make it a reliable foundation for tax reporting, though investors should consider whether alternative methods like specific lot identification better serve their individual circumstances.

At a Glance

Difficultyintermediate
Reading Time8 min

Key Takeaways

  • FIFO assumes first-purchased shares are sold first for tax calculations
  • Default method for most brokerage accounts unless specified otherwise
  • Can result in higher capital gains taxes in rising markets
  • Provides clear, chronological tracking of cost basis