FIFO First In First Out Cost Basis: Tax Impact on Stocks

When you sell stocks, the IRS requires you to report capital gains or losses, which depend on the cost basis—the original price you paid for the shares. Choosing the right cost basis method can significantly alter your tax bill. One of the most common and default methods employed by brokerage firms is the FIFO first in first out approach. This method assumes that the first shares you purchased are the first ones sold. Understanding how FIFO works is crucial for any investor, because it directly influences whether your gains are classified as short-term or long-term and how much tax you ultimately owe.

The cost basis of a security isn’t static. It can be adjusted for stock splits, dividends, and reinvestments. When you’ve accumulated shares of the same stock over multiple transactions at different prices, the IRS allows you to choose which shares to sell. If you don’t specify, FIFO is the default. This article explores the FIFO first in first out cost basis method in depth, examining its mechanics, tax implications, and how it stacks up against alternatives like specific identification and average cost.

For active traders and long-term investors alike, the choice of cost basis method can make a difference of thousands of dollars in capital gains taxes. By the end of this guide, you’ll know exactly when FIFO works in your favor and when you might want to avoid it.

Quick Answer

FIFO first in first out is the default cost basis method that sells your oldest shares first. In a rising market, this often leads to larger realized gains because older shares typically have a lower cost basis. This can accelerate short-term gains if the oldest shares haven’t been held for over a year, increasing your tax liability.

What Is Cost Basis and Why Does It Matter?

Cost basis is the original value of an asset for tax purposes, usually the purchase price plus any commissions or fees. For stocks, it includes the price per share multiplied by the number of shares you bought. The IRS uses cost basis to determine the capital gain or loss when you sell. For example, if you purchase 100 shares at $50 each, your total cost basis is $5,000. If you later sell those shares for $80 each, your capital gain is $3,000 ($8,000 minus $5,000).

Accurate cost basis tracking is essential because it directly impacts the amount of taxes you owe. Brokerage firms are required to report cost basis information to the IRS on Form 1099-B for covered securities. However, you remain responsible for ensuring the correct method is used, especially if you hold shares acquired before the cost basis reporting rules took effect.

Adjustments to cost basis can occur due to corporate actions like stock splits, mergers, or spinoffs. For instance, in a 2-for-1 stock split, your per-share cost basis is halved while the number of shares doubles, preserving the total basis. Dividend reinvestment plans (DRIPs) also create additional lots with their own purchase dates and costs, which must be tracked meticulously.

How the FIFO First In First Out Method Works

Under the FIFO first in first out method, the shares you sell are those you acquired earliest. This is a chronological approach. Imagine you bought shares of XYZ Corp on three different occasions: 50 shares at $40 on January 10, 2022; 100 shares at $55 on June 15, 2022; and 50 shares at $70 on March 1, 2023. If you decide to sell 120 shares today, FIFO dictates that the first 50 shares come from the January 2022 lot, the next 70 from the June 2022 lot. The shares from March 2023 remain untouched.

The cost basis for the sale would be (50 × $40) + (70 × $55) = $2,000 + $3,850 = $5,850. The holding period for each lot determines whether the gain is short-term or long-term. The January and June 2022 lots have been held for more than one year, so any gains from those shares qualify as long-term capital gains. If you had sold before June 15, 2023, the June lot would still be short-term.

FIFO is simple and mechanical. Brokers automatically apply this method unless you actively choose another. It eliminates decision-making but can lead to unexpected tax consequences, especially when older lots have a much lower cost basis than recent purchases. In a bull market, FIFO often slices off your cheapest shares first, maximizing the realized gain.

Comparing FIFO to Other Cost Basis Methods

Although FIFO is the default, investors can select alternative methods to better align with their tax strategies. The most common alternatives are specific identification and average cost. Each has distinct advantages and limitations.

Specific Identification (Spec ID)

Specific identification lets you hand-pick which tax lots to sell at the time of the transaction. You identify the exact shares by purchase date and price when placing the sale order. This gives you maximum control over the capital gains outcome. For example, if you need to minimize taxes, you can sell the highest-cost shares first to reduce the gain. If you want to hold onto shares for long-term qualification, you can select older lots that have aged past the one-year mark. Some investors use specific identification to harvest tax losses by selling shares that have dropped in value.

