Short answer: if you never tell your broker which shares to sell, the default for individual stocks and ETFs is first in, first out (FIFO), meaning the oldest shares go first. Specific identification lets you pick the exact lots, so you can control how much gain or loss you realize and whether it is short-term or long-term. In the FIFO vs specific identification capital gains comparison, neither method changes what you owe over a lifetime of ownership by magic. It changes when the tax arrives and at which rate. The catch: you generally have to make the choice at or before the sale, and your broker must confirm it in writing.

Most people discover lot selection after the fact, when a Form 1099-B shows a big gain on shares they bought years ago while newer, higher-cost shares sit untouched. The sale already settled, the default was applied, and the tax bill followed. That is the moment this topic stops being abstract.

This guide explains how both methods work under the federal regulation that governs them, runs one illustrative sale through every common lot-selection method, and shows where each approach backfires. It also covers average cost for mutual funds, wash sales, holding-period traps and how the result lands on Form 8949. It is general education, not tax, legal or investment advice, and it does not suggest any security.

What matters most before you choose a lot method

  • FIFO is the fallback, not a preference. Under Treasury Regulation 1.1012-1(c)(1)(i), when you cannot adequately identify the shares sold, the sale is charged against the earliest lot you acquired.
  • Specific identification must be timely. The regulation treats identification as timely when it is made no later than the earlier of the settlement date or the time for settlement, and a broker must confirm it in writing.
  • Each lot has its own basis and its own holding period. That is why two sales of the same number of shares can produce different gains and different tax rates.
  • The cheapest tax today is not always the cheapest tax overall. Selling the highest-cost lots shrinks this year’s gain but leaves low-basis shares behind, so more embedded gain waits for later.
  • Mutual funds follow a different default. Average basis is available for shares in regulated investment companies, and many brokers apply it automatically unless you elect another method.
  • Losses bring the wash sale rule. Buying substantially identical shares within 30 days before or after a loss sale can disallow the loss for now.

One caution before the details. Your broker’s screens, default settings and cut-off times are contract and policy matters, not law, and they differ from firm to firm. Always check how your own account is set up before assuming any of this applies in the same way.

How lot selection works, and why basis follows the lot

A tax lot is a batch of shares you bought on one date at one price. Buy 100 shares in January and another 100 in March at different prices and you own two lots, even though your statement may show one position of 200 shares. When you sell part of the position, the tax rules need to know which lot the sold shares came from, because each lot carries its own cost basis (what you paid, including commissions) and its own holding period.

Gain is proceeds minus basis. If lot A cost $50 a share and lot B cost $80, selling 100 shares at $140 produces a $90-per-share gain from A or a $60-per-share gain from B. The same trade, the same price and a $3,000 difference in reported gain, depending purely on which lot is deemed sold.

The rest of this article uses one illustrative portfolio. The fund and the prices are invented for teaching and are not a market quote or a recommendation.

The illustrative lot ledger

LotDate acquiredSharesCost per shareTotal basisGain per share at $140Status on Nov. 20, 2026
AJan. 11, 2021100$50$5,000$90Long-term
BMar. 15, 2023100$80$8,000$60Long-term
CJun. 2, 2025100$110$11,000$30Long-term
ENov. 25, 202550$105$5,250$35Short-term (one day to go)
DMar. 16, 2026100$130$13,000$10Short-term

Illustrative example. Total shares: 450. Total basis: $42,250. Embedded gain at $140: $20,750 (450 shares x $140 = $63,000 value).

Notice the spread. Lot A holds $90 per share of gain, lot D only $10. Every method below is just a different rule for deciding whether to draw from the top of that ledger, the bottom, or somewhere in between.

FIFO vs specific identification capital gains: Bar chart of five illustrative tax lots with gain per share from $10 to $90
Same sale price, very different gain per lot: the lot you pick drives the tax.

FIFO: the default method and what it assumes

FIFO treats the first shares you bought as the first shares you sold. The regulation says that, without adequate identification, the stock sold “is charged against the earliest lot the taxpayer purchased or acquired.” IRS Publication 550 says the same thing in plain terms for stocks and bonds: if you cannot adequately identify what you sold, you use the basis of the securities you acquired first.

FIFO is not inherently bad. It is simple, it needs no instructions, and it tends to produce long-term gains because the oldest lots have usually been held the longest. It also tends to produce the largest gains in a rising market, because old shares usually carry the lowest basis. That is the trade-off in one sentence.

