Can You Pick Which Shares to Sell to Cut Your Taxes? (w/Examples) + FAQs

This article reflects federal tax rules as of June 2026 and covers tax year 2025 (the return most people file in early 2026), with notes on tax year 2026. State rules are addressed separately below. Tax law changes — confirm current figures with IRS.gov before you file.

Quick Answer

Yes. For tax year 2025, you can pick exactly which shares to sell using the specific identification method. You tell your broker which tax lots to sell before the trade settles. Choosing high-cost or long-term lots lowers your taxable gain — and your tax bill.

When you buy the same stock or fund at different times and prices, each purchase is a separate “tax lot.” The shares you sell carry a different cost basis depending on which lot you pick, and that single choice can swing your taxable gain by hundreds or thousands of dollars. Most people never make the choice, so their broker quietly sells the oldest shares first and they overpay.

The catch is timing. The IRS only honors your pick if you identify the lot at or before the sale settles, and you must do it through your broker’s records — not on your tax return months later. With markets near record highs and many investors sitting on large gains, picking the right lot is one of the few legal levers you still control before year-end. About 62% of U.S. families held stock directly or through funds in 2022, so this choice touches tens of millions of sellers.

  • 📊 How the five cost-basis methods (FIFO, specific ID, HIFO, LIFO, average cost) change your tax.
  • ⏱️ The exact deadline to flag your shares so the IRS accepts your pick.
  • 💵 Fully worked dollar examples showing real tax saved on the same sale.
  • ⚠️ The wash-sale trap and the 3.8% surtax that can erase your savings.
  • 🧾 Which form to file (Form 8949 and Schedule D) and what records to keep.

What “Picking Your Shares” Really Means

When you buy shares of one stock or fund on different days, you create multiple tax lots. A tax lot is one batch of shares bought at one time for one price. If you bought 100 shares of Apple in 2019 at $50 and another 100 in 2024 at $180, you hold two lots with two very different cost bases.

Cost basis is what you paid for shares, plus commissions and certain fees. When you sell, your taxable gain equals your sale price minus the basis of the shares you sold. Because each lot has its own basis, which lot you sell decides your gain. Selling the $50 lot creates a big gain; selling the $180 lot creates a small gain or a loss. The shares look identical, but the tax is not.

The power lives in specific identification. The IRS allows you to choose the exact shares you are selling, as long as you adequately identify them to your broker at the time of sale. The consequence of not choosing is automatic: the broker applies a default method, almost always first-in, first-out, and you live with whatever gain that produces.

A common misconception is that the IRS picks for you or that the choice happens on your 1040. Neither is true. You — through your broker’s trade ticket — make the call, and you make it before settlement. The next step is simple: log in to your brokerage, find the “cost basis method” or “tax lot” setting, and confirm what your default is today.

Which Situation Applies to You?

The best method depends on your goal for this specific sale, not a one-size rule. Match your situation to the path below.

  • You have a big gain and want to keep tax low this year. Use specific identification to sell your highest-cost lots, and favor lots held more than one year so the gain is long-term.
  • You want to bank a loss to offset other gains. Sell lots whose basis is above today’s price, harvesting a capital loss — but mind the wash-sale rule.
  • Your taxable income is low this year. You may sit in the 0% long-term capital gains bracket for 2025, so you might want to realize gains tax-free instead of avoiding them.
  • You hold mutual funds and never tracked lots. You may be locked into the average cost method; check before you sell, because switching has rules.
  • You are selling everything in one position. Lot selection no longer matters for that position — you recognize all gains and losses at once.

If more than one applies, the highest-value move is usually pairing a harvested loss against a realized gain in the same year. That combination can drop your net taxable gain to zero.

The Five Cost-Basis Methods, Compared

Brokers offer several ways to decide which shares leave your account first. Each produces a different gain on the very same sale. For tax year 2025, the federal rules below apply to all of them.

First-In, First-Out (FIFO). This sells your oldest shares first. It is the default at nearly every broker. Because old shares often have the lowest basis, FIFO tends to produce the largest taxable gain — but the shares are usually long-term, which can mean a lower rate.

Specific Identification (Spec ID). You hand-pick the exact lots. This is the most flexible and the only method that lets you target a specific tax outcome. The IRS requires you to identify the shares to your broker and receive written confirmation by settlement.

Highest-In, First-Out (HIFO). A form of spec ID that always sells your highest-cost lots first. Vanguard notes HIFO minimizes gains but ignores holding period, so it may trigger a short-term gain taxed at higher ordinary rates.

