Can You Change Your Cost Basis Method After You Sell? (w/Examples) + FAQs

This article reflects federal IRS rules and general state treatment as of June 2026 and covers tax years 2025 and 2026. Tax law changes often — confirm current figures with the IRS or a licensed professional before you file.

Quick Answer

No — in most cases you cannot change your cost basis method after a sale settles. Once a stock or ETF trade settles (now one business day later under T+1), the method is locked for those shares. The main exceptions are the average-cost revocation window and correcting a wrong basis on Form 8949.

Selling an investment feels like the end of a decision, but the cost basis method you picked — FIFO, specific identification, or average cost — quietly decides how much tax you owe on that sale, and for many people that choice becomes permanent the moment the trade settles. Missing the window to change it can mean paying hundreds or even thousands of dollars more in capital gains tax than you needed to.

The timing is tight and unforgiving. Since May 28, 2024, most U.S. stock and ETF trades settle in just one business day (T+1), which means your window to change the method on a regular brokerage sale can close within 24 hours — a major reason cost-basis mistakes are now harder to fix than they were a few years ago.

  • 💡 You will learn exactly when the door slams shut on changing your method — and the narrow cases where it stays open.
  • 🧮 You will see fully worked dollar examples comparing FIFO, specific ID, and average cost on the same sale.
  • 🔁 You will learn the average-cost “revocation” rule that lets some investors unwind a costly choice.
  • 🛠️ You will learn how to report a corrected basis on Form 8949 when your broker’s 1099-B is wrong.
  • 🪙 You will learn how the new wallet-by-wallet crypto rules change your options starting in 2025 and 2026.

What “Cost Basis Method” Actually Means

Your cost basis is what you paid for an investment, including commissions and certain fees. When you sell only part of a holding bought at different times and prices, the IRS needs a rule to decide which shares you sold. That rule is your cost basis method, and it directly sets your taxable gain or loss.

There are three main methods, and each can produce a very different tax bill on the same sale. The method matters because capital gains tax can run from 0% to 20% federally for long-term gains in 2025 and 2026, plus a possible 3.8% net investment income tax, and short-term gains are taxed at your ordinary rate.

The consequence of ignoring this choice is simple: if you say nothing, your broker uses its default method. For most stocks and ETFs the default is first-in, first-out (FIFO), which sells your oldest shares first. In a long-rising market, your oldest shares often have the lowest basis, so FIFO tends to create the largest taxable gain.

A common misconception is that the cost basis method changes what you actually own or how many shares leave your account. It does not. It only changes the accounting — which specific lots the IRS treats as sold — and therefore the tax. What you do about it: decide your method before you place the sell order, and confirm it in writing with your broker.

The Three Core Methods

FIFO (first-in, first-out) sells your earliest-purchased shares first. It is the default for stocks and ETFs at most brokers and is the simplest to track. The downside is that older shares usually carry a lower basis, so FIFO often maximizes your gain and your tax.

Specific identification (Spec ID) lets you hand-pick the exact lots you sell. This is the most flexible and tax-friendly method because you can sell high-basis shares to shrink a gain, or low-basis shares to harvest a gain in a low-tax year. The catch, under IRS rules, is that you must identify the lots at or before the sale and get confirmation from your broker.

Average cost blends the basis of all shares into one average per-share figure. It is allowed only for mutual fund shares and certain dividend-reinvestment-plan (DRP) stock — not for ordinary stocks. It is convenient but inflexible, and once you sell using it, special revocation rules apply.

The Key Rule: The Settlement Date Deadline

For stocks, ETFs, and most securities, you can change the cost basis method on a specific sale only until the trade settles. IRS regulations let you change the method for an order up to midnight Eastern on the settlement date. After settlement, the method is locked for those shares, and no amended return can change it.

This is the single most important deadline in this whole topic, and T+1 made it brutal. Before May 2024, you had two business days (T+2) to change your mind. Now, under the T+1 cycle, most trades settle the next business day — so a Monday sale typically settles Tuesday, and your window can be gone by Tuesday night.

The consequence of missing the window is concrete: you are stuck with the broker’s default (usually FIFO) and the larger gain it creates. If you sold your oldest, lowest-basis shares by default when you meant to sell newer, higher-basis lots, you simply pay more tax — and the IRS will not let you redo it later.

A widespread misconception is that you can “fix it at tax time” by reporting different lots on your return. You cannot pick different lots after settlement; the lots that were sold are the lots that were sold. What you can sometimes fix is a genuine error in the dollar basis (covered below), which is different from re-choosing your method. What to do about the deadline: set your method before selling, and verify it the same day.