QuestionFIFO (default)Specific identification
Who chooses the lots?Nobody. The oldest lots are matched automatically.You choose, by instruction to your broker.
Is an instruction needed?No.Yes, at or before the time of sale, with written confirmation from the broker.
Typical holding period resultOften long-term, since old lots are old.Whatever you pick: long-term, short-term or a mix.
Typical gain in a rising marketLarger, because early lots usually cost less.Controllable, from large to small gain or even a loss.
Record-keeping burdenLow.Moderate. Lot detail and confirmations matter.
Main riskUnplanned large gain or a missed chance to realize a loss.Poor identification, wrong lot, or a tax-motivated sale that increases future tax.

Federal rule: Treasury Regulation 1.1012-1(c). Broker screens and cut-off times are firm policy and vary.

Specific identification: what counts as adequate identification

Specific identification means you tell the broker, at the time of the sale, exactly which lot (or lots) you are selling. For shares held at a broker, the regulation requires two things: you specify the particular shares to the broker or agent with custody, and the broker confirms that specification in writing. The written confirmation can be part of a trade confirmation or a periodic statement, as long as it comes within a reasonable time after the sale.

The regulation also treats a standing order or instruction for specific identification as adequate identification. In practice, many brokers let you set a default method for the account, such as highest cost first or a specific tax-lot method, and that default then applies to later sales automatically. Whether you have that setting depends on your firm. It is worth checking before you trade, not after.

The timeline that matters

StageWhat should happenWho controls itYour action
Before you place the orderOpen the lot detail for the position and note each lot’s date, cost and holding period.You, using the broker’s toolsDecide the lots and the share counts from each.
When you place the orderSelect the lots or choose a lot-selection method in the order ticket.You and the broker’s systemIf the screen has no lot option, call the broker before selling.
Trade date to settlementIdentification must be made no later than the earlier of the settlement date or the time for settlement.Federal regulation 1.1012-1(c)(8)Do not wait until after settlement to decide.
After the saleThe broker confirms the identified lots in writing, possibly on a trade confirmation or statement.BrokerSave the confirmation. Check that the lots match what you chose.
Tax timeThe broker reports the sale on Form 1099-B using the identified lots.Broker, then youCompare the 1099-B to your confirmation before filing.

Timing rules come from Treasury Regulation 1.1012-1(c)(3) and (c)(8). Cut-off times for placing instructions on a trade date are broker policy.

If the instruction was not recorded properly, you may have a documentation problem rather than a tax-law problem. The regulation puts the burden on adequate identification, so a recollection that you “meant” to sell high-cost shares will not help if the broker’s records say otherwise. Pull the trade confirmation and check it first.

A note on moving money to fund a trade. If you fund a brokerage account by electronic transfer and a trade depends on the cash settling first, see our guide to ACH transfer problems for what delays look like. A delayed funding transfer can change which day a sale or purchase actually settles.

Sale lot-by-lot realized gain table: one sale, four methods

Here is the sale. On November 20, 2026, the investor in our illustrative portfolio sells 150 shares at $140. The proceeds are $21,000 in every case. Only the lots drawn change. The table shows realized gain by lot and by method.

MethodLots drawn (shares)Short-term gainLong-term gainTotal realized gain
FIFO (default)A (100) + B (50)$0$12,000$12,000
Highest cost first (HIFO)D (100) + C (50)$1,000$1,500$2,500
Newest first (LIFO)D (100) + E (50)$2,750$0$2,750
Long-term lots only, highest costC (100) + B (50)$0$6,000$6,000

Illustrative example. Gains: A 100 x $90 = $9,000; B 50 x $60 = $3,000; D 100 x $10 = $1,000; C 50 x $30 = $1,500; E 50 x $35 = $1,750; C 100 x $30 = $3,000; B 50 x $60 = $3,000.

The same trade ranges from a $2,500 gain to a $12,000 gain. That is why the lot decision deserves attention before you click sell. Notice also that the lowest total gain is not the one with the lowest tax, because short-term gains are taxed differently from long-term gains.

What the tax looks like under assumed rates

Net short-term capital gains are taxed as ordinary income. Most net long-term capital gains are taxed at 0%, 15% or 20% depending on taxable income, according to IRS Topic 409. For the illustration we assume a 24% ordinary rate and a 15% long-term rate, and we ignore state tax and the net investment income tax. Your rates will differ.

MethodShort-term gain x 24%Long-term gain x 15%Federal taxCompared with FIFO
FIFO$0$1,800$1,800Baseline
Highest cost first$240$225$465$1,335 lower
Newest first$660$0$660$1,140 lower
Long-term lots only, highest cost$0$900$900$900 lower

