His Brokerage Will Sell His Oldest Apple Shares First Unless He Changes One Setting. On a $50,000 Sale, That Setting Is the Difference Between a $41,000 Taxable Gain and a $6,000 One
This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.
He’s bought Apple (NASDAQ:AAPL | AAPL Price Prediction) shares little by little for decades, through good years and bad. Now he plans to sell about $50,000 worth to help a grandkid, but he likely hasn’t noticed one brokerage setting that matters. Many brokerages default to first-in, first-out (FIFO), which sells your oldest and usually cheapest shares first. Specific lot identification lets you choose which shares to sell, and that choice can shrink the taxable gain on the same sale.
Take the headline’s illustrative figures. Let’s assume selling the oldest shares produces a $41,000 taxable gain, but choosing newer, higher-cost shares for the same $50,000 sale produces only a $6,000 gain. Those numbers are made up to show the mechanics, but a gap like that shows up for anyone holding shares bought at very different prices. It’s a frustrating thing to learn after the fact: same stock, same dollars out, and a default you never picked decides the bill.
Your Brokerage Picks the Shares Unless You Do
Every purchase becomes its own “lot,” with a purchase date and a cost per share, called your basis. Federal law sets basis at what you paid, under 26 U.S.C. § 1012(a)[1]. Your gain is the sale price minus the basis of the specific shares sold. Shares he bought long ago at low prices carry big gains. Recent shares bought at higher prices carry small ones. FIFO reaches for the old, cheap lots first.
IRS Fine Print That Hands You the Choice
Treasury’s rule sits in 26 CFR 1.1012-1(c)(1)[2]: if you don’t adequately identify the lot, the shares sold are charged against the earliest lot you bought. IRS Publication 550 (2025) explains how to identify them instead. When your broker holds the stock, you tell the broker which particular shares to sell at the time of the sale and receive written confirmation within a reasonable time.
The regulation also allows a standing order for specific identification, which is why one account setting can do the job.
Who Gets the Benefit and Who Gets Nothing
Lot selection matters when you sell stock from a taxable brokerage account, and the shares were bought on different dates or at different prices. If you bought everything in one purchase, you have one lot and no choice.
Inside an IRA or 401(k), sales aren’t taxed when they happen, so lot choice doesn’t matter. Mutual fund shares can follow separate average-basis rules. Long-time holders face one more wrinkle: brokers report basis for “covered” securities, which Publication 550 describes as generally those acquired after 2010. Older lots may require your own purchase records.
Steps to Lock In Your Lots Before You Sell
- Open your account’s cost basis settings and switch the default from FIFO to specific identification. Some firms call it “specific lot” or “tax lot” selection.
- Pull up your lot list and compare each lot’s purchase date and cost per share.
- Check holding periods. For exchange-traded stock, the time starts the day after the trade date, and shares held more than 1 year are long-term. In 2026, single filers pay 0% on long-term gains up to $49,450 of taxable income, 15% up to $545,500, and 20% above that, under Rev. Proc. 2025-32. Short-term gains are taxed as ordinary income.
- Pick your lots when you place the trade. Under 26 CFR 1.1012-1(c)(8)[2], you must identify lots no later than the settlement date.
- Save the broker’s confirmation and match it against your Form 1099-B when you file your taxes.
What Picking Lots Can’t Undo
Choosing high-cost shares postpones the gain. The cheap, decades-old shares stay in the account with their built-in gain intact, and selling them later triggers that tax. The highest-cost lots are often the newest, so they may be short-term, and a smaller gain taxed at ordinary rates can cost more than you’d expect. Miss the settlement deadline and FIFO applies. This default is one of several IRS rules that quietly drain accounts over a lifetime, and we mapped the rest in a free report.
Holding the old shares has an upside, though. Under 26 U.S.C. § 1014(a)(1)[3], heirs generally get a basis equal to the stock’s fair market value at the date of death. That stepped-up basis can erase the built-in gain on low-cost shares kept until death, and 26 U.S.C. § 1223(9)[4] treats inherited shares sold within a year as held more than one year.
Open the cost basis setting before you hit sell. Which lots you keep matters as much as which ones you sell.
Contact [email protected] for any questions or corrections.








