DV
Dividend Vision

Taxes

Cost Basis Methods & Specific Identification

When you sell part of a position, the cost basis method — FIFO, average cost, or specific identification — decides which shares you sold and how much taxable gain you report. Same sale, very different tax bills.

🟣 Advanced 12 min read Updated July 14, 2026

Definition

Your cost basis is what you paid for an investment — purchase price plus commissions, adjusted over time for things like reinvested dividends and return of capital. When you sell, your taxable capital gain or loss is simply sale proceeds − cost basis. So far, so simple.

The complication arrives when you sell part of a position bought at different times and prices. Every separate purchase — including every automatic dividend reinvestment — creates a tax lot: a batch of shares with its own purchase date and basis. Sell 100 shares out of 300, and someone must decide *which* 100 shares left the account. That decision is your cost basis method, and it directly sets the gain or loss you report.

The three methods you will actually meet at a broker:

  • FIFO (first-in, first-out). The default at most brokerages for stocks and ETFs. The oldest shares are treated as sold first. In a position that has grown over years, the oldest lots usually have the *lowest* basis — so FIFO often produces the largest taxable gains.
  • Average cost. All lots are blended into one average price per share. The long-standing default for mutual funds at some brokers, and common for DRIP positions. Simple, but blunt: you give up lot-picking, and once you sell under average cost, switching that position back to lot-level tracking is restricted — treat it as sticky.
  • Specific identification (spec-ID). You tell the broker exactly which lots to sell. This is the power tool: sell your *highest-basis* lots to minimize the reported gain, or deliberately sell losing lots to harvest a loss — the mechanics behind tax-loss harvesting.

One boundary up front: none of this changes your *economics* — same shares, same proceeds. The method only changes when gains are recognized and how much tax you owe this year.

This article is educational information, not tax advice. Cost basis rules have real edge cases (wash sales, ROC adjustments, inherited shares), and broker defaults vary. Confirm anything you plan to act on with a qualified tax professional.

Why It Matters

Cost basis method is one of the few tax levers that is entirely under your control, costs nothing to use, and that most investors never touch. Two investors can sell the same shares of the same fund on the same day and report wildly different gains — purely because one accepted the broker's FIFO default and the other clicked "choose lots."

It matters most in exactly the situations income investors find themselves in:

  • You trim positions rather than closing them. Rebalancing, raising cash, funding a withdrawal in retirement — partial sales are the norm in an income portfolio, and every one forces a lot-selection decision, whether you make it or the default does.
  • DRIP multiplies your lots. If you reinvest distributions, a fund like SCHD adds four lots a year; a monthly payer like QQQI adds twelve. After a decade you can hold dozens of small lots at scattered prices — a bookkeeping headache or a menu of harvesting options, depending on your records. See dividend reinvestment (DRIP).
  • Return of capital rewrites your basis underneath you. Many covered-call and option-income funds classify part of their distributions as ROC, which *lowers* the basis of your existing lots — details in return of capital.
  • Holding period rides along with the lot. Lots held more than one year get long-term capital gains rates; lots held a year or less are short-term, taxed at ordinary rates. Which lot you sell decides not just the *size* of the gain but its *rate*.

Like asset location and fund selection, basis method is an after-tax-return decision, not an investment decision — it changes what you keep, not what you own. (Inside an IRA or 401(k) none of this applies; see the FAQ.)

The Three Methods, Plainly

MethodWho picks the sharesTypical useTax character
FIFOThe rule: oldest firstBroker default for stocks/ETFsOften the largest gains
Average costNobody: lots blendedFund/DRIP default at some brokersMiddling; sticky
Specific IDYou, lot by lotDeliberate tax managementSmallest gain, or a loss

Broker presets like "highest cost first" (HIFO) or "minimize tax" are just specific identification with the lot-picking automated.

Example

All numbers here are illustrative and ignore commissions. Suppose you accumulated 300 shares of an ETF — think of a broad index fund like VOO — in three purchases:

LotSharesPurchase priceLot basis
Lot 1 (oldest)100$40$4,000
Lot 2100$55$5,500
Lot 3 (newest)100$70$7,000
Total300$16,500

The average cost is $16,500 / 300 = $55 per share. Now you sell 100 shares at $65, for proceeds of $6,500. Same sale, three very different tax outcomes:

MethodShares soldBasisGain / (loss)
FIFOLot 1 ($40)$4,000+$2,500
Average cost100 at $55 avg$5,500+$1,000
Specific IDLot 3 ($70)$7,000($500)

Check the arithmetic: FIFO is $6,500 − $4,000 = $2,500; average cost is $6,500 − $5,500 = $1,000; spec-ID against the $70 lot is $6,500 − $7,000 = −$500.

The spread is striking. Under the FIFO default you report a $2,500 gain; by simply identifying the newest, highest-basis lot instead, you report a $500 loss — a $3,000 swing on an identical trade. At an illustrative 15% long-term rate, FIFO costs about $375 in tax this year, while the spec-ID sale generates a $500 realized loss you can use to offset other gains (see tax-loss harvesting).

Remember the boundary from the definition: spec-ID did not erase $3,000 of gain — it left your *cheapest* shares (the $40 lot) in the account, their larger gain deferred to a future sale. Deferral is usually valuable (you control the timing, and basis can step up at inheritance), but it is deferral, not elimination.

How to Actually Elect Specific Identification

