Educational content only — not investment adviceAdvertiser disclosure
tax tipsfoundation

Tax Lot

A tax lot is a group of investment units acquired in the same transaction or under the same basis conditions. Different lots of the same security can have different acquisition dates, adjusted bases and unrealized gains or losses, which can materially affect the tax result when part of a position is sold.

By ROIStreet EditorialReviewed by ROIStreet PublisherLast reviewed: 2026-08-31Editorial process12 min read✓ Fact-checked

> Definition > > A tax lot is a group of shares, bonds or other investment units acquired in the same transaction or under the same basis conditions. Each lot can have its own acquisition date, adjusted basis and holding period. When only part of a position is sold, the lot treated as sold can determine the amount and character of the resulting capital gain or loss.

Expanded explanation

A brokerage account may show 500 shares of one stock as a single position.

For tax purposes, those 500 shares can represent several different histories.

Suppose the shares were acquired this way:

  • 100 shares at $20
  • 200 shares at $35
  • 200 shares at $50

The market sees 500 shares of the same company.

Tax accounting sees three acquisition groups with different bases and dates.

That distinction becomes important when fewer than 500 shares are sold.

The sale price is determined by the market.

The gain or loss depends partly on which shares are treated as sold.

What information belongs to a tax lot?

A tax lot typically carries information such as:

  • security
  • acquisition date
  • number of shares or units
  • original basis
  • adjusted basis
  • holding period
  • unrealized gain or loss
  • adjustments caused by events such as wash sales or corporate actions

The exact brokerage display varies.

The core idea does not.

A tax lot preserves the tax history of a particular block of investment units.

Why repeated purchases do not automatically become one average cost

Assume 100 shares are bought at $20 and another 100 at $60.

Current price:

$70

The first lot has an unrealized gain of:

($70 − $20) × 100 = $5,000

The second lot has an unrealized gain of:

($70 − $60) × 100 = $1,000

The combined position has:

  • 200 shares
  • total basis: $8,000
  • market value: $14,000
  • total unrealized gain: $6,000

An average basis of $40 per share describes the aggregate arithmetic.

It does not automatically mean ordinary stock can be reported as though every share has a $40 tax basis.

IRS Publication 550 states that, except for certain mutual-fund and qualifying dividend-reinvestment-plan shares, average basis is not generally available when individual shares cannot be identified.[1]

For ordinary stock, lot history matters.

Specific identification

Specific identification allows the basis of particular shares to be used when those shares are adequately identified.

IRS Publication 550 explains that an investor who adequately identifies the shares sold can use the adjusted basis of those particular shares.[1]

For securities held through a broker, proper identification generally requires specifying the shares to be sold at the time of the sale or transfer and receiving written confirmation from the broker or agent within a reasonable time.[1][2]

That timing matters.

Specific identification is not simply an after-the-fact choice made during tax preparation.

The trade and the records need to support the lot that is claimed as sold.

Worked example: same sale, different lot

Assume three lots of the same stock:

LotSharesPurchase priceBasis
A100$20$2,000
B100$35$3,500
C100$50$5,000

Current market price:

$60

The investor sells 100 shares for:

$6,000

Ignoring fees and later basis adjustments:

Sell Lot A

$6,000 − $2,000 = $4,000 gain

Sell Lot B

$6,000 − $3,500 = $2,500 gain

Sell Lot C

$6,000 − $5,000 = $1,000 gain

Nothing about the market transaction changed.

The investor sold 100 shares at $60 in every case.

Only the identified tax lot changed.

That is why lot selection can materially affect the current tax result.

FIFO

If shares were acquired at different times or prices and cannot be adequately identified, IRS guidance generally applies first in, first out, or FIFO, for ordinary stocks and bonds.[1][2]

FIFO means the earliest-acquired shares are treated as sold first.

Using the prior example, if no valid identification is made, the $20 lot may be treated as the first 100 shares sold.

That can produce a larger gain than selling a newer, higher-basis lot.

FIFO is therefore not inherently a tax-minimization method.

