Purewater FinancialSuccess through Clarity Contact Us
← Back to Library

Cost basis methods (FIFO, specific ID)

Intro

You bought the same stock three times over three years at three different prices, and now you are selling part of the position. Which shares did you sell? The answer is not obvious, and it is not trivial, because the shares you are treated as selling determine your tax basis, and basis determines your gain.

In plain terms, when you hold multiple lots of the same security bought at different prices, the Code and regulations let you identify which lots you are selling, and if you do not, a default applies (IRC §1012; Treas. Reg. §1.1012-1). The default for stock is first-in, first-out, which sells your oldest lots first, and that is frequently the worst choice for taxes.

Our stance: for anyone selling part of a holding bought in pieces, specific identification is worth the small amount of effort it takes, because it hands you control over the gain you realize. Letting the FIFO default run on autopilot often means reporting a larger gain than you had to.

Body

The problem: multiple lots, different bases

When you buy the same security more than once, each purchase is a separate lot with its own basis and its own holding period (§1012). Sell the whole position and it does not matter which lot is which; you report the total. Sell only part, and it matters a great deal, because the lots you are treated as selling set the basis you subtract and therefore the gain or loss you report.

The same sale can produce very different results depending on the lots. Selling high-basis lots produces a smaller gain or even a loss; selling low-basis lots produces a larger gain. The sale price is the same; only the basis changes, and the basis changes with which shares you are deemed to have sold.

This is why the method you use to identify the shares is a real decision, not a formality. It is the difference between a sale that realizes a large taxable gain and the same sale structured to realize a small one, from the identical set of shares.

The default: FIFO

If you do not identify which shares you are selling, the default for stock is first-in, first-out: you are treated as selling your oldest lots first (Reg §1.1012-1). FIFO is simple and automatic, which is why it is the fallback, but simplicity is its only virtue from a tax standpoint.

FIFO is often the worst outcome because, for an appreciating asset, your oldest lots usually have the lowest basis. Selling them first means selling your biggest built-in gains first, maximizing the taxable gain on the sale. The default quietly pushes you toward the most-taxed result.

The one thing FIFO reliably does well is lengthen holding periods, since the oldest lots are the most likely to qualify for long-term treatment. But that is a thin consolation if the point was to control the size of the gain, which FIFO does not let you do at all.

Specific identification

The alternative is specific identification: you designate exactly which lots you are selling, and your gain is computed against those lots' basis (Reg §1.1012-1). This gives you direct control over the tax result of a partial sale. Want to minimize gain? Sell the highest-basis lots. Want to harvest a loss? Sell lots that are underwater. Want long-term rates? Sell lots held more than a year.

The catch is timing and documentation. Specific identification generally requires that you designate the lots at or before the sale and that the identification be confirmed, typically through your broker, rather than chosen after the fact when you see how the year turned out. The control is real, but it has to be exercised at the right moment, not reconstructed at filing.

Used well, specific identification turns a sale into a planning decision. It lets you coordinate the sale with your overall capital gains and losses picture, picking lots that produce the character and amount of gain or loss you actually want for the year, rather than accepting whatever FIFO hands you.

Average cost and where methods are locked

Mutual funds have their own common method: average cost, where your basis per share is the average of all your purchases. It is simpler than tracking individual lots and is widely used for funds, but it sacrifices the lot-level control that specific identification provides. Once you use average cost for a fund in certain circumstances, you can be locked into it, so the choice is not always freely reversible.

Broker basis reporting adds another layer. Brokers report basis to the IRS for covered securities, and your chosen method has to be consistent with what is reported, which is another reason to make the lot designation through the broker at the time of sale rather than independently on your return. The reporting and your method need to line up.

The practical takeaway is to decide your method deliberately rather than by default. For individual securities bought in lots, specific identification generally gives the most control; for funds, understand whether you are on average cost and whether you can change it. Either way, make the choice at the time of sale, with your broker, so the basis you report is the basis you intended.

Summary

When you sell part of a holding bought in multiple lots at different prices, the lots you are treated as selling set your basis and therefore your gain (IRC §1012; Treas. Reg. §1.1012-1). The default for stock is FIFO, selling your oldest, usually lowest-basis lots first, which tends to maximize the taxable gain. Specific identification lets you designate exactly which lots you sell, giving you control over the amount and character of gain or loss, but it must be done at or before the sale, typically through your broker. Mutual funds often use average cost, which is simpler but surrenders lot-level control and can lock you in. Choose the method deliberately, at the time of sale.

Sources

Related articles

More in Federal income tax - core concepts

Related prompts & skills

Put this to work

5 free prompts and skills from the library, matched to this article.