The IRS requires you to receive a written confirmation from your broker identifying the shares sold. Most modern brokerage platforms facilitate this by displaying individual lots at the time of sale, allowing you to select them. Once sold, you cannot change the lot designation retroactively.

Average Cost Basis

Average cost is commonly used for mutual funds and some ETF shares, but it is generally not allowed for individual stocks unless you’ve elected it for a particular fund. This method calculates the average purchase price per share across all lots. When you sell, the cost basis is simply the number of shares sold multiplied by the average cost. It smooths out fluctuations and simplifies record-keeping, but it offers no flexibility to minimize taxes. Once you elect average cost for a fund, you must continue using it for that specific holding unless you receive IRS permission to change.

Other Lot Selection Methods

Beyond FIFO, specific identification, and average cost, brokerage firms may offer automated lot selection strategies such as highest in, first out (HIFO), lowest in, first out (LOFO), or last in, first out (LIFO). These are not officially recognized IRS methods on their own; rather, they are pre-set instructions for specific identification. HIFO, for instance, sells the shares with the highest cost basis first, which can minimize capital gains. Such strategies can be useful for investors who want a systematic approach without manually selecting lots every time.

Tax Implications of FIFO on Capital Gains

The FIFO first in first out method does not merely affect the dollar amount of your gain; it can also influence the holding period classification, which changes the tax rate applied. Understanding how FIFO interacts with short-term and long-term capital gains, market trends, and wash sale rules is essential for tax planning.

Short-Term vs. Long-Term Capital Gains

Short-term capital gains apply to assets held for one year or less and are taxed as ordinary income, with rates up to 37% depending on your tax bracket. Long-term gains benefit from preferential rates—0%, 15%, or 20%. FIFO tends to bring your oldest shares to the front of the selling queue. If those oldest shares have been held longer than a year, the resulting gains are long-term, which is tax-friendly. However, if you are a frequent trader and the oldest lot is still within the one-year window, FIFO could trigger short-term gains at higher tax rates. Moreover, if you’ve held shares for many years and they have a very low basis, FIFO can realize a large long-term gain in one go, possibly pushing you into a higher tax bracket and triggering the 3.8% net investment income tax.

The Impact of Market Direction on FIFO Tax Outcomes

In a steadily rising market, FIFO almost always magnifies taxable gains because your earliest shares were purchased at the lowest prices. For instance, if you accumulated a stock over several years and the price climbed from $20 to $100, selling under FIFO will realize $80 of gain per share on those earliest lots. Conversely, in a declining market, FIFO may produce smaller gains or even losses because the first shares might have been bought at higher prices than current market value. But markets tend to rise over long periods, so FIFO often increases tax bills for buy-and-hold investors.

Wash Sales and FIFO

The wash sale rule states that if you sell a security at a loss and buy a substantially identical security within 30 days before or after the sale, you cannot deduct the loss. Instead, the disallowed loss is added to the cost basis of the replacement shares. Because FIFO always sells the oldest shares, it can inadvertently trigger a wash sale if you recently purchased additional shares and the sale of older shares results in a loss. Careful lot selection via specific identification can help avoid wash sales, whereas FIFO’s rigidity can complicate loss harvesting efforts.

Advantages and Disadvantages of the FIFO First In First Out Method

Like any cost basis method, FIFO first in first out has its pros and cons. Its simplicity is its greatest strength, but that simplicity can come at a cost when tax optimization is the goal.

Advantages: FIFO is straightforward and requires no decision-making at the time of sale. It is the default method, so investors who don’t actively manage their tax lots never need to worry about making an election. Record-keeping is streamlined because you only need to know the chronological order of purchases. For investors who sell entire positions, the cost basis method is irrelevant because all shares are sold.

Disadvantages: The biggest drawback is its tendency to maximize capital gains in a rising market. By selling the lowest-basis shares first, FIFO accelerates taxable income. Additionally, it can convert what would have been a long-term gain into a short-term gain if you sell before the one-year holding period for those first shares. It also provides no flexibility to manage tax bracket thresholds or to intentionally realize losses. For tax-aware investors, FIFO can be a costly default.