Illustrative example. Tax = short-term gain x 0.24 + long-term gain x 0.15. Actual rates depend on your taxable income, filing status and state.

On this one year’s tax, highest-cost-first wins. But that table leaves out the second half of the story: what you still hold afterward.

What you leave behind

MethodGain realized nowEmbedded gain still in the accountWhere the remaining gain sits
FIFO$12,000$8,750Lots C, E and D plus 50 shares of B
Highest cost first$2,500$18,250All of A and B, plus lots C (50), E
Newest first$2,750$18,000All of A, B and C
Long-term lots only, highest cost$6,000$14,750Lot A, lots E and D, 50 shares of B

Illustrative example. Total embedded gain before the sale: $20,750 at $140 per share. Remaining = $20,750 minus gain realized.

Check the arithmetic: in every row, the gain realized plus the gain left behind equals $20,750 ($12,000 + $8,750; $2,500 + $18,250; $2,750 + $18,000; $6,000 + $14,750). No method eliminates the gain. Each one defers or accelerates it. If the remaining low-basis shares are eventually sold at long-term rates, the lifetime federal tax on this portfolio could be similar across methods, and the real benefit of choosing high-cost lots is the delay, plus any chance that rates, income or your circumstances are more favorable later.

That deferral has costs. A larger embedded gain in the account can make later rebalancing expensive, it concentrates risk in lots you are reluctant to sell, and it does not change the fact that tax rules or your own income can move in the wrong direction. Deferral is a trade-off, not a free lunch.

Bar chart comparing realized gain under FIFO, highest cost, newest first and long-term-only selling methods
One 150-share sale produces anywhere from $2,500 to $12,000 of realized gain, depending on the lots drawn.

The holding-period trap: one day can change the rate

The one-year line is the most expensive boundary in lot selection. IRS Topic 409 explains that property held more than one year before you dispose of it produces a long-term gain, while property held one year or less produces a short-term gain. The holding period starts the day after you acquire the asset and includes the day you dispose of it.

Our lot E was bought on November 25, 2025. Counting begins November 26, 2025, so on November 20, 2026 the lot has not yet been held more than a year. A sale on November 25, 2026 is still short-term. A sale on or after November 26, 2026 is long-term.

Interesting fact

The holding period counts from the day after you buy and includes the day you sell. So a lot bought on November 25, 2025 is still short-term if sold on November 25, 2026, and becomes long-term only for a sale on November 26, 2026 or later. One calendar day can move the same gain from ordinary-income rates to long-term rates, per IRS Topic 409.

Choice for lot E (50 shares)Sale dateGain at $140Tax at assumed rateAfter-tax proceeds
Sell nowNov. 20, 2026 (short-term)$1,750$420.00 (24%)$6,580.00
Wait six daysNov. 26, 2026 (long-term)$1,750$262.50 (15%)$6,737.50
Wait, but the price falls to $136.29Nov. 26, 2026 (long-term)$1,564.50$234.68 (15%)About $6,580 (break-even)

Illustrative example. Break-even price solves 50p – 0.15 x 50 x (p – 105) = 6,580, giving p of about $136.29, a 2.65% decline from $140. Short-term tax at 24% on $1,750 = $420.

Waiting six days saves $157.50 in this example, but only if the price holds. A decline of about 2.65% over those days cancels the benefit. The point is not that you should always wait. It is that the rate boundary is worth checking, and that the holding period for each lot is a fact you can read directly on your lot detail page.

Timeline showing lot E turning long-term on November 26, 2026 with tax at 24% before and 15% after
The holding period starts the day after purchase, so one extra day can change the rate.

Special cases that change the holding period

Gifted and inherited property, and some other categories, follow special holding-period and basis rules that Topic 409 refers to Publications 544 and 550 to explain. Shares received through a wash sale carry a holding period that includes the period you held the old shares. If your lots came from gifts, an inheritance, employer stock plans or a divorce, check the rules for that source before you assume the date on your statement controls the result.

Selling at a loss: when specific identification does the heavy lifting

Lot choice matters just as much, sometimes more, when the price has fallen. Suppose the same portfolio is trading at $90 and the investor sells 150 shares. Under FIFO, the oldest lots are the ones with gains. Under specific identification, the investor could instead sell the recent high-cost lots and realize a loss.

