Tax-Lot Selection: Specific Identification, FIFO and the Shares You Actually Sell

Learn how different purchase lots change realized gains, why broker defaults matter, and how to document a sale without letting taxes dictate the entire investment decision.
Buying the same investment on several dates creates several ownership records, not one indistinguishable purchase. Each acquisition can have its own price, holding period and adjustments. Those records are called tax lots. When you eventually sell part of the position, choosing which lots leave the account can change the gain or loss you recognize even though the sale price is identical.
Tax-lot selection belongs inside a broader investment process. It can improve the implementation of a sensible sale, but it cannot turn an unsuitable holding into a suitable one or remove tax obligations permanently. This guide focuses on US taxable-account concepts. Rules for retirement accounts, inherited assets and unusual securities can differ. Examples are hypothetical and do not assume a particular tax bracket.
Start With the Position and Its Individual Lots
Imagine buying 100 shares in one transaction and another 100 shares later. Your statement may show a single 200-share position, but the broker usually retains separate acquisition information underneath it. Dividend reinvestments can create many additional small lots over time.
Open the detailed lot view before selling. Record acquisition date, quantity, adjusted cost basis and any missing information. A position's displayed average purchase price may be useful for a quick summary, but it does not necessarily establish the tax treatment of every partial sale.
Distinguish economic performance from tax accounting. Your total gain across the position may remain unchanged immediately after a lot-selection decision, while the portion recognized now changes. The remaining shares generally carry the corresponding remaining basis and future tax exposure.
Understand What FIFO Does
First-in, first-out, or FIFO, generally treats the earliest acquired shares as the first sold when that method applies. It is easy to understand, but it is not automatically the lowest-tax choice. Older shares may have a relatively low basis after a long period of appreciation.
A broker's default can determine what happens if you submit a sale without choosing lots. Review that default before trading rather than after receiving a tax form. A convenient interface setting and a legally adequate identification are related operational details, not interchangeable concepts.
Do not assume every asset uses the same permissible methods. Average-basis treatment has specific rules and is not generally available for ordinary individual stocks simply because the broker displays an average price. Product type and prior elections can affect what you may change.
See How Specific Identification Changes the Calculation
Specific identification means designating particular shares under the applicable requirements. The practical process normally involves instructions to the broker and confirmation of the identified shares. Keep evidence of what you requested and what the broker executed.
Consider a hypothetical investor who owns 100 shares purchased at $30 and 100 purchased at $50. The market price is now $60. Selling 100 shares produces $6,000 before costs. Selling the $30 lot realizes a $3,000 gain; selling the $50 lot realizes a $1,000 gain, assuming no basis adjustments.
The immediate difference is $2,000 of realized gain, not automatically $2,000 of tax savings. Tax consequences depend on holding periods, applicable rates, other gains and losses, and future transactions. The unsold lot still matters to the eventual lifetime result.

