Skip to content

Personal Finance

Buying the Same Fund at Different Prices for Years? Choosing the Highest-Cost Shares First Can Lower Taxes

Digilifetrends Published 4 min read
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 carefully reviews financial records, an important step in handling investment sales to help manage tax costs.

When investors sell fund shares they have owned for years, Form 1099-B can show a capital gain that is larger than expected. That can happen when the brokerage chooses which shares are treated as sold. IRS rules, however, let investors identify the specific shares themselves.

Selling the highest-cost shares first can reduce the taxable gain on a mutual fund or stock sale, and in some cases can even create a loss.

Your Broker’s Default Cost-Basis Rule Applies Unless You Make the Choice

Each time you bought the fund at a different price, you created a separate lot with its own cost basis. If you do not identify specific shares, FIFO generally applies to stocks, while mutual funds may use the broker’s average-cost method. FIFO means first in, first out. Brokerages typically default to FIFO for stocks and often to average cost for mutual funds. Average cost groups all lots into a single per-share figure.

Specific identification allows you to name the exact lots you want to sell. If your most recent purchases were the most expensive, selling those first leaves less gain to tax. If those shares were bought for more than the current price, the sale can produce a loss.

IRS Publication 550 Explains the Rules

IRS Publication 550 for tax year 2025, released in early 2026, lists specific share identification and FIFO as the two cost-basis methods for mutual fund shares. To use specific identification correctly, you must tell your broker which shares you want sold at the time of the trade and then receive written confirmation within a reasonable time.

Treasury regulation 26 CFR 1.1012-1(c)(1)[1] provides the default rule: if you do not identify the shares, the sale is charged to 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 sale.

The Benefit Applies Only in Taxable Brokerage Accounts

Lot selection matters in a taxable brokerage account. In a traditional IRA, money in the account, including earnings and gains, is not taxed until it is distributed, so which lot you sell inside the IRA does not change the tax bill. Good records still matter.

Brokers generally report basis for stocks acquired after 2010 and mutual fund shares acquired after 2011. Shares bought earlier may not have that reporting, and you still must prove your basis for any shares you identify.

How Specific Identification Works at the Time of Sale

  1. Investors can choose specific lots when placing a trade or give their broker standing instructions to sell certain lots, such as the highest-cost shares first. They can also select 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 character of the gain. A lot held longer than one year produces a long-term gain, while a lot held one year or less produces a short-term gain.
  4. The written trade confirmation shows which lots were sold.
  5. The tax rate depends on the applicable brackets. 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.

Common Mistakes That Can Eliminate the Savings

The biggest risk is average cost. Publication 550 says you can use cost basis only if you have not previously used an average-basis method for a sale, exchange, or redemption of other shares in the same mutual fund. To reverse an average-basis election on covered shares, you must send written notice to your broker. The deadline is the earlier of one year after you make the election or the date of the first sale after the election. If a sale goes through under average cost, you may be locked into that method for the fund.

Your highest-cost lots are often the ones you bought most recently. If you have held a lot for one year or less, the gain is short-term, and the 0%, 15%, and 20% long-term rates do not apply.

Capital losses also face limits. A net capital loss can offset your gains plus up to $3,000 ($1,500 if you are married and file separately) of ordinary income, and any unused loss carries forward to later years.

The wash-sale rule disallows 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 period still counts as a purchase.

Brokerages apply their default method on every sale when investors do not choose the shares. For a fund purchased at many different prices, the lots sold determine the tax owed, and the decision must be made before the trade settles.

The default FIFO rule is one of several IRS mechanics that can quietly cost investors a great deal over time, and the rest are covered in a free tax trap guide.

More from Digilifetrends