MethodLots drawnRealized resultTax effect at assumed ratesNote
FIFOA (100) + B (50)$4,500 long-term gain$675 tax at 15%Loss lots untouched
Specific ID: newest lotsD (100) + E (50)$4,750 short-term lossAbout $1,140 of tax reduced if it offsets short-term gains at 24%Subject to the loss limits and the wash sale rule

Illustrative example at $90 per share. D: 100 x ($90 – $130) = -$4,000. E: 50 x ($90 – $105) = -$750. A: 100 x ($90 – $50) = $4,000. B: 50 x ($90 – $80) = $500.

The swing between the two outcomes is $9,250 of taxable result ($4,500 gain versus $4,750 loss). A capital loss first offsets capital gains. If losses exceed gains, IRS Topic 409 says you can deduct the lesser of $3,000 ($1,500 if married filing separately) or your net loss, and carry any excess forward. The $1,140 figure above assumes the loss actually offsets short-term gains elsewhere. If it does not, you would be using the $3,000 annual limit and carryforward instead.

The wash sale rule

A wash sale occurs when you sell at a loss and, within 30 days before or after the sale, buy substantially identical stock or securities. IRS Publication 550 says the loss cannot be deducted, the disallowed loss is added to the cost of the replacement shares, and the replacement shares’ holding period includes the time you held the old shares. Purchases by your spouse or a controlled corporation can also trigger it.

SituationWash sale?What happensWhat to check
Sell lot D at a loss; buy the same fund back 10 days laterYesLoss disallowed for now and added to the new shares’ basisWhether you meant to keep the exposure; the replacement lot’s new basis
Sell at a loss; automatic dividend reinvestment buys more shares within 30 daysPossiblyThe reinvested purchase can count as a replacement purchaseYour dividend reinvestment settings
Sell at a loss in a taxable account; buy the same fund in an IRACan beThe rules can apply across accounts you control; IRS guidance should be checked for your factsAsk a tax professional; do not assume the IRA is safe
Sell at a loss; buy a different fund tracking a different indexDepends on whether it is substantially identicalNo bright-line list exists; facts matterFund holdings, index and issuer
Sell at a loss; wait 31 days; then buyNoLoss is allowed under normal rulesCount the days carefully and avoid purchases inside the window

Rule source: IRS Publication 550, Wash Sales. Whether two securities are substantially identical is a facts-and-circumstances question.

When you report a wash sale on Form 8949, Publication 550 says to enter code W in column (f) and the disallowed loss as a positive number in column (g). Most brokers show wash sale adjustments on Form 1099-B for the same security in the same account, but they may not see your trades at other firms. Your own records matter.

Average cost for mutual funds: a different default

Mutual fund shares work differently. Treasury Regulation 1.1012-1(e) lets you use the average basis method for shares in certain regulated investment companies and dividend reinvestment plans. Average basis is determined by averaging the basis of all identical shares in an account, regardless of holding period. The regulation also says that shares sold under this method are deemed to be the shares first acquired, which matters for deciding whether the gain is long-term or short-term.

If you place mutual fund shares with a broker, the broker’s default method applies unless you elect another permitted method. You make the election by notifying the custodian or agent in writing, and it applies to later sales, not to ones already made. Publication 550 also covers how to elect and revoke average basis.

FeatureSpecific identificationAverage basis (mutual funds)FIFO
Basis usedThe chosen lot’s own costAccount-wide average cost per shareOldest lot’s cost
Gain controlHighLow. Every share carries the same basis.Low
Holding periodThe chosen lot’sTreated as first shares acquiredOldest lot’s
Applies toStocks, bonds, ETFs and funds, subject to broker supportEligible fund shares and some dividend reinvestment sharesDefault for stock when identification is not adequate
Who sets it upYou, by instructionYou, by written election; broker default applies otherwiseNobody
Main riskWrong or missing documentationLoses the ability to harvest high-cost lotsLarger embedded gains

Rule sources: Treasury Regulation 1.1012-1(c) and (e); IRS Publication 550.

Average cost in numbers

Suppose a fund account holds three purchases: 100 shares at $50, 100 at $80 and 100 at $110. Total cost is $24,000 for 300 shares, so the average basis is $80 per share. Selling 100 shares at $140 produces a $6,000 gain under average basis, treated as drawn from the oldest shares for holding-period purposes.

MethodBasis per share usedGain on 100 shares at $140Comment
Average basis$80$6,000All 300 shares now carry the $80 average
FIFO / oldest lot$50$9,000Largest gain
Specific ID, newest lot$110$3,000Smallest gain, if the fund and broker allow it

Illustrative example. ($5,000 + $8,000 + $11,000) / 300 = $80.

Average basis is simple and often the sensible default for a long-term fund holder who reinvests dividends and does not trade. It is less useful for someone who wants to harvest losses on specific purchases, because averaging hides the lot detail. Switching methods has consequences, so read your broker’s instructions and the regulation before changing anything.

A decision framework for choosing a lot method

A good lot decision starts with the question “what am I trying to do?” rather than “which method is best?” Use this sequence before you sell.

  1. Confirm the account type. Sales inside an IRA or 401(k) generally do not create reportable capital gains, so lot selection is a taxable-account question.
  2. List the lots. Write down each lot’s date, shares, basis and unrealized gain or loss.
  3. Mark the one-year line. Note which lots are long-term today, which turn long-term within a few weeks and which are far from it.
  4. Estimate this year’s tax picture. Other gains, losses, income and the possible net investment income tax all affect the rate on each lot.
  5. Test two or three methods. Compare realized gain, tax and remaining embedded gain, as in the table above.
  6. Check the wash sale window. If any lot is at a loss, plan purchases around the 30-day window.
  7. Place the instruction and save the confirmation.
Your situationMethod that often fitsWhyWhat to watch
Income is low this year and you want to realize some gainFIFO or low-basis long-term lotsGains may fall in the 0% long-term bracketTaxable income thresholds, other income and state tax
Income is high and you want a smaller gain nowHighest-cost lotsLower realized gain this yearHigher future embedded gain; short-term lots taxed as ordinary income
You hold losing lotsSpecific ID on the loss lotsCan realize a loss against other gainsWash sale rule; $3,000 net loss limit
You hold a mix of short- and long-term lotsLong-term lots first, unless a short-term lot has a large lossLong-term rates are generally lowerLots close to the one-year line
You hold a mutual fund and rarely tradeAverage basis (broker default may apply)Simple and consistentCannot pick high-cost shares once elected
You are unsure and the amount is largePause and ask a tax professionalMisidentifying lots is hard to fixSettlement and cut-off times

Decision aid only. It is not a recommendation for any investor.

Decision tree for choosing between FIFO, specific identification and average basis before selling shares
Work through the account type, the lots and the one-year line before you place the order.

When FIFO is actually the better choice

Specific identification gets the attention, but there are good reasons to leave FIFO in place. The goal is not to minimize this year’s tax at any cost. It is to avoid unforced mistakes and to keep a lifetime picture in view.

CounterexampleWhy FIFO may beat high-cost-firstRough effect
You are in the 0% long-term bracket this yearRealizing old low-basis gains now can use the 0% rate, and raises basis for the futureTax of $0 on gain within the bracket; verify thresholds
You expect higher income or rates in future yearsDeferral can mean paying later at a higher rateDepends on future tax; uncertain
The high-cost lots are short-term and the old lots are long-termSelling the high-cost lots may realize short-term gain taxed as ordinary incomeIn our example, $1,000 of short-term gain taxed at 24% instead of 15%
You plan to donate or gift appreciated sharesLow-basis, long-term lots may be the ones to keep for that purposeConsult a tax professional for the rules that apply
You will never use the instruction process correctlyA simple default beats an error-prone workaroundAvoids mismatched records
The account is small and gains are tinyThe time spent may exceed the savingsOften a few dollars

Illustrative reasoning, not advice. Short-term gain is taxed as ordinary income; most long-term gain at 0%, 15% or 20% (IRS Topic 409).

IRS Topic 409 lists the long-term brackets for 2025 as 0% up to $48,350 of taxable income for single filers, 15% above that up to $533,400, and 20% beyond. For married couples filing jointly, those cutoffs are $96,700 and $600,050. Those are 2025 figures, and thresholds are adjusted for inflation, so check the current IRS page for the year you are filing.

High earners should also know about the net investment income tax. IRS Topic 559 describes a 3.8% tax on net investment income, which includes net gains from selling stocks and funds, for individuals whose modified adjusted gross income exceeds $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). A lot choice that shrinks this year’s gain may keep you under or closer to those lines.

How the sale shows up on Form 1099-B and Form 8949

Your broker reports sales on Form 1099-B. For most stock, funds and ETFs bought in recent years, the broker also reports your cost basis to the IRS, and those are called covered securities. The 2025 Instructions for Form 8949 organize the boxes by whether basis was reported to the IRS, and by short-term versus long-term.