How to Change It Before Settlement

Most brokers let you adjust the method or assign specific lots inside the order screen until settlement. At Charles Schwab, for example, you go to your order status, open the unsettled sell order, and edit the cost basis method or pick exact lots. Fidelity, Vanguard, and others offer similar lot-assignment tools on the order or positions page.

The consequence of waiting is that the link to edit the order disappears once the trade settles. So the practical move is to act the moment you see the trade fill. If you are unsure how, call your broker the same day — many will reassign lots over the phone before settlement but never after.

You can also set a standing method (an account-level default like “highest cost first”) so every sale uses your preferred rule automatically. This protects you from the T+1 squeeze because you do not have to react inside one business day. What to do: log in today and check your account-level cost basis method before you ever place a sell order.

Which Situation Applies to You?

The answer to “can I change it?” depends entirely on what you sold and when. Use this to find the part that fits you, because one rule does not cover every case.

  • You sold a stock or ETF and the trade already settled: The method is locked. Skip to “What You Can Still Fix After a Sale.”
  • You sold a stock or ETF and the trade has not settled yet: You can still change it. Go to “How to Change It Before Settlement” and act today.
  • You used average cost on a mutual fund or DRP stock: You may have a revocation window. See “The Average Cost Revocation Window.”
  • Your broker’s 1099-B shows the wrong basis: This is an error you can correct on Form 8949 with code B. See “What You Can Still Fix After a Sale.”
  • You sold crypto/digital assets: Different rules apply, and they changed for 2025 and 2026. See “Crypto Is Different.”

The Average Cost Revocation Window

Average cost is the one method with a built-in escape hatch — but only for a limited time. Under Treasury regulations, you can revoke an average-cost election and revert to actual cost basis, but you must do it by the earlier of one year after making the election or the date of your first sale of that stock.

Here is the nuance that trips people up. If you actively elected average cost, the one-year clock starts when you elected it. If you are on average cost only because it is your broker’s default, the one-year clock starts when the broker notified you of that default, per IRS Publication 550. A broker may extend the one-year period, but never past your first disposition.

The consequence of selling even one share under average cost is severe: that first sale generally slams the revocation window shut for the shares you already held. After that point, you can switch to specific identification or cost — but only for shares you buy after the change, as fund companies like Invesco explain. The shares already averaged stay averaged.

A common misconception is that “revoking” and “changing” average cost are the same. They are not. Revoking (allowed before your first sale) sends each share’s basis back to its original cost. Changing (allowed after your first sale) only affects future purchases. What to do: if you want out of average cost, send written notice to your fund custodian before you sell a single share.

What You Can Still Fix After a Sale

Even after settlement, one thing is still on the table: correcting a wrong basis number that your broker reported. This is not re-choosing your method — it is fixing a factual error, and the IRS expects you to do it. You use Form 8949 to reconcile what the broker reported with the correct figures.

When your Form 1099-B shows a basis you know is wrong, you enter the basis shown on the 1099-B in column (e), then use adjustment code B in column (f) and put the correction in column (g). If your true basis is higher than reported, the adjustment is a negative number in parentheses; if your true basis is lower, it is a positive number, per the IRS Form 8949 codes.

The consequence of skipping this is twofold. Leave a too-low basis uncorrected and you overpay tax. Leave a too-high basis uncorrected and you underpay — which can trigger an IRS notice, back tax, interest, and penalties. So code B cuts both ways, and you are responsible for getting it right.

A common misconception is that code B lets you swap to a different method or different lots after the fact. It does not. Code B only corrects a mathematical or reporting error in the basis of the lots that were actually sold. What to do: keep your own trade confirmations, and if the 1099-B basis disagrees with your records, file Form 8949 with code B and attach a short explanation. Your software, such as TurboTax, can generate code B when you check “the cost basis is incorrect.”

Crypto Is Different

Digital assets play by their own rulebook, and it changed sharply for 2025 and 2026. The IRS phased out the old “universal” basis method in favor of wallet-by-wallet tracking, meaning you must account for basis separately in each wallet or account. Under Revenue Procedure 2024-28, you had a safe harbor to reasonably allocate your existing unused basis to each wallet by January 1, 2025.

For sales themselves, brokers default to FIFO by wallet unless you elect specific identification, and only FIFO and specific ID are permitted — HIFO and LIFO are not allowed as standalone broker methods. As tax practitioners note, to use specific identification you must identify the exact units before the sale, in a form your platform can process.

The consequence is that crypto, like stocks, locks your method at the moment of sale. Starting January 1, 2026, brokers must report basis using wallet-by-wallet FIFO unless you opted for specific identification, per Notice 2025-07 guidance. The new Form 1099-DA gives the IRS direct visibility into these sales for the first time.

