Your ETF cost basis is what you paid to acquire the shares, including any commissions or transaction fees, adjusted over time for reinvested dividends, return-of-capital distributions, wash sales, and corporate actions like splits. When you sell, the IRS subtracts that adjusted basis from your sale proceeds to produce the capital gain or loss you report. Get the number right and you pay what you owe. Get it wrong and you either overpay the IRS or underreport income.
Why the Number Matters
The arithmetic is simple. Sell for $10,000 with a $7,000 basis and you have a $3,000 capital gain, reported on Form 8949 and carried to Schedule D.1Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets
The rate on that gain depends on your holding period. Shares held one year or less generate a short-term gain taxed at your ordinary income rate. Shares held longer than a year generate a long-term gain taxed at 0%, 15%, or 20% depending on your taxable income and filing status.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses
High earners pick up an extra 3.8% Net Investment Income Tax if modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married filing jointly.3Internal Revenue Service. Net Investment Income Tax The effective top federal rate on long-term gains can reach 23.8%, before any state tax. A basis that’s a few thousand dollars off can shift your bill by real money.
Adjustments That Change Your Basis After You Buy
The purchase price is a starting point. Several routine events move the number up or down, and missed adjustments are where most errors happen.
Reinvested Dividends
When ETF dividends buy more shares automatically, you pay income tax on the dividend in the year you receive it, and the cost of the new shares adds to your total basis. Forget the adjustment and you’ll pay tax on the same money twice: once on the dividend and again on the sale.
Return of Capital Distributions
Some ETFs pay out a return of capital, which is a partial refund of your investment rather than earnings. These distributions aren’t taxable when received, but you must reduce your basis by the amount paid out. The result is a larger taxable gain when you eventually sell. If cumulative return-of-capital distributions ever exceed your original basis, the excess is treated as a capital gain in the year it happens.
Wash Sales
The wash sale rule disallows a loss if you buy a substantially identical security within 30 days before or after the sale. The disallowed loss isn’t lost; it gets added to the basis of the replacement shares, preserving the tax benefit until you sell those shares without triggering another wash sale.4Office of the Law Revision Counsel. 26 US Code 1091 – Loss From Wash Sales of Stock or Securities
Splits and Reverse Splits
A split changes your share count and your per-share basis, but the total dollar basis stays the same. After a 2-for-1 split, you hold twice as many shares at half the original per-share basis. A reverse split goes the other way. When you sell, use the adjusted per-share basis, not what you originally paid per share.
Inherited and Gifted Shares
If you didn’t buy the shares yourself, the basis rules shift.
Inherited ETF Shares
Inherited shares generally get a stepped-up basis equal to fair market value on the date the original owner died.5Office of the Law Revision Counsel. 26 US Code 1014 – Basis of Property Acquired From a Decedent A parent’s $20 purchase that was worth $80 on the date of death becomes an $80 basis in your hands, and the gain accumulated during the parent’s lifetime is wiped out for tax purposes. The holding period is automatically long-term, no matter when the decedent bought the shares.
In limited situations, the estate’s executor may elect an alternate valuation date six months after death, which would then set your basis instead.5Office of the Law Revision Counsel. 26 US Code 1014 – Basis of Property Acquired From a Decedent
Gifted ETF Shares
Gifted shares carry the donor’s original basis for calculating a gain. An aunt who bought shares at $30 and gifted them to you at $50 leaves you with a $30 basis.6Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust
If the fair market value at the time of the gift was below the donor’s basis, a dual-basis rule applies: the donor’s basis is used to figure a gain, and the lower fair market value is used to figure a loss. Sell at a price between the two and you recognize neither gain nor loss.7eCFR. 26 CFR 1.1015-1 – Basis of Property Acquired by Gift After December 31, 1920 So if the donor’s basis was $100,000 and the shares were worth $90,000 at the time of the gift, selling for $95,000 produces no taxable gain and no deductible loss.
Choosing Which Shares You Sold
If you’ve bought ETF shares in multiple lots and sell only some, you need a method to identify which shares went out the door. The choice can meaningfully change your tax bill.
First-In, First-Out
FIFO is the broker default. It treats your oldest shares as the first ones sold. In a rising market those oldest shares usually carry the lowest basis, which produces the biggest taxable gain. Simplest, rarely the most tax-efficient.
Specific Identification
Specific identification gives you the most control. You tell the broker exactly which lot to sell, usually by picking it on the trade screen before you submit the order. You can target the highest-basis lot to minimize the current gain, or a lot that qualifies for long-term treatment to get the lower rate. The rules require you to identify the shares at the time of sale and get written confirmation from the broker within a reasonable time.8Internal Revenue Service. Publication 550, Investment Income and Expenses Skip the selection and the broker falls back on FIFO.
Average Cost
The average cost method divides your total cost across all shares to produce a single per-share basis. Every share you sell uses that same average. It cuts recordkeeping work for investors who buy frequently, but you lose the ability to pick lots strategically.
The average cost election isn’t permanently irrevocable, despite common belief. Under current Treasury regulations you can revoke it by the earlier of one year after the election or your first sale after electing. Your broker may extend the one-year window. Once you’ve sold any shares under average cost, revocation is off the table. After a valid revocation, basis reverts to the pre-averaging cost of each lot.
What Your Broker Reports and What You Must Verify
The brokerage does most of the tracking. The legal responsibility for an accurate number is still yours.
Form 1099-B
Each year your broker sends you and the IRS a Form 1099-B for every security sold, showing sale date, acquisition date, gross proceeds, cost basis, and whether the result is short- or long-term.9Internal Revenue Service. Instructions for Form 1099-B Those figures flow into Form 8949 and Schedule D.
Covered Versus Non-Covered Shares
ETF shares purchased on or after January 1, 2011, are “covered securities.” The broker must track basis and report it to the IRS.10Internal Revenue Service. IRS Notice 2009-17 – Reporting of Customer’s Basis in Securities Transactions For shares bought earlier, the broker only reports proceeds. Basis is on you, and you’ll need your own trade confirmations to back up the number.
Even on covered shares, the broker’s figures can be wrong. Return-of-capital adjustments, wash sales that cross accounts, and gifted shares are common trouble spots. Review the 1099-B against your records and correct any errors on Form 8949 before filing. The 1099-B is a starting point, not a guarantee.
Transfers Between Brokers
When you move shares to a new brokerage, federal regulations require the transferring broker to send the receiving broker a statement with basis information for covered securities within 15 days of settlement, including adjusted basis, original acquisition date, and any holding period adjustments.11eCFR. 26 CFR 1.6045A-1 – Statements of Information Required in Connection With Transfers of Securities
Non-covered shares are the weak point. The old broker may pass along whatever it has, but that data is unofficial and often incomplete. Check every lot at the new broker against your own records right after the transfer. If basis comes across as unknown or zero, contact the old broker or pull your original confirmations while the paper trail is still fresh. Doing it years later at tax time is harder.
Estimated Tax After a Large Sale
A big ETF sale mid-year can leave you owing far more than your regular withholding covers. The IRS charges an underpayment penalty if you don’t pay enough throughout the year, even if you pay the balance in full by April.
You avoid the penalty by hitting one of the safe harbors: pay at least 90% of your current-year tax through withholding and estimated payments, or at least 100% of last year’s tax. If your prior-year adjusted gross income exceeded $150,000 ($75,000 if married filing separately), that prior-year safe harbor rises to 110%.12Office of the Law Revision Counsel. 26 USC 6654 – Failure by Individual to Pay Estimated Income Tax
One practical point if you have wage income. The IRS treats withholding as paid evenly across the year, so bumping up W-2 withholding late in the year can retroactively cover earlier quarters. Estimated payments are credited to the quarter in which they’re actually paid. Realize a gain in March, send the estimated payment in September, and you can still owe penalty for the intervening quarters even if your total year-end payments are enough.