SituationShort-term boxLong-term boxWhat to enter
Broker reported basis to the IRSADUse the basis on the 1099-B; correct it with an adjustment and code B if it is wrong
Broker did not report basis, or it is missingBEEnter the correct basis yourself and -0- in column (g)
No Form 1099-B receivedCFEnter your own figures from your records
Wash sale loss disallowedSame box as the saleSame box as the saleEnter W in column (f) and the disallowed loss in column (g)

Source: 2025 Instructions for Form 8949 and IRS Publication 550. Digital asset sales have their own boxes (G through L).

Here is the practical consequence. If you used specific identification, your records, the broker’s written confirmation and the 1099-B should all agree on the lots. When they do not, correcting the return is possible, but it is much easier to catch the mismatch in the first week after the trade than in April.

Mistakes and red flags that cost real money

Red flagWhy it mattersSafer next step
You sell without checking the account’s default methodFIFO or average basis may apply and produce a larger gain than you expectedCheck account settings and lot detail before trading
The order screen shows only the position, not lotsYou may be unable to identify lots on that screenCall the broker or use a lot-selection feature before the sale
You choose lots after the trade settlesIdentification generally must be made by the earlier of settlement or the time for settlementDecide first, trade second
Your records and the broker’s do not matchA mismatch can lead to a wrong basis on Form 8949Keep confirmations and compare against the 1099-B
You sell a lot one day before it turns long-termThe holding period includes the day of sale but starts the day after purchaseCheck the exact date on each lot
You sell at a loss and rebuy within 30 daysThe loss may be disallowed under the wash sale ruleWait out the window or choose a different strategy with advice
Someone contacts you offering to “fix” your tax lots or move your accountCould be a scam or a pressure saleVerify through your broker’s official channels; see our guide to bank impersonation scams for patterns that apply to investment accounts too

Costs that can shrink or hide your savings

Lot selection is a tax tool, and taxes are only one cost. Trading commissions or spreads, fund expense ratios and bid-ask spreads can erase a small tax advantage. Basis includes commissions you paid to buy, and proceeds are reduced by selling costs, so these amounts matter on small trades. For a broader checklist of account-level charges, see our overview of bank account fees. Brokerage fee schedules differ, so read yours.

CostTriggerEffect on lot decisionAvoidable?
Commission or transaction feeBuying or sellingAdjusts basis (buy) and proceeds (sell)Depends on the broker
Bid-ask spreadTrading thinly traded fundsReal cost not shown on 1099-BPartly, by using limit orders
Short-term tax premiumSelling lots held one year or lessOrdinary rates can exceed long-term ratesSometimes, by waiting
Net investment income taxHigher modified adjusted gross incomeAdds 3.8% on net investment income above thresholdsSometimes, by managing gains
State income taxVaries by stateMay tax gains at ordinary ratesDepends on state
Tax-software or preparer timeComplicated lotsCost of cleaning up errorsReduced by good records

Fee schedules and state tax treatment vary; verify yours.

Documents and questions to have ready

DocumentWhy it mattersWhere to get itHow long to keep it
Trade confirmations (purchase and sale)Proves date, price, shares and identified lotsBroker site or statementsUntil the statute of limitations for the return ends; ask a tax professional
Lot detail or cost-basis reportShows the basis and holding period of each lotBroker cost-basis pageSame
Written confirmation of lot identificationRequired by the regulation when broker holds the sharesTrade confirmation or periodic statementSame
Form 1099-BReports sales and basis to you and the IRSBroker, issued after year endSame
Records of reinvested dividendsEach reinvestment is a lotStatementsSame
Transfer recordsBasis follows the shares when moved between brokersBoth brokersSame

Retention periods depend on your situation; confirm with IRS guidance or a tax professional.

Questions to ask your broker before you sell

  • Which cost-basis method is set as my account default, and where can I change it?
  • Can I choose lots on the order screen, or do I need to call?
  • Do my instructions apply to this sale only, or to all future sales?
  • How and when will you confirm the lots in writing?
  • Which of my lots are covered securities with basis reported to the IRS?
  • How are dividend reinvestments recorded as lots?
  • Do you track wash sales across accounts I hold with you?
  • If my instruction was not captured, what is the process and the deadline to fix it?

Alternatives to simply picking a lot