Last-In, First-Out (LIFO). Sells your newest shares first. Useful when recent lots have high basis, but new lots are often short-term.

Average Cost. Available mainly for mutual funds and many ETFs. It blends all lots into one average basis. Simple, but it strips away your ability to cherry-pick — once chosen for a fund, switching is restricted.

Method and Best Use Effect on Your 2025 Tax
FIFO — set-and-forget, oldest shares go first Often the biggest gain, but usually long-term rates
Specific ID — you want maximum control Lowest possible gain or a targeted loss
HIFO — pure tax minimization on the sale Smallest gain, but risks a short-term rate
LIFO — recent high-basis lots Smaller gain if new shares cost more
Average cost — funds, simplicity No cherry-picking; locked once used

Long-Term vs. Short-Term: Why Holding Period Decides the Rate

Picking the lot is only half the game; how long you held it sets the tax rate. A share held one year or less produces a short-term gain, taxed at your ordinary income rate — up to 37% for 2025. A share held more than one year produces a long-term gain, taxed at a preferred rate.

For tax year 2025, the IRS long-term rates are 0%, 15%, or 20%, based on taxable income. The 0% rate applies up to $48,350 (single) or $96,700 (married filing jointly). The 15% rate runs to $533,400 (single) or $600,050 (joint). Above those, the rate is 20%.

The consequence is large. Selling a low-basis lot you have held 11 months can cost nearly double the tax of waiting until month 13. A common misconception is that all stock gains get the “capital gains rate” — they do not. The fix: before you sell, check each lot’s purchase date and, when close to the one-year mark, ask whether waiting a few weeks pushes you into long-term treatment.

Worked Example: The Same Sale, Three Different Tax Bills

Numbers make this real. Say you own 300 shares of one fund in three lots and you need to sell 100 shares at today’s price of $200, for $20,000 in proceeds. Your filing status is single with $120,000 in taxable income, putting your long-term gains in the 15% bracket for 2025.

Your three lots:

  • Lot A: 100 shares bought 2018 at $60 (basis $6,000), long-term.
  • Lot B: 100 shares bought 2021 at $130 (basis $13,000), long-term.
  • Lot C: 100 shares bought March 2025 at $190 (basis $19,000), short-term.

If you do nothing (FIFO sells Lot A): Gain = $20,000 − $6,000 = $14,000 long-term. Tax at 15% = $2,100.

If you pick Lot B (specific ID): Gain = $20,000 − $13,000 = $7,000 long-term. Tax at 15% = $1,050.

If you pick Lot C (HIFO, highest cost): Gain = $20,000 − $19,000 = $1,000. But Lot C is short-term, taxed at your 24% ordinary rate = $240.

Here Lot C wins on dollars — $240 versus $2,100 — a $1,860 saving from one click. But note the trade-off: had Lot C been a larger gain, the 24% short-term rate could have made Lot B the smarter pick. Always compare the after-tax result, not just the smallest gain.

Tax-Loss Harvesting: Turning a Losing Lot Into a Tax Break

Sometimes the best lot to sell is one worth less than you paid. Selling it creates a capital loss you can use to offset gains. This is tax-loss harvesting, and lot selection is what makes it possible.

For tax year 2025, losses first offset capital gains of the same type, then the other type, then up to $3,000 of ordinary income ($1,500 if married filing separately). Any leftover loss carries forward to future years with no expiration. So a $10,000 loss can wipe out a $7,000 gain and shave $3,000 off your wages this year.

The consequence of ignoring harvesting is real money left on the table — you pay tax on gains you could have offset for free. A common misconception is that you must sell the whole position; you can sell only the underwater lots and keep the rest. Your next step: scan each position for lots with a basis above today’s price before December 31, since the loss must be realized in the tax year to count.

The Wash-Sale Rule: The Trap That Cancels Your Loss

Harvesting has one hard limit. The wash-sale rule disallows your loss if you buy the same or a “substantially identical” security within 30 days before or after the sale — a 61-day window in total. The disallowed loss is not gone forever; it is added to the basis of the replacement shares.

The rule reaches further than people expect. It applies across all your accounts, including your IRA and your spouse’s accounts, and it covers automatic dividend reinvestment and option purchases. Buying the same fund in your 401(k) two weeks after harvesting in your taxable account can void the loss permanently inside the IRA.

The consequence is a denied deduction and a confusing 1099-B. A common misconception is that switching brokers avoids it — it does not, because the rule follows the taxpayer. The fix: to stay invested, buy a similar but not identical fund (a different index or issuer), or simply wait 31 days before repurchasing.

Named Scenarios: How Three Investors Cut Their Tax

