ebotCPA — The Entrepreneur's CPA

    What are the rules for Choosing Which Shares You Sell?

    Check whether the rules fit your situation, then review the worked example, requirements and records.

    Depends on your facts

    Reviewed by Ebot Mbi, CPA, EA · Last reviewed October 9, 2026

    How it works

    01

    Check eligibility

    Match the strategy to your facts, entity, timing, and the rules that apply.

    02

    Work through the numbers

    Use the stated assumptions and compare the tax result with the cost and trade-offs.

    03

    Document and file

    Keep contemporaneous records. Your external tax preparer handles return preparation and filing; this is not a tax-preparation service.

    Which sounds like you?

    Terms used in this guide

    A deduction reduces taxable income; a credit reduces calculated tax; deferral changes when tax is due.

    The Internal Revenue Code (IRC) is federal tax law; Treasury regulations explain its rules; IRS publications explain the agency's guidance.

    basis:
    the tax amount used to measure gain, loss or allowable deductions.

    In brief

    When you sell part of a position bought at different times and prices, you can choose which shares you are selling. If you do not choose, the default is first-in, first-out, which usually means the oldest, cheapest shares and the largest gain. Naming the highest-cost lots can cut the reported gain on the same sale by tens of thousands of dollars.

    Who it fits

    • Investors who bought the same stock or fund in several purchases over time
    • Employees with company shares from RSUs, ESPP purchases, and option exercises at different prices
    • High earners trimming a concentrated position who want to control the gain each year
    • Investors harvesting losses who want to sell the specific lots trading below cost

    Who it's not for

    • Positions bought in a single purchase, where there is only one cost basis
    • Accounts inside IRAs and 401(k)s, where lot selection has no tax effect
    • Mutual fund holders who have already elected average cost and do not want to change methods going forward

    How the rule applies

    Every purchase of a security creates a tax lot with its own cost and purchase date. When you sell part of a holding, the gain or loss depends on which lot is treated as sold. Under the regulations, if you do not adequately identify the shares, the oldest shares are treated as sold first.

    To use specific identification, you tell your broker which lots to sell no later than the settlement date, and the broker confirms it in writing. Most brokers let you set a standing method, such as highest cost or tax-efficient loss harvesting, or choose lots trade by trade.

    Highest cost is not always best. A high-cost lot held one year or less produces short-term gain at ordinary rates. Sometimes a slightly lower-cost lot held longer than a year gives a lower tax.

    Look at both the basis and the holding period of each lot.

    For mutual funds and dividend reinvestment plans, average cost is also allowed. Brokers report basis for covered securities on Form 1099-B, so the method you choose must match what the broker reports.

    Choosing high-cost lots defers gain rather than removing it. The low-cost shares remain, and their gain is taxed when sold, unless they are given to charity or held until death, when heirs generally receive a stepped-up basis.

    Worked example

    Illustrative: an investor owns 2,000 shares of one stock in two lots, both held more than one year: 1,000 shares bought in 2014 at $40, and 1,000 shares bought in 2024 at $140. She sells 1,000 shares at $150. She is in the top bracket and pays 20% plus the 3.8% investment tax.

    1. Sale proceeds: 1,000 x $150 = $150,000
    2. FIFO (2014 lot): gain = $150,000 - $40,000 = $110,000; tax = $110,000 x 23.8% = $26,180
    3. Specific ID (2024 lot): gain = $150,000 - $140,000 = $10,000; tax = $10,000 x 23.8% = $2,380
    4. Tax deferred this year: $26,180 - $2,380 = $23,800

    In this illustration, naming the 2024 lot defers $23,800 of tax on the same $150,000 sale.

    Illustration only; not a promise or projection of your results.

    The rules

    RuleCitation
    If shares cannot be adequately identified, the shares acquired first are treated as sold first.Treas. Reg. §1.1012-1(c)(1)
    For shares held by a broker, adequate identification requires specifying the lots by the settlement date, with written confirmation from the broker.Treas. Reg. §1.1012-1(c)(8)
    Average basis may be used for regulated investment company shares and dividend reinvestment plan shares.Treas. Reg. §1.1012-1(e)
    Brokers report cost basis for covered securities on Form 1099-B.IRC §6045(g)

    Watch-outs

    • Instructions given after settlement do not count. Set the method before you trade.
    • Selling a loss lot and buying the same security within 30 days before or after triggers the wash-sale rule, which disallows the loss for now.
    • Changing a mutual fund away from average cost has rules about which shares the change applies to. Check before switching.
    • Digital asset holders must identify units by wallet or account under the IRS transition rules (Rev. Proc. 2024-28). Keep records in the same place you hold the assets.

    What we do

    We review your lots before large sales, show the tax under FIFO, highest cost, and a tax-efficient mix, and coordinate the standing instruction with your broker or advisor. We reconcile the Form 1099-B to the lots you chose before filing.

    Questions

    Can I choose lots after the year ends?

    No. The identification must be made with the broker by the trade's settlement date.

    Does this reduce my tax permanently?

    Usually it defers it. The lower-cost shares still carry their gain, though giving them to charity or holding them until death can mean that gain is never taxed.

    What if my broker reported the wrong lots?

    If you made a timely, confirmed identification, the return should follow it. Ask the broker for a corrected 1099-B so the forms match.

    General education under 2026 federal law. Examples are illustrative, not client results. Not tax advice for your situation.

    Want the detail?

    Free — Free Notice Decoder / free path. Pull your own IRS transcripts (free through your IRS Online Account at IRS.gov) and send them to us. Our notice engine reads them and gives you a free report on what they show. Requires your written §7216 consent. $97 — Notice Review. Send us your IRS notice along with your own transcripts. We tell you what the notice is, what it means, and what the issues appear to be at a high level. This is information, not tax advice. $497 — Case Analysis. We pull your transcripts, analyze your whole situation, and give you a written do-it-yourself plan. $1,000 — Representation. Power of attorney (Form 2848) and we represent you before the IRS. Flat $1,000. The $97 Notice Review is credited toward the $497 Case Analysis. Fixed fees, confirmed in writing before work begins. Not a guarantee of any IRS outcome. We never charge a percentage of tax saved.

    General information, not tax, legal, or investment advice for your situation. Results depend on your facts; no outcome is guaranteed. Reading this page does not create a client relationship.

    Ebotagborndang Mbi, CPA d/b/a ebotCPA · Ebot Mbi, CPA (Texas License #127163), Enrolled Agent · 4425 W Airport Fwy, Ste 595, Irving, TX 75062

    Last updated: