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
| Lot | Date acquired | Shares | Cost per share | Total basis | Gain per share at $140 | Status on Nov. 20, 2026 |
|---|---|---|---|---|---|---|
| A | Jan. 11, 2021 | 100 | $50 | $5,000 | $90 | Long-term |
| B | Mar. 15, 2023 | 100 | $80 | $8,000 | $60 | Long-term |
| C | Jun. 2, 2025 | 100 | $110 | $11,000 | $30 | Long-term |
| E | Nov. 25, 2025 | 50 | $105 | $5,250 | $35 | Short-term (one day to go) |
| D | Mar. 16, 2026 | 100 | $130 | $13,000 | $10 | Short-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: 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.
| Question | FIFO (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 result | Often long-term, since old lots are old. | Whatever you pick: long-term, short-term or a mix. |
| Typical gain in a rising market | Larger, because early lots usually cost less. | Controllable, from large to small gain or even a loss. |
| Record-keeping burden | Low. | Moderate. Lot detail and confirmations matter. |
| Main risk | Unplanned 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
| Stage | What should happen | Who controls it | Your action |
|---|---|---|---|
| Before you place the order | Open the lot detail for the position and note each lot’s date, cost and holding period. | You, using the broker’s tools | Decide the lots and the share counts from each. |
| When you place the order | Select the lots or choose a lot-selection method in the order ticket. | You and the broker’s system | If the screen has no lot option, call the broker before selling. |
| Trade date to settlement | Identification 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 sale | The broker confirms the identified lots in writing, possibly on a trade confirmation or statement. | Broker | Save the confirmation. Check that the lots match what you chose. |
| Tax time | The broker reports the sale on Form 1099-B using the identified lots. | Broker, then you | Compare 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.
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.
| Method | Lots drawn (shares) | Short-term gain | Long-term gain | Total 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 cost | C (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.
| Method | Short-term gain x 24% | Long-term gain x 15% | Federal tax | Compared with FIFO |
|---|---|---|---|---|
| FIFO | $0 | $1,800 | $1,800 | Baseline |
| 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
| Method | Gain realized now | Embedded gain still in the account | Where the remaining gain sits |
|---|---|---|---|
| FIFO | $12,000 | $8,750 | Lots C, E and D plus 50 shares of B |
| Highest cost first | $2,500 | $18,250 | All of A and B, plus lots C (50), E |
| Newest first | $2,750 | $18,000 | All of A, B and C |
| Long-term lots only, highest cost | $6,000 | $14,750 | Lot 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.

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.
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 date | Gain at $140 | Tax at assumed rate | After-tax proceeds |
|---|---|---|---|---|
| Sell now | Nov. 20, 2026 (short-term) | $1,750 | $420.00 (24%) | $6,580.00 |
| Wait six days | Nov. 26, 2026 (long-term) | $1,750 | $262.50 (15%) | $6,737.50 |
| Wait, but the price falls to $136.29 | Nov. 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.

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.
| Method | Lots drawn | Realized result | Tax effect at assumed rates | Note |
|---|---|---|---|---|
| FIFO | A (100) + B (50) | $4,500 long-term gain | $675 tax at 15% | Loss lots untouched |
| Specific ID: newest lots | D (100) + E (50) | $4,750 short-term loss | About $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.
| Situation | Wash sale? | What happens | What to check |
|---|---|---|---|
| Sell lot D at a loss; buy the same fund back 10 days later | Yes | Loss disallowed for now and added to the new shares’ basis | Whether you meant to keep the exposure; the replacement lot’s new basis |
| Sell at a loss; automatic dividend reinvestment buys more shares within 30 days | Possibly | The reinvested purchase can count as a replacement purchase | Your dividend reinvestment settings |
| Sell at a loss in a taxable account; buy the same fund in an IRA | Can be | The rules can apply across accounts you control; IRS guidance should be checked for your facts | Ask a tax professional; do not assume the IRA is safe |
| Sell at a loss; buy a different fund tracking a different index | Depends on whether it is substantially identical | No bright-line list exists; facts matter | Fund holdings, index and issuer |
| Sell at a loss; wait 31 days; then buy | No | Loss is allowed under normal rules | Count 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.
| Feature | Specific identification | Average basis (mutual funds) | FIFO |
|---|---|---|---|
| Basis used | The chosen lot’s own cost | Account-wide average cost per share | Oldest lot’s cost |
| Gain control | High | Low. Every share carries the same basis. | Low |
| Holding period | The chosen lot’s | Treated as first shares acquired | Oldest lot’s |
| Applies to | Stocks, bonds, ETFs and funds, subject to broker support | Eligible fund shares and some dividend reinvestment shares | Default for stock when identification is not adequate |
| Who sets it up | You, by instruction | You, by written election; broker default applies otherwise | Nobody |
| Main risk | Wrong or missing documentation | Loses the ability to harvest high-cost lots | Larger 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.
| Method | Basis per share used | Gain on 100 shares at $140 | Comment |
|---|---|---|---|
| Average basis | $80 | $6,000 | All 300 shares now carry the $80 average |
| FIFO / oldest lot | $50 | $9,000 | Largest gain |
| Specific ID, newest lot | $110 | $3,000 | Smallest 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.
- 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.
- List the lots. Write down each lot’s date, shares, basis and unrealized gain or loss.
- 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.
- Estimate this year’s tax picture. Other gains, losses, income and the possible net investment income tax all affect the rate on each lot.
- Test two or three methods. Compare realized gain, tax and remaining embedded gain, as in the table above.
- Check the wash sale window. If any lot is at a loss, plan purchases around the 30-day window.
- Place the instruction and save the confirmation.
| Your situation | Method that often fits | Why | What to watch |
|---|---|---|---|
| Income is low this year and you want to realize some gain | FIFO or low-basis long-term lots | Gains may fall in the 0% long-term bracket | Taxable income thresholds, other income and state tax |
| Income is high and you want a smaller gain now | Highest-cost lots | Lower realized gain this year | Higher future embedded gain; short-term lots taxed as ordinary income |
| You hold losing lots | Specific ID on the loss lots | Can realize a loss against other gains | Wash sale rule; $3,000 net loss limit |
| You hold a mix of short- and long-term lots | Long-term lots first, unless a short-term lot has a large loss | Long-term rates are generally lower | Lots close to the one-year line |
| You hold a mutual fund and rarely trade | Average basis (broker default may apply) | Simple and consistent | Cannot pick high-cost shares once elected |
| You are unsure and the amount is large | Pause and ask a tax professional | Misidentifying lots is hard to fix | Settlement and cut-off times |
Decision aid only. It is not a recommendation for any investor.

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.
| Counterexample | Why FIFO may beat high-cost-first | Rough effect |
|---|---|---|
| You are in the 0% long-term bracket this year | Realizing old low-basis gains now can use the 0% rate, and raises basis for the future | Tax of $0 on gain within the bracket; verify thresholds |
| You expect higher income or rates in future years | Deferral can mean paying later at a higher rate | Depends on future tax; uncertain |
| The high-cost lots are short-term and the old lots are long-term | Selling the high-cost lots may realize short-term gain taxed as ordinary income | In our example, $1,000 of short-term gain taxed at 24% instead of 15% |
| You plan to donate or gift appreciated shares | Low-basis, long-term lots may be the ones to keep for that purpose | Consult a tax professional for the rules that apply |
| You will never use the instruction process correctly | A simple default beats an error-prone workaround | Avoids mismatched records |
| The account is small and gains are tiny | The time spent may exceed the savings | Often 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.
| Situation | Short-term box | Long-term box | What to enter |
|---|---|---|---|
| Broker reported basis to the IRS | A | D | Use 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 missing | B | E | Enter the correct basis yourself and -0- in column (g) |
| No Form 1099-B received | C | F | Enter your own figures from your records |
| Wash sale loss disallowed | Same box as the sale | Same box as the sale | Enter 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 flag | Why it matters | Safer next step |
|---|---|---|
| You sell without checking the account’s default method | FIFO or average basis may apply and produce a larger gain than you expected | Check account settings and lot detail before trading |
| The order screen shows only the position, not lots | You may be unable to identify lots on that screen | Call the broker or use a lot-selection feature before the sale |
| You choose lots after the trade settles | Identification generally must be made by the earlier of settlement or the time for settlement | Decide first, trade second |
| Your records and the broker’s do not match | A mismatch can lead to a wrong basis on Form 8949 | Keep confirmations and compare against the 1099-B |
| You sell a lot one day before it turns long-term | The holding period includes the day of sale but starts the day after purchase | Check the exact date on each lot |
| You sell at a loss and rebuy within 30 days | The loss may be disallowed under the wash sale rule | Wait out the window or choose a different strategy with advice |
| Someone contacts you offering to “fix” your tax lots or move your account | Could be a scam or a pressure sale | Verify 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.
| Cost | Trigger | Effect on lot decision | Avoidable? |
|---|---|---|---|
| Commission or transaction fee | Buying or selling | Adjusts basis (buy) and proceeds (sell) | Depends on the broker |
| Bid-ask spread | Trading thinly traded funds | Real cost not shown on 1099-B | Partly, by using limit orders |
| Short-term tax premium | Selling lots held one year or less | Ordinary rates can exceed long-term rates | Sometimes, by waiting |
| Net investment income tax | Higher modified adjusted gross income | Adds 3.8% on net investment income above thresholds | Sometimes, by managing gains |
| State income tax | Varies by state | May tax gains at ordinary rates | Depends on state |
| Tax-software or preparer time | Complicated lots | Cost of cleaning up errors | Reduced by good records |
Fee schedules and state tax treatment vary; verify yours.
Documents and questions to have ready
| Document | Why it matters | Where to get it | How long to keep it |
|---|---|---|---|
| Trade confirmations (purchase and sale) | Proves date, price, shares and identified lots | Broker site or statements | Until the statute of limitations for the return ends; ask a tax professional |
| Lot detail or cost-basis report | Shows the basis and holding period of each lot | Broker cost-basis page | Same |
| Written confirmation of lot identification | Required by the regulation when broker holds the shares | Trade confirmation or periodic statement | Same |
| Form 1099-B | Reports sales and basis to you and the IRS | Broker, issued after year end | Same |
| Records of reinvested dividends | Each reinvestment is a lot | Statements | Same |
| Transfer records | Basis follows the shares when moved between brokers | Both brokers | Same |
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
| Alternative | How it works | Upside | Downside | Best fit |
|---|---|---|---|---|
| Use average basis | Average cost across identical fund shares | Simple | No lot control | Long-term fund holders |
| Sell a different asset | Raise cash from lots with smaller gains | May reduce tax | Changes your allocation | Investors with flexibility |
| Sell in a tax-advantaged account | Rebalance inside an IRA or 401(k) | No reportable capital gain from the trade | Limited to money held there | Investors with room in those accounts |
| Delay until the lot is long-term | Wait past the one-year date | Lower rate | Market risk while waiting | Lots near the line |
| Spread sales across tax years | Split the sale | Smooths income | Market and timing risk | Large positions |
| Get professional help | Tax preparer or advisor | Tailored advice | Cost | Complex 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
| Term | Plain-English meaning | Why it matters | Common confusion |
|---|---|---|---|
| Tax lot | A batch of shares bought on one date at one price | Basis and holding period belong to the lot | Statements often show one combined position |
| Cost basis | What you paid, including commissions | Subtracted from proceeds to compute gain | Not the same as current value |
| FIFO | First in, first out; oldest lots sold first | Default when lots are not identified | Not a rule you can always rely on for funds |
| Specific identification | Choosing the exact lots to sell | Lets you control gain or loss | Needs timely instruction and written confirmation |
| Average basis | Account-wide average cost for eligible fund shares | Simple for fund investors | Different from simply averaging prices over time |
| Holding period | Time you held the asset | Sets short- versus long-term | Starts the day after purchase |
| Wash sale | Loss sale plus a replacement purchase within 30 days | Loss is deferred | Applies before and after the sale |
| Covered security | Security whose basis the broker reports to the IRS | Affects Form 8949 boxes | Older 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.
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
- 26 CFR 1.1012-1, Basis of property (Legal Information Institute): FIFO default, adequate identification, timing, average basis.
- IRS Publication 550, Investment Income and Expenses (2025 edition): identifying stock sold, average basis, wash sales.
- IRS Topic No. 409, Capital gains and losses: holding period, long-term rates, loss limit.
- IRS Topic No. 559, Net investment income tax: 3.8% tax and thresholds.
- Instructions for Form 8949 (2025): boxes A through F, basis reporting and adjustments.
- Investor.gov, Introduction to Investing (SEC Office of Investor Education): general investing background.
Facts checked November 12, 2026
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