A common misconception is that you can still use the old universal “highest-cost-first across all wallets” approach. That method is gone. What to do: pick your method before each crypto sale, keep records that tie each disposition to a specific lot, and if you missed the January 1, 2025 safe-harbor allocation, talk to a crypto-savvy CPA about your options.

Worked Examples: The Same Sale, Three Methods

Numbers make this real. Suppose Maria owns 300 shares of one ETF, bought in three lots, and sells 100 shares at $120 each ($12,000 in proceeds) in 2025. Her three lots are: 100 shares bought at $40 (2019), 100 at $80 (2022), and 100 at $110 (2024).

Here is how each method changes her taxable gain on that single 100-share sale:

  • FIFO sells the 2019 lot first: basis $4,000, gain = $12,000 − $4,000 = $8,000 (long-term).
  • Specific ID lets her sell the 2024 lot: basis $11,000, gain = $12,000 − $11,000 = $1,000 (long-term).
  • Average cost (not allowed for ETFs, shown only to illustrate): average basis = ($4,000+$8,000+$11,000)/300 = $76.67/share, so basis $7,667, gain = $4,333.

At a 15% long-term capital gains rate for 2025, FIFO costs Maria $1,200 in federal tax, while specific ID costs just $150 — a $1,050 difference on one trade. If that trade has already settled and she used FIFO by default, she is stuck with the $1,200. That single fact is why the settlement deadline matters so much.

Three Common Scenarios

Each scenario below shows a real situation and its tax outcome, so you can spot which one matches yours.

Your Situation What Happens to Your Method
You sold ETF shares Monday and want to switch from FIFO to specific ID Wednesday, after T+1 settlement The method is locked; you keep FIFO and the larger gain, and no amended return can change it.
You sold the same shares but it is still the trade day, before settlement You can edit the order and assign specific lots until midnight ET on the settlement date.
Your 1099-B reports a $4,000 basis but your records show $6,000 because of reinvested dividends You file Form 8949 with code B and report a ($2,000) adjustment, correcting the error and lowering your gain.

Three Named Examples

James sold 200 shares of a tech stock on a Friday and realized Monday he wanted to sell his higher-basis lots instead. Because the trade settled the next business day, his window closed before he acted. He kept FIFO, reported an extra $6,000 gain, and paid roughly $900 more in 2025 tax — a lesson in the T+1 squeeze.

Linda held a mutual fund on average cost as her fund company’s default but had never sold a share. After reading her account notice, she sent written revocation within the one-year window, reverted to actual cost, and used specific identification to sell her highest-basis shares — cutting her 2025 gain by $3,200.

Devon sold 0.4 Bitcoin in 2026 from a wallet holding several lots. Before clicking sell, he used his platform’s specific-identification tool to designate his highest-cost units. His broker reported the sale on Form 1099-DA matching his choice, and his gain was $2,100 instead of the $5,800 a wallet-FIFO default would have produced.

Federal vs. State Treatment

Issue Federal Rule State Treatment
Which method applies FIFO default; specific ID and (for funds) average cost allowed, locked at settlement Most states start from your federal basis and gain, so the same locked method flows through
When you can change Until settlement; average-cost revocation before first sale States generally do not grant a separate window to re-pick a method
No-income-tax states Federal rules still set basis for reporting Florida, Texas, Washington and others impose no personal income tax on these gains

The federal cost basis method almost always carries straight onto your state return, because most states begin with your federal adjusted gross income or federal capital gain. That means the lot you sold for federal purposes is the lot you sold for state purposes — you do not get a second method choice at the state level.

A handful of states with no personal income tax, such as Florida, Texas, and Washington, do not tax this gain at all, so the method only affects your federal bill. Other states may have their own capital gains quirks, like Washington’s separate tax on certain large long-term gains, so confirm your specific state’s rule before you file.

Mistakes to Avoid

  • Assuming you can fix the method after settlement. Once the trade settles, the choice is permanent, and you overpay if FIFO sold your lowest-basis shares.
  • Selling a single average-cost share before revoking. That first sale closes your revocation window, freezing the averaged basis on all shares you already held.
  • Confusing code B with a method change. Code B fixes a wrong number, not your lot selection; misusing it can trigger an IRS notice.
  • Ignoring the T+1 clock. Waiting “a few days” to change a method now usually misses the one-business-day settlement deadline.
  • Forgetting reinvested dividends in basis. Leaving them out understates basis and overstates your gain, costing real tax dollars.
  • Using the old universal crypto method. It is gone for 2025 and later; relying on it can produce a wrong, underreported gain.
  • Not setting a standing method. Without an account-level default, you must react inside one business day on every sale, which is easy to miss.
  • Failing to keep your own records. If you cannot prove your true basis, you cannot defend a code B correction in an audit.