When Should You Use FIFO for Stock Sales?

Despite its potential tax drawbacks, there are scenarios where FIFO first in first out is a smart choice. If the oldest shares have the highest cost basis—because you purchased them at a higher price—then selling them first realizes a smaller gain or a loss, which is tax-efficient. This can happen in a declining market or if you bought a stock when it was overvalued and the price later fell. Additionally, FIFO works well when you don’t want to spend time managing tax lots and the tax difference is minimal. For long-term holders who plan to eventually liquidate the entire position, FIFO simply front-loads gains but may not change the total tax over the life of the investment.

FIFO also works well in retirement accounts like IRAs, where capital gains taxes don’t apply until withdrawal, and the holding period distinction is irrelevant. In such tax-advantaged accounts, the cost basis method matters only for tracking performance, not for taxes.

How to Change Your Cost Basis Method with a Broker

If you decide that FIFO first in first out doesn’t align with your tax strategy, you can change your cost basis method. Most online brokerages allow you to update your default method for future trades. For example, you can switch from FIFO to specific identification, HIFO, or other lot selection methods in your account settings. Changing the default does not retroactively affect already settled trades. Before executing a large sale, ensure you have selected the correct cost basis method and verified the tax lots displayed in the trade order screen.

It’s also wise to consult with a tax professional before making significant changes. They can help model different scenarios to show which method minimizes your tax liability over the long term. Keep in mind that once you use average cost for a mutual fund, you can’t easily switch back for that fund unless you get IRS approval.

Conclusion

Understanding your cost basis options is not just a detail for tax time—it’s a strategic tool for managing your investment returns. The FIFO first in first out method, while simple and automatic, can lead to higher capital gains taxes in buoyant markets and limit your ability to fine-tune tax outcomes. By contrasting FIFO with specific identification and average cost, you can see the value in taking an active role in lot selection. Whether you’re a passive index investor or an active trader, spending a few minutes reviewing your broker’s cost basis settings can save you significant money when it’s time to sell. Always remember that tax planning should be year-round, and your cost basis method is a key piece of that puzzle.

FAQ

What is the default cost basis method for stocks?

The default cost basis method for stocks at almost all brokerage firms is FIFO first in first out. This means that when you sell shares without specifying which tax lots to use, your broker will automatically sell the shares you purchased earliest. You can typically change this default to another method like specific identification in your account settings.

Does FIFO first in first out increase my taxes?

In a rising market, FIFO first in first out often increases your tax bill because it sells shares with the lowest purchase price, generating larger capital gains. However, in a falling market, FIFO may result in smaller gains or even losses. The overall tax impact depends on your purchase history and the price trend of the stock.

Can I switch from FIFO to specific identification after selling?

No, you cannot retroactively change the cost basis method for a trade that has already settled. You must elect the desired method before or at the time of the sale. Most brokers allow you to select specific lots during the order entry process, overriding the default FIFO method for that particular transaction.

How does FIFO affect short-term vs long-term capital gains?

FIFO pushes your oldest shares out first. If those shares have been held for more than one year, the gain is long-term and taxed at lower rates. If the oldest shares are still within the one-year holding period, the gain is short-term and taxed as ordinary income. This can catch investors off guard if they assume all gains will be long-term.

Is FIFO or specific identification better for tax loss harvesting?

Specific identification is generally superior for tax loss harvesting because you can pinpoint the exact lots that are underwater and sell them to realize a loss. FIFO first in first out automatically sells the oldest shares, which might not be the ones with a loss, potentially missing loss-harvesting opportunities or triggering a wash sale if you’ve recently bought shares.

Do all brokers offer FIFO first in first out?

Yes, virtually all U.S. brokerage firms use FIFO first in first out as the default cost basis method for stocks, as required by IRS regulations when no specific identification is made. Most also allow you to switch the default method or use specific identification on a per-trade basis.

Leave a Reply

Your email address will not be published. Required fields are marked *