It is primarily an ordering rule used when the sold shares are not otherwise adequately identified.

Specific identification vs. FIFO

FeatureSpecific identificationFIFO
Which lot is sold?Selected eligible lotOldest shares first
Investor choiceYes, if properly identifiedNo discretionary lot choice
DocumentationRequiredBrokerage records still matter
Tax outcomeDepends on selected lotDepends on oldest lot
Typical useDeliberate lot managementDefault when identification is inadequate

Specific identification offers flexibility.

That flexibility can be useful, but it creates responsibility.

The investor has to know what the lot selection does to basis, holding period and the remaining portfolio.

Holding period is part of the lot

Tax lots differ by more than cost.

They can also have different holding periods.

Assume:

  • Lot A was purchased 18 months ago
  • Lot B was purchased 5 months ago

Both lots now have the same $1,000 gain.

Selling Lot A can generally produce a long-term capital gain under the ordinary federal holding-period rule.

Selling Lot B can generally produce a short-term capital gain.

Same dollar gain.

Different tax character.

This is why automatically choosing the highest-basis lot is not always the best tax decision.

A lower-basis long-term lot can sometimes produce a more favorable result than a slightly higher-basis short-term lot, depending on the taxpayer's full gain-and-loss picture.

The highest-basis lot is not always best

High-basis shares often produce the smallest current gain.

That makes them attractive when the objective is simply to reduce current taxable gain.

But tax-lot selection should not be reduced to:

Always sell the highest basis.

Other factors can matter:

  • short-term vs. long-term character
  • existing capital-loss carryforwards
  • expected future tax rates
  • charitable-gifting plans
  • estate planning
  • concentration reduction
  • portfolio rebalancing
  • future expected returns

A low-basis lot might be a strong candidate for charitable donation.

A high-basis lot might be more useful for a taxable sale.

Another lot might be the only one with a harvestable loss.

The correct choice depends on the entire plan.

Tax lots and capital gains

ROIStreet's GLS-025 — Capital Gain explains the basic calculation:

amount realized − adjusted basis = capital gain or loss

Tax lots determine which adjusted basis enters that formula when only part of a multi-lot position is sold.

Suppose a position contains:

  • 100 shares with $2,000 basis
  • 100 shares with $5,000 basis

A sale of 100 shares for $6,000 produces either:

$4,000 gain

or:

$1,000 gain

depending on the lot treated as sold.

Tax-lot selection does not change the investment's market value.

It changes the basis assigned to the sale.

Tax lots and capital losses

The same logic applies below basis.

Suppose the current price is $30.

The $20 lot has:

$1,000 unrealized gain

The $35 lot has:

$500 unrealized loss

The $50 lot has:

$2,000 unrealized loss

Selling 100 shares can therefore create:

  • a gain
  • a small loss
  • a larger loss

depending on the lot.

This is why tax-loss harvesting software examines lot-level data rather than only the total position.

A stock can be up overall while some newer lots are below basis.

It can also be down overall while an older low-basis lot still contains a gain.

A position can be profitable while one lot is losing

Assume:

  • 100 shares bought at $10
  • 100 shares bought at $50
  • current price: $40

Combined position:

  • total basis: $6,000
  • market value: $8,000
  • total unrealized gain: $2,000

Yet the second lot has:

($40 − $50) × 100 = -$1,000 unrealized loss

The position is profitable overall.

One tax lot is losing.

That lot-level view can create tax-management options that disappear when the position is viewed only in aggregate.

Reinvested dividends can create many small lots

Automatic dividend reinvestment can generate new tax lots repeatedly.

If a quarterly dividend purchases fractional shares four times a year, a long-held position can accumulate dozens of acquisition dates and bases.

IRS guidance notes that reinvested dividends generally purchase additional shares and that records may need to be reconstructed if detailed reinvestment history is missing.[3]

These small lots matter.

Ignoring their basis can overstate taxable gain when the position is eventually sold.

They can also complicate specific identification and wash-sale monitoring.

Average basis is a special method, not the default for every security