AlternativeHow it worksUpsideDownsideBest fit
Use average basisAverage cost across identical fund sharesSimpleNo lot controlLong-term fund holders
Sell a different assetRaise cash from lots with smaller gainsMay reduce taxChanges your allocationInvestors with flexibility
Sell in a tax-advantaged accountRebalance inside an IRA or 401(k)No reportable capital gain from the tradeLimited to money held thereInvestors with room in those accounts
Delay until the lot is long-termWait past the one-year dateLower rateMarket risk while waitingLots near the line
Spread sales across tax yearsSplit the saleSmooths incomeMarket and timing riskLarge positions
Get professional helpTax preparer or advisorTailored adviceCostComplex or large situations

General alternatives, not recommendations. Each has tax and investment consequences.

The investor.gov introduction to investing from the U.S. Securities and Exchange Commission is a reasonable starting point for the broader questions about risk, diversification and account types that sit behind any selling decision. It does not cover cost basis, so the Treasury regulation and IRS Publication 550 remain the controlling references here.

Glossary

TermPlain-English meaningWhy it mattersCommon confusion
Tax lotA batch of shares bought on one date at one priceBasis and holding period belong to the lotStatements often show one combined position
Cost basisWhat you paid, including commissionsSubtracted from proceeds to compute gainNot the same as current value
FIFOFirst in, first out; oldest lots sold firstDefault when lots are not identifiedNot a rule you can always rely on for funds
Specific identificationChoosing the exact lots to sellLets you control gain or lossNeeds timely instruction and written confirmation
Average basisAccount-wide average cost for eligible fund sharesSimple for fund investorsDifferent from simply averaging prices over time
Holding periodTime you held the assetSets short- versus long-termStarts the day after purchase
Wash saleLoss sale plus a replacement purchase within 30 daysLoss is deferredApplies before and after the sale
Covered securitySecurity whose basis the broker reports to the IRSAffects Form 8949 boxesOlder holdings may be noncovered

Frequently asked questions

What is the default method if I never choose?

For individual stocks and bonds, the default is FIFO. Treasury Regulation 1.1012-1(c)(1)(i) says that when you cannot adequately identify the shares sold, the sale is charged against the earliest lot you purchased or acquired. For mutual fund shares, the broker’s default method applies, and many fund accounts default to average basis unless you elect another permitted method. Defaults are set by your account agreement and settings, not by anything you did at the time of sale. If you have never looked, open your cost-basis settings and read the method listed. Do that before your next sale, because the instruction usually has to be in place by settlement.

Can I pick lots after the sale has settled?

Generally no. The regulation treats identification as timely if it is made no later than the earlier of the settlement date or the time for settlement, and for shares held by a broker, the broker must confirm the specification in writing. A later wish to have sold different shares does not usually satisfy that standard. If your broker made an error in applying your instruction, ask the firm how it handles corrections and what documentation it needs. If you simply forgot to choose, assume the default stands. For a large sale, a tax professional can tell you what, if anything, is possible in your facts.

Is specific identification the same as HIFO?

No. Specific identification is the legal concept: you identify the exact shares sold. Highest cost first is one strategy a broker may offer for choosing them, usually as a preset method. Other presets include newest first, lowest cost first, long-term lots first and tax-efficient or loss-harvesting options, depending on the firm. Whether a preset counts as adequate identification depends on how it is set up and confirmed, which is why a standing instruction recorded on the account matters. Check the broker’s own description of each method rather than relying on the label alone, because names vary between firms.

Does specific identification lower my total lifetime tax?

Not necessarily. In our illustration, the highest-cost method cut this year’s federal tax from $1,800 to $465, but it left $18,250 of embedded gain behind, compared with $8,750 under FIFO. The gains still exist and may be taxed later. The real advantages are timing, the chance to use losses, control over short- versus long-term treatment and flexibility around your income in a given year. Whether the net result favors you depends on future prices, rates, income and when you sell. Nobody can promise it will come out ahead, so treat the table as a way to see the trade-off rather than a forecast.

Can I use specific identification for ETFs and mutual funds?

For ETFs, which trade like stocks, specific identification is generally available if your broker supports lot selection. For mutual funds, average basis is available under Treasury Regulation 1.1012-1(e) and often applies by default, but many brokers also let you choose specific lots for fund shares if you do not use the average method. Once you elect average basis for a fund account, later sales follow that method until you change it for future sales. Because rules and settings differ by broker and fund, confirm what your account allows and read the election instructions before you sell.

How do short-term and long-term gains differ in tax?

Net short-term capital gains are taxed as ordinary income. Most net long-term capital gains are taxed at 0%, 15% or 20%, depending on your taxable income, according to IRS Topic 409. Property held more than one year is long-term, and the holding period starts the day after you acquire it. Some gains have different maximum rates, such as collectibles. State taxes may add to either type. Higher-income investors may also owe the 3.8% net investment income tax under IRS Topic 559. Because thresholds are inflation-adjusted, use the figures for the tax year you are filing.

