When you buy shares of a company or a fund over a long period, you don't just have one "price." You have a collection of "lots," each with its own purchase date and price. When it comes time to sell, which of those shares are you actually selling? The answer depends on the cost basis method you choose, and this choice can have a massive impact on your tax bill.
The "Anchor" of Investment: Defining Adjusted Cost Basis
As we established, cost basis is your starting price. However, that price can change over time due to "corporate actions." This is known as the adjusted cost basis .
- Stock Splits: If you bought 1 share for $100 and the stock splits 2-for-1, you now own 2 shares with a cost basis of $50 each. Your total basis remains $100, but your per-share basis is adjusted .
- Reinvested Dividends: If your fund pays you a $50 dividend and you use it to buy more shares, that $50 is added to your total cost basis. You have already paid taxes on that dividend, so adding it to your basis ensures you aren't taxed on it again when you sell .
Common Cost Basis Methods
Brokerages offer several ways to determine which shares are sold. Choosing the right one is the difference between a large tax bill and a strategic tax loss.
1. First-In, First-Out (FIFO)
This is the "default" method for most stocks and ETFs . It assumes that the first shares you bought are the first ones you sell.
- The Risk: Since markets generally trend upward over the long term, your oldest shares are often your cheapest shares. Selling them first usually results in the largest possible capital gain .
- Example: You bought 10 shares at $10 in 2015 and 10 shares at $50 in 2020. The stock is now $100. If you sell 10 shares using FIFO, you sell the $10 shares, resulting in a $900 gain.
2. Specific Identification (SpecID)
This is the "sniper" approach and is generally considered the most tax-efficient method . It allows you to pick exactly which shares (or "lots") you want to sell.
- The Benefit: If you need to realize a loss, you can specifically choose to sell the shares you bought at the highest price. If you want to minimize a gain, you can do the same.
- Example: Using the same numbers as above, if you use Specific Identification to sell the 10 shares you bought at $50, your gain is only $500 ($100 - $50 per share). You just "saved" $400 of taxable gain compared to FIFO.
3. Average Cost (AvgCost)
This is the default method for mutual funds . It takes the total amount you've invested and divides it by the total number of shares you own.
- The Math: If you bought 100 shares at $50 ($5,000) and 100 shares at $80 ($8,000), your average cost is $65 per share .
- The Trade-off: It is simple and automated, but it removes your ability to "cherry-pick" high-cost shares for tax-loss harvesting.
4. Highest-In, First-Out (HIFO)
This automated method sells the shares with the highest purchase price first.
- The Goal: To maximize realized losses or minimize realized gains .
- The Warning: HIFO does not look at the holding period. It might sell a high-cost share you've held for only 11 months (short-term) instead of a slightly lower-cost share you've held for 2 years (long-term), which could result in a higher tax rate .
Special Situations: Inherited and Gifted Assets
The rules for cost basis change significantly when assets change hands without a purchase.
Inherited Securities: The "Step-Up" in Basis
This is one of the most beneficial provisions in the tax code. When you inherit a stock, your cost basis is "stepped up" to the fair market value of the asset on the date of the original owner's death .
- Example: Your grandfather bought a stock for $1 per share in 1950. When he passes away, it is worth $200 per share. If you inherit it and sell it the next day for $200, your taxable gain is $0. The $199 of growth during his lifetime is never taxed .
Gifted Securities: The "Carryover" Basis
Gifts are treated differently. Generally, if someone gives you a stock, you "inherit" their original cost basis .
- Example: If your friend gives you a stock they bought for $10 that is now worth $50, your basis is $10. If you sell it for $50, you owe taxes on the $40 gain.
- The Exception: If the stock has lost value at the time of the gift, the rules become complex to prevent people from "gifting" losses to others to lower their taxes .
Step-by-Step Guide: How to Choose a Method
- Log in to your brokerage: Most platforms (Vanguard, Fidelity, etc.) have a "Cost Basis" section under account settings .
- Set a Default: You can usually set a default method (like FIFO or HIFO) for all future sales.
- Select at the time of sale: Most modern platforms allow you to "Identify Lots" right before you click the final sell button. This is where you can manually pick the shares with the highest cost to maximize your tax-loss harvesting .
Comparison of Cost Basis Methods
| Method | Best For... | Tax Impact |
|---|---|---|
| FIFO | Simplicity | Often results in higher taxes (oldest shares first) |
| Specific ID | Maximum Control | Most tax-efficient; allows for targeted harvesting |
| HIFO | Minimizing Gains | Automatically picks highest cost; ignores holding period |
| Average Cost | Mutual Funds | Simple; spreads gains/losses evenly |
| MinTax | Automation | Attempts to minimize current year tax impact |
Practical Tips for Recordkeeping
While brokerages track "covered shares" (those bought after 2011-2012), you are ultimately responsible for the data on your tax return .
- Save Trade Confirmations: Keep digital copies of your purchase records, especially for older "noncovered" shares .
- Track Corporate Actions: Be aware of mergers or splits that might not be automatically updated in your personal spreadsheet.
- Consult a Professional: If you are dealing with inherited assets or complex wash sales, a tax advisor is worth the investment to avoid IRS audits .
By mastering cost basis and lot selection, you move from being a passive investor to a strategic one. You no longer just "sell a stock"; you "liquidate specific high-cost lots to generate a $2,000 tax asset while maintaining your market position." This level of control is what separates beginners from seasoned, tax-efficient investors.

Comments