Certain mutual-fund shares and qualifying dividend-reinvestment-plan shares can be eligible for the average-basis method under federal rules.[1][4]

Average basis generally combines the basis of eligible identical shares and divides by the number of shares.

That does not make average basis available for every stock position.

The distinction is important because brokerage interfaces sometimes use the phrase average cost as a performance display.

A performance metric shown on-screen does not by itself establish the tax method permitted for the security.

Tax reporting follows the applicable basis rules and elections.

Wash sales can alter a tax lot

A tax lot is not frozen forever.

The wash-sale rule can increase the basis of replacement shares when a loss is disallowed and carried into a replacement taxable-account position under the ordinary rule.

Example:

  • loss sale: $2,000
  • replacement shares purchased for: $8,000
  • full loss disallowed under the assumed facts

Replacement basis can become:

$10,000

That adjustment belongs to the replacement shares.

The replacement lot therefore contains tax history from the prior sale.

Wash-sale rules can also affect holding-period treatment.

This is why adjusted basis, rather than original trade price, is the relevant number.

Broker defaults matter

Many brokerage platforms allow a default disposal method to be selected.

Possible labels can include:

  • FIFO
  • specific lot
  • highest cost
  • lowest cost
  • tax-sensitive methods

Those labels can be operationally useful.

They do not replace federal tax rules.

The actual lot identification, broker confirmation, basis records and security type still control.

A particularly bad time to discover the account's default is after a large taxable sale has already been executed.

Broker-reported basis still needs review

Brokers report basis information for many covered securities.

IRS guidance notes that Form 1099-B can include acquisition date, short-term or long-term status, cost or other basis and certain wash-sale adjustments for covered transactions.[3]

That makes modern lot tracking much easier.

It is not perfect.

Basis problems can still arise after:

  • transfers between brokers
  • older noncovered purchases
  • missing reinvestment records
  • corporate actions
  • inherited or gifted shares
  • wash sales involving another account
  • manual corrections

IRS Form 8949 instructions specifically allow basis adjustments when the amount reported by the broker requires correction.[5]

The brokerage lot screen is useful evidence.

It is not infallible.

Tax lot vs. position

A position answers:

How much of this investment is owned now?

A tax lot answers:

What tax history belongs to this particular block of that investment?

A position can have:

  • one lot
  • several lots
  • hundreds of lots

That difference explains why portfolio performance and tax reporting can show different levels of detail.

Investment analysis often works at the position level.

Tax realization often works at the lot level.

Common misconceptions

"All shares of the same stock have the same basis."

Not when they were purchased at different prices or adjusted differently.

"The broker always averages stock basis."

No. Average basis is available only in specified circumstances. Ordinary stocks generally retain lot-specific basis unless another permitted rule applies.

"FIFO means the newest shares are sold first."

No. FIFO means first in, first out: the oldest shares are treated as sold first when the rule applies.

"Specific identification can be chosen at tax time."

Not safely as a general rule. Proper identification and broker confirmation requirements apply.[1][2]

"The highest-basis lot is always best."

No. Holding period, loss carryovers, future tax rates and portfolio objectives can change the answer.

"Lot selection changes investment performance."

It changes the tax basis assigned to the sale, not the market return of the security.

"A profitable position cannot contain a losing lot."

It can. Different acquisition prices can produce gains and losses inside the same overall position.

"Broker-reported basis can never be corrected."

IRS reporting procedures allow adjustments when the reported basis requires correction.[5]

Professional note

Tax-lot selection is most useful when treated as part of trade execution rather than an afterthought.

Before a partial taxable sale, the relevant questions are:

  1. Which lots exist?
  2. What is each lot's adjusted basis?
  3. Which lots are short-term or long-term?
  4. Which lot-selection method will the broker use?
  5. Is specific identification properly documented?
  6. Are there wash-sale or other basis adjustments?
  7. What tax attributes already exist elsewhere in the portfolio?
  8. Does the selected lot fit the investment reason for the trade?

The objective is not to minimize tax on every individual transaction.

It is to make the portfolio decision with a clear understanding of the tax consequence.