Separate Holding Period From Basis
A high-basis lot can have a short holding period while an older, lower-basis lot may qualify for different tax treatment. Selecting the smallest dollar gain without considering the character of that gain can produce an inferior result.
For example, two lots could produce gains of $800 and $1,100. The smaller gain is not necessarily cheaper after tax if it is subject to a materially higher applicable rate. Use actual circumstances and current rules rather than assuming all capital gains are taxed alike.
Also consider whether losses have limitations or interactions with other transactions. A tax calculation should be explicit about the year, character and assumptions. Avoid replacing that calculation with a slogan such as always sell the newest shares or always sell the highest basis.
Treat Basis as an Adjusted Record
Purchase price is an important starting point, but adjusted basis can change. Reinvested distributions, stock splits, return of capital, wash-sale adjustments and corporate actions can affect the record. Transfers between brokers can also leave incomplete information that needs reconciliation.
A broker's missing-basis label does not mean the investment had zero economic cost. Nor does a displayed number guarantee that every required adjustment has been captured correctly. Keep trade confirmations, distribution records and relevant issuer notices.
Investigate unexplained changes before a large sale. Correcting a small discrepancy early can be much easier than reconstructing years of records after accounts have moved or an institution has changed systems. For complex holdings, qualified tax help may be more valuable than an elaborate spreadsheet built on uncertain inputs.
Plan the Sale Before Selecting the Lots
Begin with the investment reason for selling: funding a planned expense, reducing concentration, changing an allocation or responding to a revised business assessment. Determine the amount of exposure you actually want to remove before optimizing its tax implementation.
If you decide to reduce a $40,000 position by $10,000, lot selection helps determine which shares satisfy that decision. It should not quietly turn a necessary risk reduction into a token sale because realizing gains feels uncomfortable.
Taxes are one cost of change. Compare them with the consequences of retaining the position, including volatility, business risk and the possibility of a larger future loss. A lower current tax bill is not the same as a better overall financial outcome.
Coordinate With Contributions and Rebalancing
Sometimes you can restore an allocation using new contributions instead of selling appreciated holdings. In other cases, planned withdrawals can be funded from selected lots while simultaneously reducing an overweight position. These approaches connect cash-flow needs with portfolio management.
Consider transaction costs and bid-ask spreads as well as taxes. Several tiny sales may be operationally inefficient even when each looks optimized in isolation. A practical plan should account for the entire sequence of trades and the resulting portfolio.
Our rebalancing guide explains the allocation decision. Lot selection comes afterward as an implementation tool. Keep the two stages visible in your notes so a tax preference does not accidentally become an unexamined investment strategy.
Use Losses Carefully Rather Than Automatically
A lot showing a loss may be useful in an appropriate tax-loss-harvesting plan, but realizing the loss is not the whole analysis. Replacement purchases, dividend reinvestments and transactions in related accounts can create complications under wash-sale rules.
Do not assume that changing ticker symbols always avoids those rules. Whether securities are substantially identical can require judgment, and retirement-account purchases can have unfavorable consequences. Review the intended sequence before acting.
A harvested loss can also change the basis of replacement holdings or shift tax exposure into a future year. Our loss-harvesting explanation provides background, but a specific transaction requires current rules and accurate account records.
Watch Broker Workflow and Timing
Some platforms let you choose lots at order entry, while others provide a separate allocation screen or a limited correction process. Availability and deadlines vary. Learn the workflow before entering a trade whose tax treatment depends on a particular identification.
An order being filled and its lot allocation being confirmed are distinct operational events. Review both. If the confirmation differs from your instructions, contact the broker promptly rather than waiting for year-end documents.
Avoid assuming that a post-trade edit is always permitted or effective. Maintain the broker's written instructions and confirmation, and check how partial fills are handled. A process you have tested with a small, uncomplicated transaction can be easier to operate when a larger sale becomes necessary.
Compare Current and Future Tax Scenarios
A strategy that minimizes this year's gain can leave low-basis shares for later. That may be useful, neutral or costly depending on future tax rates, spending needs, charitable plans and estate circumstances. Forecasts should be scenarios rather than promises.
Suppose the earlier example leaves the $30 lot after selling the $50 lot. If the remaining shares are later sold at $60, they still carry the larger gain under the simplified assumptions. The first sale changed timing; it did not make appreciation disappear.
Model a few plausible paths, including a future sale and a market decline. Precision about an uncertain tax rate should not overwhelm more important uncertainties about the investment itself. Document which assumptions make the preferred choice attractive.
Build a Short Lot-Selection Checklist
Before trading, confirm the account type, security, number of shares and investment purpose. Review basis, acquisition dates, adjustments and permitted methods. Identify any loss-related interactions and estimate the resulting allocation after the sale.
At execution, preserve the lot instructions and confirmation. Afterward, reconcile the remaining shares and basis with your records. At tax-reporting time, compare the broker's information with your own documentation and investigate discrepancies rather than copying numbers uncritically.
The best process is repeatable and understandable to someone else who may help manage the accounts. Tax efficiency depends on execution and recordkeeping as much as on choosing the theoretically best row in a spreadsheet.
Further Reading
Consult IRS Publication 550 and the IRS stock-basis identification FAQ. Read your broker's current lot-selection procedures and retain its confirmations. Tax treatment depends on the security, account, jurisdiction and personal facts.
Image Credits
Cover image: people looking at a document by Vlada Karpovich / Pexels. Pexels License. Resized/recompressed for web; display may be cropped.
In-article image: Business team meeting in office Photo by StarFlames / Pixabay. Pixabay Content License. Resized/recompressed for web; display may be cropped.




