The Default Setting Costing You Thousands (The FIFO Trap)
Imagine you need $25,000 from your taxable brokerage account to renovate your kitchen or buy a reliable used car. You log into your brokerage app, tap sell on 50 shares of your favorite S&P 500 ETF, and transfer the cash to your checking account. The trade feels effortless.
Then tax season arrives the following April.
You open your Form 1099-B and discover a nasty surprise: you owe the IRS $3,800 in capital gains taxes on that single transaction. You did not realize it, but your brokerage decided to sell the very first shares you bought eight years ago when the market was sitting at record lows. Those shares had enormous gains attached to them.
This happens because every major American brokerage—Fidelity, Charles Schwab, Vanguard, E*TRADE, and Robinhood—sets your account to a default method called FIFO (First-In, First-Out).
Under FIFO, your broker assumes that whenever you sell, you want to get rid of your oldest shares first. Because broad index funds and great companies tend to rise over long periods, your oldest shares almost always carry the lowest purchase price (known as your cost basis). That means FIFO systematically triggers the largest possible taxable gain on every single sale you make.
You do not have to accept this default. By taking five minutes to change your cost-basis method to Specific Identification (Spec ID) or HIFO (Highest-In, First-Out), you can hand-pick the exact lots you sell. You can choose to sell shares that have little to no profit, or even shares that are sitting at a slight loss, allowing you to pull out tens of thousands in cash while paying zero dollars in capital gains taxes.
The Math: FIFO vs. HIFO on a Real-World Trade
Let us look at what this looks like in cold, hard cash. Suppose you have been investing $500 a month into Vanguard S&P 500 ETF (ticker: VOO) over the last several years. You have accumulated dozens of "tax lots" (batches of shares bought on specific dates at specific prices).
Now you want to sell 40 shares to raise roughly $22,000 in cash. Today, VOO trades at $550 per share. Here is a snapshot of four different lots in your account:
- Lot A (Bought 6 years ago): 40 shares at $250/share (Cost basis: $10,000)
- Lot B (Bought 3 years ago): 40 shares at $380/share (Cost basis: $15,200)
- Lot C (Bought 18 months ago): 40 shares at $480/share (Cost basis: $19,200)
- Lot D (Bought 8 months ago during a temporary peak): 40 shares at $560/share (Cost basis: $22,400)
Let us compare what happens when you sell 40 shares to raise $22,000 using your broker's default setting versus using your own custom selection:
Scenario 1: The Broker's Default (FIFO)
Your brokerage automatically dumps Lot A.
- Sale Proceeds: $22,000
- Cost Basis: $10,000
- Taxable Capital Gain: $12,000
- Tax Bill (15% Long-Term Capital Gains + 3.8% NIIT): $2,256
You pocket $19,744 after taxes.
Scenario 2: The Spec ID / HIFO Method
You select Lot D (or let the HIFO algorithm pick the highest purchase price).
- Sale Proceeds: $22,000
- Cost Basis: $22,400
- Taxable Capital Gain: -$400 (A $400 capital loss)
- Tax Bill: $0
Not only do you pay zero tax today, but you also bank a $400 capital loss that you can use to offset other income on your tax return. You keep the entire $22,000 in your pocket. The money that would have gone straight to the IRS stays invested in your wealth engine, compounding for another decade.
Why Brokers Keep You on Auto-Pilot
Brokers do not hide this setting to be malicious; they do it because FIFO is the easiest bookkeeping method for their backend servers. When Congress passed legislation in 2008 requiring brokerages to report adjusted cost basis to the IRS on Form 1099-B, the IRS established FIFO as the legal default for equities and ETFs.
If you trade mutual funds, brokerages often default you to Average Cost. Average Cost lumps all your purchase prices together into one single blended average. While Average Cost sounds simple, it is a permanent trap. Once you sell a mutual fund using Average Cost, the IRS does not allow you to switch back to Specific Identification for that position. You lose the ability to pick high-basis shares forever on that holding.
When you hold individual stocks or ETFs, you have complete legal authority to dictate which specific shares leave your account. You just have to tell your broker before the trade settles.
In 2026, the United States runs on T+1 trade settlement. That means stock trades settle in exactly one business day. If you sell shares on a Tuesday morning, the ownership transfer is finalized by Wednesday. If your account is stuck on FIFO when that trade settles, that tax lot choice is locked in cement. You cannot call your broker three days later and ask to change it.
The 3-Step Setup: Flipping the Switch on Every Major Brokerage
You do not need to call a representative or fill out paper forms to fix this. You can adjust your account settings right from your desktop dashboard. Here is how to configure the top platforms in under two minutes.
1. Charles Schwab
- Log into your Schwab web dashboard and click on Profile & Settings (gear icon).
- Under Account Settings, select Cost Basis Method.
- Locate your taxable brokerage account. Under the drop-down menu for stock and ETF disposal, switch the default from First-In, First-Out (FIFO) to Highest-In, First-Out (HIFO) or Specific Lot Identification.
- Click Save. Schwab will now automatically prioritize your highest-cost shares on every future market order.
2. Fidelity Investments
- Log into Fidelity.com and navigate to Accounts & Trade > Account Features.
- Under Brokerage & Trading, click on Cost Basis Information Tracking.
- Click Change default disposal method next to your taxable account.
- Select Tax-Sensitive or Specific Shares. Fidelity's "Tax-Sensitive" algorithm will automatically look for short-term losses first, then long-term losses, then long-term highest cost, protecting you from high tax brackets automatically.
- Confirm and submit.
3. Vanguard
- Log into Vanguard and head to Profile & Account Settings.
- Select Holding-level cost basis method.
- Find your individual taxable brokerage account. Change your default method from First In, First Out to Specific Identification (Spec ID).
- Whenever you sell shares on Vanguard, the trade screen will now present an interactive list of all your lots, showing you the exact purchase date, basis, and unrealized gain/loss for each block of shares.
4. Robinhood / E*TRADE
- E*TRADE: Go to Trading Settings > Cost Basis Defaults and switch to HIFO or Tax-Optimized.
- Robinhood: When placing a sell order on desktop or mobile, look for the Order Types menu or Tax Lots button on the review screen before submitting. Select the specific lots you want to liquidate.
The Decision Framework: Which Lot Should You Sell?
Once you turn on Specific Identification, you get to choose your lots whenever you raise cash, rebalance, or trim a position. Do not guess. Follow this exact hierarchy from best to worst:
- Tier 1: Short-Term Capital Losses. If you have shares bought within the last 365 days that are currently down, sell these first. You get your cash out, and you lock in short-term capital losses, which can offset ordinary income (up to $3,000 per year) dollar-for-dollar.
- Tier 2: Long-Term Capital Losses. Shares held over one year that are in the red. These offset other capital gains and lower your tax burden.
- Tier 3: Long-Term Highest Cost (Smallest Gain). If all your lots are profitable, pick the shares you bought at the highest price that you have held for more than one year. You will pay the lower long-term capital gains tax rate (0%, 15%, or 20%), and the taxable dollar amount will be as tiny as possible.
- Tier 4: Long-Term Lowest Cost (Largest Gain). Avoid selling these unless you are intentionally in the 0% capital gains tax bracket (for example, during an early retirement gap year or sabbatical where your taxable income is below $48,350 single or $96,700 married filing jointly in 2026).
- Tier 5: Short-Term Highest Gain. Never sell these unless you have a critical emergency. Short-term gains get taxed at your highest federal and state ordinary income rates, which can easily devour 30% to 50% of your profits.
The Stealth Strategy: Donating Your Lowest-Basis Lots
Here is an advanced wealth-building move that wealthy investors use every year. What should you do with those old, low-basis shares (like Lot A in our earlier example) that you are avoiding selling?
If you give to charity, support a local non-profit, or use a Donor-Advised Fund (DAF) like Fidelity Charitable or Schwab Charitable, never donate cash.
Instead, use Specific Identification to transfer your oldest, lowest-basis shares directly to the charity or DAF. Here is why this works:
- You get a full tax deduction for the entire current fair market value of the shares (up to IRS limits).
- Neither you nor the charity pays a single penny of capital gains tax on the accumulated profits.
- You take the cash you were planning to donate and buy fresh new shares of the same ETF in your taxable account.
By swapping cash for your lowest-basis stock, you reset your cost basis to today's market high without triggering any tax liability. You wipe out years of embedded capital gains with a few clicks.
The Action Plan for This Weekend
Do not wait until the day you need money to fix your cost basis settings. When you are rushing to close on a house or pay an unexpected medical bill, you will not have time to navigate account preference submenus.
- Open your primary brokerage account right now.
- Navigate to your account preferences and switch your cost-basis method from FIFO to HIFO or Specific Identification.
- Check any mutual fund positions to see if they are set to Average Cost. For future purchases, consider switching to ETFs (like swapping Vanguard's VFIAX for VOO), which grant you permanent lot-level tracking flexibility.
- The next time you sell, select your lots manually using the hierarchy above to keep your tax bill at zero.
This is educational content, not financial advice.