Maria, the rebalancer. Maria, single with $90,000 taxable income, needs $25,000 from a stock she has held in several lots. By using specific ID to sell her highest-basis long-term lots, she keeps her gain small and stays inside the 15% bracket for 2025, saving roughly $1,400 versus her broker’s FIFO default.

James, the loss harvester. James has a $12,000 realized gain from selling a winner. He owns a separate fund whose 2025 lot is down $12,000. He sells only that losing lot, nets his gain to zero, and waits 31 days to rebuy a similar fund — sidestepping the wash-sale rule.

Priya, the 0% bracket retiree. Priya, married filing jointly, has just $70,000 in taxable income for 2025 — under the $96,700 ceiling for the 0% long-term rate. She intentionally sells low-basis long-term lots to realize gains tax-free, resetting her basis higher for the future.

Federal vs. State: Does Your State Tax the Gain?

Start with federal, then check your state — they do not always match. The federal rules above set your long-term 0/15/20% treatment and the $3,000 loss limit for tax year 2025.

States diverge sharply. Most states with an income tax treat capital gains as ordinary income, so there is no special low rate at the state level. Nine states — including Texas, Florida, Washington (with a separate tax on large gains), Nevada, and Wyoming — levy no broad personal income tax, so federal tax is your only worry there. High-tax states like California tax gains as regular income, which can add over 13% on top of federal.

The consequence: your after-tax result depends on your state, and the same sale can cost very different amounts in California versus Texas. The next step is to confirm your state’s treatment with your state department of revenue before you sell, because state conformity to federal rules is not guaranteed.

State Type and Example How 2025 Capital Gains Are Treated
No income tax (e.g., Florida, Texas, Nevada) No state tax on the gain; federal only
Taxes gains as ordinary income (e.g., California) Added at your full state rate, often 5–13%+
Special rules (e.g., Washington) Excise tax on large long-term gains over a threshold

How to Actually Pick Your Lots at the Broker

The mechanics matter, because a great plan fails if you miss the deadline. Every major broker (Fidelity, Schwab, Vanguard, E*TRADE) lets you set a default cost-basis method and override it per trade.

Step 1 — Check your default now. In your account settings, find “cost basis” or “tax lots.” If it says FIFO, you are likely selling low-basis shares by default. Step 2 — Choose per trade. When you place a sell order, select “specific lots” and pick the exact lots by date and price. Step 3 — Confirm before settlement. The IRS standard requires you to identify shares by settlement date (generally one business day after the trade for stocks in 2025) and to get broker confirmation.

The consequence of missing the window is automatic FIFO, which you cannot undo later. A common misconception is that you can change the lot on your tax return — you cannot once it settles. Keep screenshots or written confirmations of your lot selection as your proof.

Reporting It: Form 8949 and Schedule D

Your sale lands on two IRS forms. Form 8949 lists each sale — description, dates, proceeds, basis, and gain or loss. Totals flow to Schedule D, which separates short-term from long-term and computes your net.

For “covered” securities (most stock bought in 2011 or later, funds in 2012 or later), your broker reports basis to the IRS on Form 1099-B, and you generally match it. For “noncovered” or adjusted lots — including wash sales — you make corrections in column (g) with the proper code. The deadline is your normal filing date, typically April 15, 2026, for tax year 2025.

The consequence of a mismatch between your 1099-B and your return is an IRS notice (often a CP2000) proposing extra tax. The fix: reconcile your broker’s 1099-B against your own lot records before filing, and attach Form 8949 detail when your basis differs from what the broker reported.

Mistakes to Avoid

  • Letting FIFO run by default — you may sell your lowest-basis shares and overpay tax for no reason.
  • Identifying the lot too late — after settlement the choice is locked, and the IRS keeps your broker’s default.
  • Harvesting a loss, then rebuying too soon — the wash-sale rule voids the loss and just shifts it into basis.
  • Forgetting the IRA and spouse accounts — a repurchase there triggers a wash sale that is permanently lost.
  • Chasing the smallest gain blindly — a short-term lot taxed at 37% can cost more than a larger long-term gain.
  • Ignoring the 3.8% NIIT — high earners owe an extra net investment income tax that lot choice can help manage.
  • Picking average cost for a fund, then wanting to cherry-pick — once you use average cost, switching lots is restricted.
  • Not checking your state — a clever federal move can still cost a lot in a high-tax state.