Specific identification cannot be reconstructed at tax time from memory. The IRS expects the identification to happen at the time of sale — by settlement at the latest — and your broker's confirmation is the record of it. In practice:

  1. Set the account default away from FIFO if your broker allows it (many offer "specified lots," "tax-optimized," or HIFO defaults), and
  2. At order entry, use the lot-selection screen. Brokers label it "choose lots," "specify shares," or "select tax lots." You pick the exact lots and quantities, and the trade confirmation reflects them.

If you do nothing, the default applies — usually FIFO for stocks and ETFs, sometimes average cost for mutual funds. And once you sell any shares of a fund position under average cost, that election effectively locks in for the position — why average cost deserves hesitation even though it looks convenient. Rules differ by broker; verify yours.

One line on wash sales, since lot-picking and loss-harvesting travel together: sell a lot at a loss and buy the same or a substantially identical security within 30 days before or after (a DRIP purchase counts), and the wash-sale rule disallows the loss.

DRIP and ROC: Two Basis Traps for Income Investors

DRIP creates dozens of tiny lots. Every reinvested distribution is a new purchase at that day's price — a new lot with its own basis and holding-period clock. That is mostly good news for spec-ID users (more lots, more choices), but only if the records exist: brokers must track basis on "covered" shares (roughly, purchases since 2011-2012), while older or transferred positions can arrive with missing basis you must reconstruct. The newest DRIP lots are also always short-term — and a fresh reinvestment inside the wash-sale window can partially disallow a harvested loss.

Return of capital quietly lowers basis. When a fund pays ROC, your broker reduces your lots' basis by the ROC amount — you often won't notice until you sell. After several heavy-ROC years in an option-income fund, a lot bought at $50 might carry an adjusted basis of $40, turning a "break-even" sale into a taxable gain; once basis reaches zero, further ROC is itself taxed as capital gain. Spot-check your broker's adjusted basis after any heavy-ROC year — see return of capital.

Common Mistakes

  • Accepting FIFO by default in an appreciated position. The oldest lots usually carry the lowest basis, so the default often maximizes this year's gain. The fix is one extra click at order entry.
  • Trying to pick lots after the trade settles. Specific identification must be made at the time of sale (by settlement); you generally cannot re-designate lots on your tax return in April.
  • Sliding into average cost without meaning to. Some brokers default mutual-fund and DRIP positions to average cost, and one sale under it makes the election sticky. Check your default *before* the first partial sale.
  • Always selling the highest-basis lot without checking holding period. A short-term lot's gain is taxed at ordinary rates; a slightly larger long-term gain can cost less. Look at the lot's age, not just its price.
  • Forgetting ROC adjustments. The basis your broker shows is the adjusted number, and after heavy ROC years it can sit far below what you paid — assuming "basis = purchase price" leads to surprise gains.
  • Harvesting a loss lot while DRIP is on. An automatic reinvestment within 30 days of the sale is a wash-sale trigger. Pause reinvestment on positions you plan to harvest.
  • Never building the habit because your IRA didn't need it. Lot selection is meaningless in tax-sheltered accounts — then costly to skip for years in taxable.

FAQ

What cost basis method should I use?

There is no universally "right" method — it is a trade-off, and this is not advice. Specific identification gives the most control (minimize gains, harvest losses, manage holding periods) at the cost of a little effort per trade. FIFO is effortless and tends to realize long-term, lower-rate gains — just often the biggest ones. Average cost is simple for heavily DRIPed fund positions but surrenders lot control and is hard to unwind. Many long-term investors default their accounts to specified lots or a "tax-optimized" preset. Confirm the mechanics with your broker and a tax professional.

What is specific identification?

Specific identification (spec-ID) is telling your broker exactly which tax lots you are selling, rather than letting a default rule decide. Elected at the time of sale, it lets you sell high-basis lots to shrink the reported gain, or sell losing lots to realize a loss for tax-loss harvesting. Broker order screens usually call it "choose lots," "specify shares," or "select tax lots."

How does DRIP affect cost basis?

Every dividend reinvestment is a real purchase: the reinvested cash adds to your total basis, and each reinvestment creates a new tax lot with its own price and holding period. A monthly-paying fund reinvested for five years produces sixty lots — raw material for spec-ID, but also a source of always-short-term lots and accidental wash sales against a loss you just harvested. See dividend reinvestment (DRIP).

Does return of capital change my cost basis?

Yes. Return of capital distributions are not taxed when received; instead they reduce the cost basis of your shares, deferring the tax until you sell. After heavy-ROC years the adjusted basis can sit far below your purchase price — and once basis hits zero, additional ROC is taxed as capital gain. Spot-check your broker's numbers against the fund's tax documents. Details in return of capital.

Can I change my cost basis method later?

Generally yes for lot-based methods — you can switch a stock/ETF account default between FIFO and specified lots prospectively, and the choice applies trade by trade anyway. The sticky one is average cost: once you sell shares of a fund position under it, the averaging locks in for the shares sold and changing methods going forward is restricted. Brokers implement the rules differently, so check yours before the first partial sale — and treat average cost as close to a one-way door.

Do cost basis methods matter in an IRA or 401(k)?

No. Sales inside tax-sheltered accounts are not taxable events, so there is no gain to compute and no lot to pick — basis methods only affect taxable brokerage accounts, one reason where you hold an investment matters as much as what you hold. The one IRA connection is the wash-sale rule: repurchasing a harvested security in your IRA can permanently disallow the loss taken in taxable.

Related metrics & articles

Related ETFs

Explore funds discussed in this article on Dividend Vision.

Put it into practice

Dividend Vision turns these concepts into numbers for your own holdings.