A tax lot is a single purchase of a security, with its own date, quantity, and cost. When you sell part of a position bought at different times and prices, the tax lot method decides which lots are sold, and with them the size of the gain, whether it is short-term or long-term, and the tax due.
This guide explains how tax lot accounting works, applies five methods to the same sale, sets out the US rules worth knowing, including wash sales, and covers what changes for funds and family offices that hold the same security across several accounts and entities.
Key takeaways
- Each purchase is its own lot, with a date, a quantity, and a cost basis.
- Basis keeps moving after the purchase. Splits, reinvested dividends, return of capital, mergers, and wash sales all adjust lots.
- The method picks the lots: FIFO, LIFO, HIFO, specific identification, or, for mutual fund shares, average cost.
- The same sale gives very different results. In our example, selling 100 shares at $58 is a $1,800 long-term gain under FIFO and a $200 long-term loss under HIFO.
- In the US, FIFO is the default for shares if you do not identify the lots; average cost is allowed only for mutual fund shares and certain dividend reinvestment plans.
- Wash sales defer losses. Buying substantially identical securities within 30 days before or after a loss sale disallows the loss and adds it to the new lot’s basis.
- Institutions need lots by book. Funds and family offices may use different methods per entity and must track lots across custodians.
What is a tax lot?
A tax lot records one acquisition of a security: the trade date, the number of shares or units, and the cost, including commissions, later adjusted for events such as return-of-capital distributions or wash sales. The trade date starts the holding period. In the US, shares held for more than one year produce long-term gains, which are usually taxed at lower rates than short-term gains. Tax lot accounting keeps every lot separate so that each sale can be matched to specific lots.
What goes into a lot’s cost basis
A lot starts at the price paid plus commissions and fees, but its basis keeps moving after the purchase.
| Event | Effect on the lot |
|---|---|
| Purchase | New lot at the price paid plus commissions and fees |
| Reinvested dividends | Each reinvestment creates a new, small lot at that day’s price |
| Stock split | More shares, same total cost, lower cost per share; the purchase date stays the same |
| Return of capital | Reduces the cost basis; any amount beyond the basis is a capital gain |
| Merger or spin-off | Cost is split between the old and new shares using the issuer’s allocation, usually published on IRS Form 8937 |
| Wash sale | The disallowed loss is added to the replacement lot |
| Gift | The giver’s basis usually carries over, with special rules if the shares are worth less than that basis |
| Inheritance | Basis steps up or down to fair market value at the date of death, and a later sale counts as long-term |
Example: a split and a return of capital
| Event | Shares | Total cost basis | Cost per share |
|---|---|---|---|
| Bought (Lot A) | 100 | $4,000.00 | $40.00 |
| 2-for-1 split | 200 | $4,000.00 | $20.00 |
| Return of capital of $1.00 a share | 200 | $3,800.00 | $19.00 |
The split doubles the shares and halves the cost per share without changing the total or the purchase date. The return of capital lowers the basis to $3,800, which makes any later gain larger.
Tax lot methods compared
| Method | Which lots are sold first | Typical effect |
|---|---|---|
| FIFO (first in, first out) | The oldest lots | Often long-term, often the largest gains in a rising market |
| LIFO (last in, first out) | The newest lots | Smaller gains in a rising market, but more likely short-term |
| HIFO (highest in, first out) | The highest-cost lots | The smallest gain or largest loss on each sale |
| LOFO (lowest in, first out) | The lowest-cost lots | The largest gain; used to realize gains on purpose |
| Specific identification | The lots you name at the time of sale | Full control, if the identification is made and documented |
| Average cost | All shares at their average cost | Simple; in the US, only for mutual fund shares and certain dividend reinvestment plans |
Example: one sale, five methods
An investor holds 300 shares of one company, bought in three lots:
| Lot | Bought | Shares | Price | Cost |
|---|---|---|---|---|
| A | Mar 1, 2023 | 100 | $40.00 | $4,000 |
| B | Sep 15, 2024 | 100 | $60.00 | $6,000 |
| C | Jan 10, 2026 | 100 | $55.00 | $5,500 |
On November 2, 2026, the investor sells 100 shares at $58. Here is the result under each method:
| Method | Shares treated as sold | Gain or loss | Holding period |
|---|---|---|---|
| FIFO | Lot A, bought first | $1,800.00 | Long-term |
| LIFO | Lot C, bought last | $300.00 | Short-term |
| HIFO | Lot B, highest cost | -$200.00 | Long-term |
| Specific identification | Any lot you name; here Lot B | -$200.00 | Long-term |
| Average cost (mutual fund shares only) | Average cost of $51.67 a share | $633.33 | Long-term |
The same sale is a $1,800 long-term gain, a $300 short-term gain, or a $200 long-term loss, depending only on the method. Average cost, at $51.67 a share, would apply only if these were mutual fund shares; the shares sold are then treated as the oldest for the holding period.
What a wash sale does to the loss
Suppose the investor uses HIFO to realize the $200 loss, then buys 100 shares back at $57 on November 20. That is within 30 days, so the loss is disallowed and added to the cost of the new lot, which becomes $5,900 instead of $5,700. The loss is deferred until that lot is sold.
Illustrative example, ignoring commissions. Not tax advice.
Keep tax lots right across every custodian
FundCount tracks lots by method per book, adjusts cost basis at the lot level, and flags wash sales, from custodian data in one ledger.
How much tax the method changes
In the US, long-term gains are taxed at 0%, 15%, or 20%, plus the 3.8% net investment income tax for higher earners, while short-term gains are taxed as ordinary income, at up to 37%. Applying an illustrative 15% long-term rate and 32% short-term rate to the example:
| Method | Gain or loss | Holding period | Tax at illustrative rates |
|---|---|---|---|
| FIFO | $1,800.00 | Long-term | $270.00 |
| LIFO | $300.00 | Short-term | $96.00 |
| HIFO | -$200.00 | Long-term | Saves $30.00 if offset against other gains |
| Average cost | $633.33 | Long-term | $95.00 |
Here the short-term LIFO gain costs less tax than the long-term FIFO gain because it is so much smaller; with a different price history, the answer flips. HIFO’s loss is worth most when it offsets other gains. The best method is the one that fits the whole year’s gains and losses, not a single sale.
Illustrative rates; actual rates depend on income and filing status. Not tax advice.
US rules to know
- FIFO is the default. If you do not identify the shares sold, the earliest-acquired shares are treated as sold first.
- Specific identification must be timely. Name the lots at the time of the sale, through your broker or a standing instruction, and keep the confirmation.
- Average cost is limited. The IRS allows average basis only for mutual fund shares and certain dividend reinvestment plans, not for ordinary shares.
- Wash sales span accounts. The 61-day window covers 30 days before and after the sale, and you must apply it across all your accounts, even though each broker reports only its own.
- Brokers report covered securities. For shares acquired from 2011 and mutual fund shares from 2012, brokers report cost basis on Form 1099-B, which your records should match.
Tax-loss harvesting with tax lots
Tax-loss harvesting means selling lots that stand at a loss to offset gains elsewhere. Lot-level records make it possible: a position can show an overall gain while some of its lots are under water.
- Losses offset gains first. Net capital losses then offset up to $3,000 of ordinary income a year, or $1,500 if married filing separately, and the rest carries forward.
- Mind the 61-day window. Buying the same or a substantially identical security within 30 days before or after the sale turns the loss into a wash sale.
- IRAs count. If the replacement is bought in an IRA, the loss is disallowed and cannot be added to the IRA’s basis, so it is lost for good (Revenue Ruling 2008-5).
- “Substantially identical” is not precisely defined. Swapping one fund for another that tracks the same index is a gray area; take advice.
Tax lots for mutual funds, bonds, and digital assets
- Mutual funds: average cost is allowed, and many fund companies use it as their default.
- Bonds: basis changes over time with amortized premium and, for some bonds, accrued market discount or original issue discount, so each lot needs its own schedule.
- Digital assets: since January 1, 2025, US taxpayers must track basis wallet by wallet or account by account, and FIFO applies within each wallet unless specific units are identified. Revenue Procedure 2024-28 allowed a one-time allocation of unused basis as of that date.
- Form 1099-DA: brokers reported gross proceeds for 2025 digital asset sales; basis reporting starts with 2026 sales of assets acquired and held in the same account from January 1, 2026.
We have also written about the wider tax implications of cryptocurrency.
Tax lots in funds and family offices
- Methods by book and entity. A family office may use specific identification in one trust and FIFO in another; a fund may keep a book basis alongside a tax basis.
- Many custodians. The same security held at several custodians needs one lot history, or the wash sale and holding period checks fail.
- Corporate actions. Splits, mergers, and spin-offs change quantities and spread cost across new lots.
- Book versus tax. Accounting cost and tax cost can differ, so the ledger has to keep both where needed. For the accounting side, see our guide to investment accounting.
Common tax lot mistakes
- Relying on each broker’s default. Different custodians, different methods, and no single view.
- Missing wash sales across accounts. Each broker sees only its own trades.
- Corporate actions not applied to lots. Cost and holding periods go wrong after a merger or spin-off.
- Identification made after the fact. Specific lots chosen at tax time do not count.
- Book and tax lots mixed up. One cost basis used for two different purposes.
How FundCount handles tax lots
- Data aggregation applies a tax lot method of FIFO, LIFO, HIFO, or specific identification per book, detects wash sales automatically, and tracks cost basis adjustments at the lot level.
- Portfolio accounting keeps positions, valuations, P&L, and tax lots in the same ledger as the general ledger, across asset classes.
- The general ledger handles cost lots natively, multi-entity and multi-currency, for family offices and funds alike.
Watch-outs
- Load full lot history, not just current positions, so holding periods and wash sales are right from day one.
- The lot method is a tax decision; confirm it with your tax adviser for each entity.
See tax lot accounting without spreadsheets
In a guided walkthrough, we load positions from several custodians, apply a lot method per book, and show realized gains by lot.
FAQs
What is a tax lot?
A record of one purchase of a security: its date, quantity, and cost basis. Each lot has its own holding period.
What is tax lot accounting?
Keeping each lot separate and matching every sale to specific lots, so that gains, losses, and holding periods are calculated correctly.
What is the best tax lot method?
There is no single best one. HIFO and specific identification usually minimize gains on each sale; FIFO is simplest. The right choice depends on your tax position.
What is HIFO?
Highest in, first out: the lots with the highest cost are treated as sold first, which minimizes the gain on each sale.
What is the default cost basis method?
In the US, FIFO for shares when you do not identify the lots. Many mutual funds default to average cost for their shares.
What is a wash sale?
Selling a security at a loss and buying substantially identical securities within 30 days before or after. The loss is disallowed and added to the basis of the new shares.
How do stock splits affect tax lots?
A split changes the number of shares and the cost per share in each lot, but not the lot’s total cost or its purchase date.
What happens to tax lots when dividends are reinvested?
Each reinvestment buys new shares and creates a new lot with its own date and cost, which is why long-held positions can have hundreds of lots.
How do tax lots work for crypto?
Since 2025, US taxpayers track basis separately for each wallet or account. Unless you identify specific units when you sell, FIFO applies within that wallet.
Does the tax lot method change short-term and long-term gains?
Yes. Each lot keeps its own purchase date, so the method decides whether the shares sold were held for more than a year.
Sources and methodology
Sources: IRS guidance on stocks and average basis (irs.gov frequently asked questions); broker and fund company cost basis guides (Fidelity, PIMCO, Invesco, Raymond James) on FIFO defaults, wash sales, and Form 1099-B reporting; IRS Topic No. 409 on capital gains; Revenue Ruling 2008-5; EY Tax News (November 2025) and Forvis Mazars (September 2026) on digital asset basis rules. FundCount capabilities reviewed in November 2026.
Examples: fictional and simplified, ignoring commissions.
Scope: general information on US rules, not tax advice. Rules differ in other countries.
Published: November 2026.