Do’s and Don’ts

  • Do confirm your broker’s default method before any sale — so FIFO does not surprise you.
  • Do favor long-term lots when the rate gap matters — preferred rates beat ordinary rates.
  • Do harvest losses before December 31 — the loss must be realized in the tax year to count.
  • Do keep written lot-selection confirmations — they are your proof if the IRS asks.
  • Do reconcile your 1099-B before filing — to avoid an automated mismatch notice.
  • Don’t rebuy a substantially identical security within 31 days — it triggers the wash-sale rule.
  • Don’t assume your state follows federal rates — many tax gains as ordinary income.
  • Don’t wait until April to “choose” a lot — the deadline is settlement, not filing.
  • Don’t ignore short-term holding periods — a few weeks can flip your rate.
  • Don’t sell only to save tax if the investment still fits your plan — taxes follow strategy, not the reverse.

Pros and Cons of Choosing Your Own Lots

  • Pro — Maximum control: you target the exact gain or loss you want, lowering tax legally.
  • Pro — Loss harvesting: you can sell only underwater lots and offset other gains.
  • Pro — Bracket management: you can stay under the 0% or 15% long-term thresholds for 2025.
  • Pro — Basis reset: realizing gains at 0% raises future basis with no tax cost.
  • Pro — Estate flexibility: keeping low-basis lots lets heirs benefit from a step-up later.
  • Con — More work: you must select lots on every trade and track records.
  • Con — Deadline risk: miss settlement and you lose the choice entirely.
  • Con — Wash-sale complexity: harvesting requires careful 61-day tracking across accounts.
  • Con — Short-term traps: chasing the smallest gain can land you in a higher rate.
  • Con — Locked methods: average cost on funds limits future flexibility.

What to Do Next

  1. Log in to your broker today and check whether your default is FIFO or specific ID.
  2. List your lots for any position you may sell — date, price, basis, and holding period.
  3. Estimate your 2025 taxable income to know your long-term bracket (0%, 15%, or 20%).
  4. Pick lots per trade and select “specific lots” before you place the order.
  5. Scan for losses to harvest before December 31, avoiding the 31-day wash-sale window.
  6. Save confirmations and reconcile your 1099-B against your records at filing time.
  7. Call a CPA if your sale is large, crosses brackets, involves NIIT, or spans many accounts.

This article is educational and is not a substitute for advice from a licensed tax professional for your specific situation. A sale over roughly $50,000 in gains, an estate, or a wash-sale tangle across accounts is worth a CPA’s review — typically a few hundred dollars for guidance that can save far more.

FAQs

Can I choose which shares to sell to lower my taxes?

Yes. For tax year 2025, the IRS lets you use specific identification to pick exact tax lots. Tell your broker which lots to sell by the settlement date, and keep the written confirmation.

What is the default method if I do nothing?

First-in, first-out (FIFO). Nearly every broker sells your oldest shares first by default, which often means your lowest-basis shares and the largest taxable gain.

What is the deadline to pick my shares?

The settlement date. You must identify the lots and receive broker confirmation by settlement — generally one business day after the trade for stocks in 2025. After that, the choice is locked.

How much can losses offset in 2025?

$3,000 of ordinary income ($1,500 if married filing separately) after offsetting all capital gains. Any extra loss carries forward to future years with no expiration.

What is the wash-sale rule?

A 61-day rule. Buying the same or substantially identical security within 30 days before or after a loss sale disallows the loss. It applies across your accounts, including IRAs and your spouse’s.

Do long-term gains get a lower rate?

Yes. Shares held more than one year are taxed at 0%, 15%, or 20% for 2025, versus ordinary rates up to 37% for short-term gains held one year or less.

Can my income put me in the 0% capital gains bracket?

Yes. For 2025, taxable income up to $48,350 (single) or $96,700 (married filing jointly) qualifies long-term gains for the 0% rate, letting you realize gains tax-free.

Which forms report my stock sales?

Form 8949 and Schedule D. Form 8949 lists each sale; Schedule D nets short- and long-term totals. Both attach to your Form 1040 by April 15, 2026, for tax year 2025.

Does my state tax capital gains?

It depends. Nine states have no income tax, so gains are federal-only there. Most other states tax gains as ordinary income, and a few have special rules — confirm with your state revenue agency.

Is HIFO always the best method?

No. HIFO sells your highest-cost lots and minimizes the gain, but it ignores holding period and can trigger a short-term gain taxed at higher ordinary rates. Compare after-tax results.

Can I change my lot choice on my tax return?

No. The selection must be made with your broker by settlement. You cannot reassign lots later on Form 8949, though you can correct genuine reporting errors.

Does the 3.8% surtax apply to my gains?

Yes, for high earners. The net investment income tax adds 3.8% on investment income once modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly) for 2025.