Do’s and Don’ts

  • Do choose your method before you place a sell order, because that is the only reliable moment you fully control the outcome.
  • Do set an account-level default method, since it protects you from the tight T+1 window on every future sale.
  • Do get written confirmation of specific-lot sales, because the IRS requires broker confirmation for specific identification.
  • Do keep trade confirmations and dividend records, since they are your proof if a 1099-B basis is wrong.
  • Do revoke average cost in writing before any sale if you want flexibility, because the window closes at your first disposition.
  • Don’t assume an amended return can swap your method, because it cannot once the trade settled.
  • Don’t sell average-cost shares while you are still deciding, since selling forfeits your revocation option.
  • Don’t rely on your broker to guess your intent, because silence means the default method applies.
  • Don’t use code B to “re-pick” lots, because it is only for correcting factual basis errors.
  • Don’t ignore the new crypto wallet rules, because brokers now report your sales directly to the IRS.

Pros and Cons of the Main Methods

Method Pro Con
FIFO Simple and automatic, with no tracking effort required Often creates the largest gain because oldest shares usually have the lowest basis
Specific ID Most tax control, letting you minimize gains or harvest losses on demand Requires choosing lots before the sale and getting broker confirmation every time
Average cost Easy bookkeeping for funds with many small reinvested lots Inflexible, and selling one share can lock you out of revocation

The trade-off across all three is control versus convenience. FIFO and average cost ask nothing of you up front but can quietly raise your tax bill, while specific identification demands attention at every sale but can save the most money. For most investors selling appreciated holdings, the modest effort of specific identification pays for itself in lower capital gains tax.

What To Do Next

  1. Before any sale, log in to your brokerage and check or set your account-level cost basis method today.
  2. At the moment you sell, assign specific lots or confirm your method inside the order screen — do not wait.
  3. The same business day, verify the method on the filled order, since T+1 settlement can close your window by the next night.
  4. If you used average cost and have not sold yet, send written revocation to your custodian now to preserve flexibility.
  5. At tax time, compare your 1099-B basis to your own records, and file Form 8949 with code B if the basis is wrong.
  6. Call a CPA or tax attorney if you face a large gain, an estate sale, complex crypto across many wallets, or an IRS notice — these situations are where professional help (often $300–$1,500) saves far more than it costs.

This article is educational and is not a substitute for personalized advice from a licensed CPA, enrolled agent, or tax attorney for your specific situation.

FAQs

Can I change my cost basis method after I sell a stock? No. Once the trade settles — now one business day later under T+1 — the method is locked for those shares, and no amended return can change which lots were sold.

How long do I have to change the method on a sale? Until midnight Eastern on the settlement date. For most stocks and ETFs in 2025 and 2026 that is one business day after the trade, so the window is very short.

What is the default cost basis method? FIFO (first-in, first-out) is the default for most stocks and ETFs, selling your oldest shares first, which often produces the largest taxable gain.

Can I revoke the average cost method? Yes, but only by the earlier of one year after electing it or the date of your first sale of that stock. After that, you can change only for shares bought later.

Does selling one share end my average cost revocation window? Yes. Your first disposition generally closes the revocation window, freezing the averaged basis on the shares you already held.

What is Form 8949 code B used for? Correcting a wrong basis that your broker reported on Form 1099-B. You enter the reported basis, then adjust it in column (g) — it does not let you re-pick lots.

Can I fix a too-low basis on my 1099-B at tax time? Yes. Use Form 8949 with code B and enter the correction as a negative number in parentheses if your true basis is higher than reported, lowering your gain.

Which method saves the most tax? Specific identification usually saves the most, because you can sell your highest-basis lots to shrink the gain or harvest losses, unlike automatic FIFO.

Do the rules differ for crypto? Yes. For 2025 and 2026, crypto uses wallet-by-wallet tracking, defaults to FIFO per wallet, and allows only FIFO or specific identification — chosen before each sale.

Can my state let me change a method the IRS won’t? No. Most states start from your federal gain, so the locked federal method carries through, and no separate state window exists.

Does an amended return let me switch methods? No. An amended return can correct errors but cannot change which lots were sold once a trade has settled.

What records should I keep to defend my basis? Trade confirmations and dividend-reinvestment records. They prove your true cost basis if your 1099-B is wrong or if the IRS questions a code B adjustment.