EquitiesAmerica.com
Taxationlot selectiontax lot accounting

Tax Lot Optimization

Tax lot optimization is the process of systematically selecting which specific purchase lots of a security to sell — based on their cost basis, holding period, and embedded gain or loss — to minimize the current tax liability or maximize the long-term after-tax value of a portfolio when liquidating a position.

When an investor holds multiple purchases of the same security made at different times and prices, each purchase is recorded as a separate tax lot with its own cost basis and acquisition date. When shares are sold, the investor must specify — or the brokerage must apply a default method to determine — which lots are being disposed of. This choice has direct tax consequences, because different lots produce different amounts of taxable gain or loss, and because lots held longer than one year qualify for preferential long-term capital gains rates while those held one year or less are taxed as ordinary income.

The IRS permits several cost basis accounting methods for securities held in taxable accounts. The default for most brokerages on individual stocks and ETFs is first in, first out (FIFO), which sells the oldest lots first. Investors may instead elect average cost (primarily used for mutual funds), specific lot identification, or highest in, first out (HIFO). Each method produces a different taxable outcome depending on the price history of the security and the investor's current tax situation.

Optimizing tax lots requires analyzing four dimensions simultaneously: the gain or loss embedded in each lot, the holding period of each lot, the investor's current and projected tax rates, and the opportunity cost of holding versus selling. For example, if an investor needs to raise cash by selling a position that has risen substantially, optimal lot selection might involve selling older lots first to qualify for long-term rates, retaining newer lots with high cost basis to minimize embedded gain, or selectively selling lots at a loss if available to offset gains realized elsewhere in the portfolio.

For investors with large, appreciated positions accumulated over many years — common among employees who have held employer stock or who have owned index funds for decades — tax lot optimization can generate substantial savings. The difference between selling the highest-basis lots versus the lowest-basis lots in a large liquidation can amount to tens of thousands of dollars in deferred or avoided tax.

Most U.S. brokerages, including Fidelity, Schwab, and Vanguard, allow investors to specify the exact lots they wish to sell at the time of a trade. Robo-advisors and direct indexing platforms from providers including Betterment, Wealthfront, and Parametric automate tax lot selection as part of their tax-loss harvesting algorithms, systematically identifying and liquidating the most tax-advantaged lots across thousands of individual security positions.

Learn more on EquitiesAmerica.com

Educational only. This glossary entry is for informational purposes and does not constitute investment, tax, or legal guidance. Please consult a registered investment professional before making any investment decision.