Specific Identification Cost Basis Method
The specific identification cost basis method lets you choose exactly which shares or units you’re selling, letting you hand-pick which tax lots exit your portfolio to minimize gains or realize losses. Unlike FIFO or LIFO—which are automatic—specific ID requires you to formally identify and document your intent before the sale settles.
Why specific identification matters
Most investors inherit their tax-lot method by accident. If you never specify, the IRS defaults to FIFO—first in, first out. That means your oldest, usually cheapest shares are sold first, generating the largest capital gains. For portfolios held over many years, especially in volatile markets, FIFO can be brutal.
Specific identification flips the power to you. Suppose you bought Microsoft in three tranches: 50 shares at $100, then 50 at $150, then 50 at $200. Today it trades at $220. If you sell 50 shares under FIFO, you’re stuck with the $100 lot—a $6,000 long-term gain. But if you use specific ID and designate the $200 lot, your gain shrinks to $1,000. Over a portfolio of dozens of holdings, that discipline compounds.
The mechanics of specific identification
The process is straightforward but non-negotiable: before your broker settles the trade (typically two business days after you sell), you must tell them, in writing, which specific tax lot you are selling. “In writing” means a formal instruction—email to your broker, an in-app declaration if supported, or a signed confirmation. Verbal instruction is not sufficient.
Your broker will then confirm the identification on the trade confirmation or a supplementary document. You must keep this documentation for your tax records, ideally alongside your original purchase confirmations.
Some brokers make this easy. Others require a phone call or a mailed letter. Some custodians don’t support specific ID at all for certain asset types, in which case you’re stuck with FIFO. Check your platform’s capabilities before you start tax-loss harvesting in earnest.
Specific identification vs. other methods
FIFO is automatic and worst-case: oldest shares exit first. Good only if your oldest lots have low gains or unrealized losses.
LIFO reverses the order: newest shares first. It can be useful in inflationary periods but is rarely elected for equities and carries more complex record-keeping.
Average cost, is allowed for mutual funds and sometimes ETFs. You treat all shares as one blended lot at average purchase price. It’s simpler but gives up control and often results in higher gains than specific ID.
Specific identification is the premium tool: you get the lowest gain or highest loss for any lot you designate. Its only constraint is that you must act fast and document clearly.
When to use specific identification
Tax-loss harvesting: The signature use case. You’ve held a position for three years, accumulated multiple buy dates, and today it’s underwater. You can sell the lot with the highest cost basis—realizing the loss—while holding on to lower-cost lots or buying back the same holding with a different cost basis later. That loss offsets capital gains from other sales, or up to $3,000 of ordinary income per year.
Liquidation discipline: You’re in a bull market, your portfolio is up 40%, and you must raise cash. Rather than dumping shares in whatever order, you can systematically sell high-basis lots first, minimizing gains in the year of sale and deferring them.
Concentrated positions: You own a company stock that’s appreciated tenfold. You’re diversifying. Using specific ID, you can sell tranches bought at different prices in a careful sequence, spreading capital gains over multiple years or decades if you’re exiting slowly.
Estate planning: If you’re about to inherit appreciated property, specific ID in a charitable giving or trust context can help you optimize basis allocation across beneficiaries or trusts.
IRS rules and documentation
The IRS does not mandate specific ID unless you affirmatively elect it. But once elected, you cannot change your mind about which lot you sold; that identification is binding. The regulation (Treasury Reg. Section 1.1012-1(c)) requires that you maintain a contemporaneous written record identifying the shares sold.
For stocks and ETFs, most brokers use a CUSIP or ISIN number plus a trade execution or cost basis record to track lots. For mutual funds, the fund family typically maintains your cost basis records, so documentation is cleaner.
The IRS does not require you to file a special form to elect specific ID. The election is made through your written designation at the time of sale and confirmed through documentation you keep. However, you do report the specific gain or loss on Schedule D and Form 8949 when you file your return.
The wash-sale trap
Specific identification does not protect you from the wash-sale rule. If you sell a stock at a loss and buy substantially identical shares within 30 days (before or after), the IRS disallows the loss and bumps the cost basis of the new purchase upward. Even though you carefully designated which old shares to exit for a loss, a hasty repurchase will erase the tax benefit.
The fix: wait 31 days to repurchase the same holding, or swap into a closely similar (but not identical) alternative—a different exchange-traded fund tracking the same index, or shares of a competitor—during the 30-day window. Then swap back if you wish.
Limits and practical constraints
Specific ID does not work well in retirement accounts (IRAs, 401(k)s). Because retirement accounts are shielded from capital gains taxation inside the account, the tax lot method is moot; there’s no tax consequence to which shares you sell first. Many custodians don’t support specific ID in such accounts.
For mutual fund distributions, it’s more complex. If a fund makes a dividend distribution or capital gains distribution, you cannot use specific ID to choose which shares are distributed from. The fund distributes pro rata to all shareholders.
Most brokers now calculate and display your cost basis automatically, which makes specific ID less manual. But auto-calculated cost basis can also be wrong if you’ve had corporate actions (spins, mergers) or transfers in from other custodians without full historical data. Audit the basis reports your broker sends before relying on them.
A worked example
You own Apple in five tranches:
| Lot | Date | Shares | Price | Total Cost |
|---|---|---|---|---|
| A | Jan 2018 | 10 | $170 | $1,700 |
| B | Jun 2019 | 15 | $200 | $3,000 |
| C | Dec 2019 | 20 | $210 | $4,200 |
| D | Mar 2022 | 25 | $150 | $3,750 |
| E | Sep 2023 | 30 | $190 | $5,700 |
Today, Apple is $220 per share. You need $5,500 in cash and decide to sell 25 shares.
- Under FIFO: You sell Lot A (10 shares at $170 = $500 gain) + Lot B (15 shares at $200 = $300 gain). Total: $800 gain, taxed at your long-term capital gains tax rate.
- Under specific ID: You sell Lot D (25 shares at $150 = $1,750 gain). Larger gain, but you now hold all your older, lower-cost shares, keeping them for future appreciation.
- Under specific ID (alternative): You sell Lot E (25 shares at $190 = $750 gain). A smaller gain than FIFO, and you’ve rid yourself of the most recently purchased, higher-cost position.
The choice depends on your tax situation. If you have capital losses to offset, specific ID lets you maximize the loss. If you’re in a low-income year, you might deliberately crystallize larger gains. The method gives you control.
See also
Closely related
- FIFO — the automatic default; oldest shares first
- LIFO — newest shares first; less common for stocks
- Cost basis — the foundation of any capital gains calculation
- Tax-loss harvesting — the primary use case for specific ID
- Capital gains tax (investor) — why the method matters
- Form 8949 — where you report the gain or loss on your return
- Wash-sale rule — the gotcha that negates a loss if you rebuy too soon
- Schedule D — supplementary capital gains form
Wider context
- Accounting methods — how GAAP and tax accounting diverge
- Tax planning — the broader framework for managing liabilities
- Estate planning — inherited stock and basis step-up benefits
- Corporate actions — mergers and spins affect cost basis