She Bought the Same Fund at Many Different Prices Over 20 Years. Everyone Lets the Brokerage Decide Which Shares Get Sold. Picking the Highest-Cost Shares First Can Shrink Her Tax Bill

Published November 24, 2026, 1:23pm ET · 4 min read

Life After Work desk. Editor: David Beren.

This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.

A senior woman with gray hair and glasses sits at a wooden kitchen table, holding a yellow pencil over a stack of light brown papers. On the table are several stacks of documents, a black calculator, a beige coffee mug, and a cardboard box filled with file folders. The bright kitchen background features light-colored cabinets, a wooden countertop, and a window.
An investor diligently reviews financial documents, a critical step in managing investment sales to optimize tax liabilities. © 24/7 Wall St.

When investors sell shares of a fund they’ve held for many years, Form 1099-B can show a larger-than-expected capital gain. That happens when the brokerage decides which shares to sell. Under IRS rules, investors can choose specific shares themselves.

Selling the highest-cost shares first can reduce the taxable gain on a mutual fund or stock sale, and sometimes it turns the gain into a loss.

Your Broker Uses Its Default Cost-Basis Method Unless You Choose

Every time you bought the fund at a different price, you created a separate lot with its own cost. If you don’t identify specific shares, FIFO generally applies to stocks, while mutual funds may use the broker’s average-cost method. That’s first-in, first-out, or FIFO. Brokerages default to FIFO for stocks and often to average cost for mutual funds. Average cost combines every lot into one price per share.

Specific identification lets you name the exact lots you’re selling. If your recent purchases cost the most, selling those first leaves less gain to tax. If they cost more than today’s price, the sale produces a loss.

Where IRS Publication 550 Spells It Out

IRS Publication 550 for tax year 2025, released March 5, 2026, lists specific share identification and FIFO as the two cost-basis methods for mutual fund shares. To identify shares properly, you must specify to your broker which particular shares to sell at the time of sale and then receive written confirmation within a reasonable time.

Treasury regulation 26 CFR 1.1012-1(c)(1)[1] supplies the default: if you don’t identify the shares, the sale is charged against the earliest lot. Under 26 CFR 1.1012-1(c)(8)[1], a standing order for specific identification counts as identification made at the time of the sale.

Only Taxable Brokerage Accounts Get the Payoff

Lot selection matters in a taxable brokerage account. In a traditional IRA, amounts in your IRA, including earnings and gains, aren’t taxed until they are distributed, so which lot you sell inside the IRA doesn’t change your tax bill. Your records matter, too.

Brokers generally report basis for stocks acquired after 2010 and mutual fund shares acquired after 2011. Shares from earlier years may lack that reporting, and you still carry the burden of proving your basis for any shares you name.

How Specific Identification Works at Sale Time

  1. Investors can select specific lots when placing a trade or give their broker standing instructions to sell particular lots, such as the highest-cost shares first. Investors can also choose lots on the trade screen for each sale.
  2. Timing matters. The regulation requires identification no later than the earlier of the settlement date[1] or the settlement time set by SEC rules.
  3. The holding period determines the gain’s character. A lot held longer than 1 year produces a long-term gain, and a lot held 1 year or less produces a short-term one.
  4. The written trade confirmation shows which lots were sold.
  5. The 2026 brackets determine the rate. Long-term gains are taxed at 0% on taxable income up to $49,450 for single filers, $98,900 for joint filers, and $66,200 for heads of household, according to Rev. Proc. 2025-32. The 20% rate applies above $306,850 for married taxpayers filing separately, $545,000 for single filers and $613,700.

Traps That Can Wipe Out the Savings

The biggest trap is average cost. Publication 550 says you can use cost basis only if you did not previously use an average basis for a sale, exchange, or redemption of other shares in the same mutual fund. To reverse an average-basis election on covered shares, you send written notice to your broker. The deadline is the earlier of 1 year after you make the election or the date of the first sale after the election. If you let a sale go through under average cost, you may be stuck with it for that fund.

Your highest-cost lots are often your newest ones. If you’ve held a lot for a year or less, the gain counts as short-term, and the 0%, 15%, and 20% long-term rates don’t apply.

Capital losses come with limits on how much income they can offset. A net capital loss offsets your gains plus up to $3,000 ($1,500 if you are married and file a separate return) of ordinary income, and any remaining loss carries forward to later years.

The wash-sale rule blocks a loss if you buy substantially identical shares within 30 days before or after the sale, including purchases in your IRA. An automatic investment or dividend reinvestment in the same fund during that window still counts as a purchase.

Brokerages use their default method on every sale where the investor doesn’t pick the shares. On a fund bought at many prices, the lots sold determine the tax owed, and you must choose before the trade settles.

The default FIFO rule is one of several quiet IRS mechanics that can cost six figures over a lifetime of selling, and we mapped out the rest in a free tax trap guide.

Contact [email protected] for any questions or corrections.

David Beren

David Beren has been a Flywheel Publishing contributor since 2022. Writing for 24/7 Wall St. since 2023, David loves to write about topics of all shapes and sizes. As a technology expert, David focuses heavily on consumer electronics brands, automobiles, and general technology. He has previously written for LifeWire, formerly About.com. As a part-time freelance writer, David’s “day job” has been working on and leading social media for multiple Fortune 100 brands. David loves the flexibility of this field and its ability to reach customers exactly where they like to spend their time. Additionally, David previously published his own blog, TmoNews.com, which reached 3 million readers in its first year. In addition to freelance and social media work, David loves to spend time with his family and children and relive the glory days of video game consoles by playing any retro game console he can get his hands on.

All articles →

Sources

  1. 26 CFR 1.1012-1 — Basis of property.Office of the Federal Register (eCFR)