What happens if my broker does not support lot selection online?

Call the broker before placing the sale and ask how to identify lots. Some firms accept instructions by phone or secure message, and some require you to set a standing method on the account first. Ask how and when the firm will confirm the identified lots in writing, because the regulation requires that confirmation for shares in broker custody. If the firm cannot support specific identification at all, FIFO or average basis will apply, and you may want to factor that into where you hold the position. Do not sell and hope to sort it out later.

Do wash sale rules affect lot selection?

Yes, whenever you sell a lot at a loss. If you buy substantially identical shares within 30 days before or after the sale, the loss is disallowed for now and added to the cost of the replacement shares, according to IRS Publication 550. The replacement shares’ holding period includes the time you held the old ones. Purchases include automatic dividend reinvestments, and purchases by your spouse or a controlled corporation can also count. Plan purchases around the 30-day window, review your reinvestment settings, and keep records across accounts, since your broker may not see trades made elsewhere.

How do inherited or gifted shares change the lots?

Special basis and holding-period rules apply to gifted and inherited property, and IRS Topic 409 points readers to Publications 544 and 550 for the exceptions. That means the purchase date on your statement may not control the holding period, and the basis may be neither what the original owner paid nor what you would assume. If your lots came from a gift or an estate, gather the documents that establish value and date, and confirm the rules for your situation before you pick lots. This is a place where a short consultation with a tax professional can prevent an expensive filing error.

What if my 1099-B shows the wrong lots or basis?

Compare the 1099-B with your trade confirmations and lot records first. If basis was reported to the IRS but is wrong, the 2025 Instructions for Form 8949 say to enter the 1099-B basis in column (e) and correct it through an adjustment in column (g) with code B. If basis was not reported, enter the correct basis yourself. You can also ask the broker for a corrected form when the error is clearly theirs. Keep the documents that support your figures, since the IRS may compare your return against what the broker reported.

Should I hire a professional for lot selection?

For a small sale in a simple account, a few minutes with your lot detail may be enough. Consider professional help when the amount is large, your lots include gifts, inheritances or employer stock, you are near an income threshold, you are harvesting losses across several accounts, or you have already made a trade and are unsure about the identification. A professional can check state rules and your overall return, which an article cannot. Ask what they charge before you start and what documents they will need from you, and bring your lot detail, confirmations and last year’s return.

Your next step. Open your broker’s cost-basis or tax-lot page, write down the default method, and list each lot’s date, shares and basis. Then ask how to place a specific-identification instruction and how written confirmation is delivered. Do this before you sell, not after. If you are depositing money to settle a trade, keep the funding timeline in mind, and if the proceeds are headed to a bank account, our checking account guide explains what to expect with deposits.

Bottom Line

FIFO is what you get when you do nothing, and specific identification is what you get when you act in time and keep the paperwork. Neither is automatically better. Specific identification gives you control over how much gain or loss you realize and whether it is short-term or long-term, but it does not erase the gain: it usually defers it, and the lots left behind may carry more tax later.

FIFO is simple and sometimes the right call, especially in a low-income year or when the high-cost lots are short-term. Before any meaningful sale, check your account default, read the lot detail, mark the one-year line, test a few methods, look at the wash sale window, place the instruction and save the broker’s written confirmation. When the amount is large or your situation is complicated, a tax professional is worth the fee.

Sources

Facts checked November 12, 2026

About this article

By the Banktimer Editorial Team · Published

Banktimer is an independent U.S. consumer-finance publication. Our editors draw on primary and official sources first, such as the CFPB, FDIC, Federal Reserve, and FTC, along with statutes, regulations, and providers’ own agreements and fee schedules. Then we add worked examples and decision tools. Our goal is the most useful, best-supported explanation the sources available to us at the time of writing allow.

This article is general information, not legal, tax, investment, insurance, or financial advice, and reading it does not create a professional relationship with Banktimer. Rates, fees, limits, and rules change, and they vary by state, provider, and contract, so confirm current terms with your bank, lender, insurer, or the agency named in the article before you act. Examples are illustrative unless labeled otherwise. Banktimer is not a bank, lender, insurer, or financial advisor, and we are not responsible for decisions or losses that result from relying on this content. For advice about your own situation, talk to a licensed professional.

Related: Mutual Fund Capital Gains Distribution Tax: Why a Bill Can Arrive Without Selling