Related terms

  • Cost Basis — GLS-026: each tax lot carries its own basis history.
  • Capital Gain — GLS-025: lot basis helps determine the gain recognized on a sale.
  • Capital Loss — GLS-027: a lot below adjusted basis can create a realized loss when sold.
  • Tax-Loss Harvesting — GLS-028: harvesting is usually evaluated at the tax-lot level.
  • Wash-Sale Rule — GLS-014: can adjust basis and holding period of replacement shares.
  • Return — GLS-005: tax-lot accounting and investment performance answer different questions.

Related ROIStreet guides

  • INV-012 — What Is a Stock?
  • INV-014 — What Is an ETF?
  • INV-015 — What Is a Mutual Fund?
  • INV-039 — How to Build a Diversified Portfolio

Sources & References

1. Internal Revenue Service, Publication 550 (2025), Investment Income and Expenses https://www.irs.gov/publications/p550

2. Internal Revenue Service, Stocks (Options, Splits, Traders) — Cost Basis FAQ https://www.irs.gov/faqs/capital-gains-losses-and-sale-of-home/stocks-options-splits-traders/stocks-options-splits-traders-1

3. Internal Revenue Service, Stocks (Options, Splits, Traders) https://www.irs.gov/faqs/capital-gains-losses-and-sale-of-home/stocks-options-splits-traders

4. Internal Revenue Service, Mutual Funds — Average Basis FAQ https://www.irs.gov/faqs/capital-gains-losses-and-sale-of-home/mutual-funds-costs-distributions-etc/mutual-funds-costs-distributions-etc-1

5. Internal Revenue Service, Instructions for Form 8949 https://www.irs.gov/instructions/i8949

Educational Disclaimer

ROIStreet publishes educational content intended to help readers understand investing and investment taxation. Nothing in this glossary entry is personalized investment, legal, tax or financial advice. Tax-lot treatment depends on the security, acquisition history, basis adjustments, holding period, account, broker procedures and taxpayer circumstances, and current tax rules should be verified before filing or acting.

The ROIStreet Reader Promise

We strive to explain before we evaluate, present evidence before opinions, discuss risks alongside potential benefits, distinguish facts from analysis, and correct material errors transparently.

Our purpose is to help readers better understand investing—not to tell them what to do.

Definitions used in this guide

Return
Investment return is the gain or loss produced by an investment over a period, including changes in value and applicable income such as interest, dividends or distributions.
Wash sale rule
A US tax rule that disallows a loss deduction if you buy a substantially identical security within 30 days before or after the sale.
Capital Gain
A capital gain generally occurs when a capital asset is sold or otherwise disposed of for more than its adjusted basis. The holding period determines whether the gain is usually classified as short-term or long-term.
Cost Basis
Cost basis is the amount used to measure gain or loss when an investment is sold. Purchase cost is often the starting point, but reinvestments, stock splits, return of capital, wash sales, gifts, inheritances and other events can change the basis used for tax reporting.
Capital Loss
A capital loss generally occurs when a capital asset is sold or otherwise disposed of for less than its adjusted basis. Capital losses first offset capital gains under federal netting rules, while excess net losses for individuals are subject to an annual deduction limit and carryover rules.
Tax-Loss Harvesting
Tax-loss harvesting is the deliberate sale of an investment at a loss to create a realized capital loss that can offset taxable capital gains and, subject to federal limits, other income. The strategy can improve tax timing, but wash-sale rules, trading costs, replacement exposure and future taxes can reduce its value.
Holding Period
A holding period is the length of time an investor is treated as owning property for tax purposes. For most capital assets, one year or less generally produces short-term character while more than one year generally produces long-term character, subject to special rules.
Qualified Dividend
A qualified dividend is an ordinary dividend that meets federal issuer, holding-period and other requirements and is therefore eligible for the maximum tax rates that generally apply to net capital gain rather than ordinary-income rates.

We may earn a commission if you open an account through links on this page. Our editorial analysis is independent and is never influenced by commercial partnerships. Full disclosure.