If I reinvest stock sale proceeds am I taxed on them again?

Trying to understand how this works before I make a move. I sold shares in a taxable brokerage account earlier this year and immediately put the full proceeds into a different stock. My broker's platform showed the full sale amount moving into the new position and I assumed since I "reinvested" it nothing was taxable yet. Then a friend mentioned that's not how it works. I've looked at the Schedule D instructions but I'm still confused about whether the act of reinvesting changes anything. The shares I sold were held about 14 months. Do I owe tax on the gain from the first sale even though I turned around and bought something else with the money? Or does reinvesting the proceeds somehow defer or eliminate the gain?

35 comments

The reinvestment doesn't change anything for federal tax purposes in a regular taxable account. You recognized a gain the moment you sold. What you do with the cash after the sale is irrelevant to that. The IRS taxes the gain on the sale itself, not on what you bought next.

Andre D.

Author

That's what I was afraid of. So the gain is locked in on the trade date of the sale, full stop?

Correct. Trade date of the sale is when gain or loss is recognized. The settlement date doesn't move it. Your 14-month hold puts this in long-term territory, which at least means a lower rate than short-term — but check the Schedule D instructions for the rates that apply to your income level, I won't throw numbers out.

Form 1099-B from your broker will show the proceeds in box 1d and your cost basis (if it's a covered security) in box 1e. The gain is the difference. That flows to Form 8949 and then to Schedule D. Reinvesting the proceeds doesn't appear anywhere on those forms because it simply doesn't affect the gain calculation.

Andre D.

Author

So the new position I bought just starts its own cost basis clock from the purchase date, and the gain from the first sale is completely separate?

Exactly. Your new shares have a cost basis equal to what you paid for them, and a new holding period starting the day after you bought them. The two transactions are independent on Form 8949.

This tripped me up last year with a similar move. I uploaded my 1099-B to taxr.ai and had it walk through each line, matching which lots were long-term vs short-term and flagging that one of my "reinvestments" had actually triggered a wash sale on a loss I took two weeks earlier. Wouldn't have caught that without it reading the dates side by side. The gain from your sale is still a gain regardless of reinvestment — that part is unavoidable in a taxable account.

Andre D.

Author

Wait, the wash sale piece is interesting. Mine was a gain not a loss so I think I'm safe there, but good to know.

Wash sale only applies to losses, so you're right that a gain sale isn't affected. But if you ever sell at a loss and rebuy within 30 days before or after, the loss gets disallowed and added to the basis of the new shares instead.

People confuse taxable accounts with retirement accounts a lot here. Inside a traditional IRA or Roth IRA, selling and reinvesting within the account doesn't trigger tax at the time of the sale. But you said "taxable brokerage account" so that protection doesn't apply to you.

Andre D.

Author

Yeah definitely a regular taxable account. Wish it were an IRA situation right now honestly.

Same — I moved some things around inside my Roth last year with zero tax consequence. The moment it's a taxable account though, every sale is a recognized event.

Form 8949 is where this actually lives. You'll list the sale in Part II (long-term, since you held more than a year) with box D checked if your broker reported basis to the IRS. Column d is proceeds, column e is basis, and the gain flows to Schedule D line 8b or line 8a if you qualify for Exception 1 with no adjustments needed.

Worth adding: Exception 1 means transactions where basis was reported to the IRS and there are no adjustments can go straight to Schedule D line 1a (short-term) or 8a (long-term) without listing every trade on Form 8949. Saves time if you have a lot of clean covered transactions.

Had a similar situation two years ago — sold a fund, reinvested in an ETF, then panicked about whether I owed tax twice. I showed Taxr my 1099-B and the new purchase confirmation together and it listed out exactly what the IRS would see: the sale proceeds as a recognized gain on 8949, the new purchase establishing a new cost basis, and nothing connecting the two. Cleared up the confusion immediately. The gain from your sale stands on its own.

Andre D.

Author

That framing helps — the IRS sees a completed sale, not a "reinvestment." The word reinvestment is kind of a mental trap.

One scenario where deferral actually exists: a 1031 like-kind exchange. That's for real property, not publicly traded stocks. No equivalent deferral mechanism exists for stock sales in a standard taxable account, so don't go searching for one. The gain is what it is.

There are also Qualified Opportunity Zone funds that can defer and potentially reduce gains, but those have specific rules and timelines (there's no income limit, but the reinvestment window is strict) — not a simple plug-and-play. Worth mentioning exists but it's not a casual move.

Fair point. And QOZ rules are detailed enough that anyone considering them should work with a CPA before putting money in, not after.

Schedule D is where your net gain or loss lands after Form 8949. If you end up with a net long-term gain, it goes on Schedule D Part II and then to the qualified dividends and capital gain tax worksheet in the Form 1040 instructions. That worksheet determines what rate actually applies — the Schedule D instructions walk through it.

The holding period thing matters a lot here. You said 14 months, which is long-term. If you had sold at 11 months and reinvested, you'd still owe tax — just at the higher short-term rate. The reinvestment doesn't save you either way, but at least your timing gave you long-term treatment.

Andre D.

Author

Genuinely didn't realize how close I'd cut it. 14 months felt like plenty but I see now people sometimes sell at exactly 12 months thinking that's "over a year."

The rule is more than 1 year, so 12 months is not enough. You start counting the day after the purchase trade date, and the sale trade date itself counts as the last day. Publication 550 at irs.gov walks through the counting method.

Form 1099-B box 1g is also worth checking. If you had any wash sales from earlier in the year reported there, the disallowed loss gets added to your basis in the replacement shares. Doesn't sound like your situation but if you've been trading actively it's easy to miss.

Cost basis method matters too if you held multiple lots. If your broker used average cost or FIFO and you didn't specify, the gain might be different than you expected. You can usually see the method on the 1099-B or in your account settings. Once a sale settles you generally can't change the lot selection retroactively.

Andre D.

Author

I think mine defaulted to FIFO. Is there a way to know what basis method was used before the 1099-B arrives?

Check your account's cost basis settings — most brokers show the default method in the account preferences. Some let you change it prospectively for future trades. The 1099-B will confirm what was actually used for the sale you already made.

I pasted my broker's trade confirmation and cost basis statement into Taxr last spring and it drafted a summary showing exactly how the gain from one sale fed into Part II of Form 8949, with the new purchase sitting separately as its own open position with a fresh basis. Really helped me see the two events are just not connected for tax purposes. The gain from the sale is real the moment the trade executes.

Andre D.

Author

I think the "two separate events" framing is the thing I was missing. I kept thinking of it as one transaction because it happened same-day.

Something I'll add about the wash sale rule since it came up earlier: Publication 550 is clear that wash sales apply to losses, not gains. If you sell at a gain and immediately rebuy, there's no wash sale issue — the gain is fully recognized and the new shares start a fresh basis. But if you're harvesting losses elsewhere in the same account around the same time, watch the 30-day window on both sides of those loss sales.

The 30-day window is 30 days before OR after the loss sale, so it's a 61-day total window to avoid. Easy to accidentally step into it if you're doing year-end loss harvesting and rebalancing at the same time.

To bring it back to the original question: no, there is no mechanism in a taxable account that defers a gain just because you immediately reinvest. The tax event is the sale. The IRS treats the proceeds as if you pocketed them, regardless of what you did next. Your 14-month hold gets you long-term capital gain treatment, which is the best outcome you could have had here.

Andre D.

Author

This is the clearest I've had it laid out. Appreciated. I'll make sure I'm setting aside enough to cover the tax before next April.

If you had no withholding on the sale, you may also want to look at whether estimated tax payments are needed to avoid an underpayment penalty. The Form 1040-ES instructions explain the thresholds — your situation might cross one depending on total gain size relative to what you've already paid in.

Worth noting: dividend reinvestment plans (DRIPs) work the same way. Each reinvested dividend is a purchase of new shares at the dividend date price, and each lot has its own basis and holding period. A lot of people assume DRIP shares are somehow bundled with the original purchase. They're not — they're separate lots on Form 8949 when you eventually sell.