Capital gains tax on investing next year's Roth IRA contribution in a brokerage account

Trying to think this through before I do something dumb. I have cash sitting in my savings account that I'm planning to use as my Roth IRA contribution for next year. Since the contribution window won't open until January, I thought about parking that money in my taxable brokerage account for a few months — buying a short-term bond ETF or a money market fund — just to earn something instead of letting it sit idle. My question is about the capital gains tax on investing next year's Roth IRA contribution in a brokerage account like this. If the ETF gains value and I sell it in January to fund the Roth, do I owe capital gains tax on that gain? And does the holding period matter here — like would a few months put me in short-term territory? I've never held taxable investments for less than a year before so I'm not sure how the rates differ.

33 comments

Yes, any gain you realize when you sell in that taxable account is a taxable event. The Roth contribution you make afterward is completely separate — the IRS doesn't care where the cash came from, just that you have earned income to support the contribution. So the gains from the ETF get reported on your return regardless.

Hannah N.

Author

That part makes sense. So the Roth contribution itself doesn't offset anything — it's just two separate transactions.

Holding period matters a lot here. Per Publication 550, you start counting the day after you buy, and the day you sell counts as part of the holding period. For securities on an established market it runs from trade date to trade date, not settlement. If you buy in October and sell in January that's roughly 3 months — firmly short-term. Short-term gains get taxed at ordinary income rates, not the lower long-term capital gains rates. Long-term requires holding more than 1 year.

Hannah N.

Author

So a few months in a bond ETF would definitely be short-term. That changes the math a bit depending on my bracket.

Worth noting: even money market funds can distribute small capital gains, though that's pretty rare. The bigger thing is dividends, which also go on your return as ordinary income.

Form 1099-B is what your broker will send you after the sale. It'll show your proceeds in column (d) and your cost basis in column (e), and you report the gain on Form 8949 and carry it to Schedule D. If the basis is reported to the IRS (covered security), you check box A in Part I for short-term. The gain flows to Schedule D line 1a if you use Exception 1, or line 1b if you go through Form 8949 with box A checked.

Is Exception 1 just for when there are no adjustments? Like no wash sales, no corrections?

Exactly. Exception 1 applies when basis is reported to the IRS and there are no adjustments needed — then you can skip Form 8949 and put the totals directly on Schedule D line 1a. The moment you have a wash sale or a basis correction, you're back on Form 8949.

I ran into a similar situation last year — sold a bond ETF after about four months to fund a different account. Uploaded my 1099-B to taxr.ai and had Taxr map out which transactions needed to go on Form 8949 versus which ones qualified for the Schedule D shortcut. Saved me from putting everything through the long form when most of it didn't need to be. The short-term gain showed up at ordinary income rates on my Schedule D exactly as expected.

Hannah N.

Author

Did it catch anything about wash sales or was everything clean?

Everything was clean on mine since I sold and didn't rebuy. Wash sale rules kick in if you sell at a loss and buy back a substantially identical security within 30 days before or after — that wasn't my situation.

One thing people miss: even if the gain is tiny — like $12 on a bond ETF — it's still reportable. The IRS gets a copy of your 1099-B and they will match it. Not worth skipping it.

What if the ETF drops in value and you sell at a loss? You'd still report it on Form 8949. Capital losses offset capital gains, and if losses exceed gains you can deduct up to a certain limit against other income — the rest carries forward. The limit and the carryover worksheet are spelled out in Topic 409 on the IRS site.

Hannah N.

Author

So worst case I lose a little on the ETF and get a small deduction. Not ideal but at least it's not wasted.

Right, though watch the wash sale rule — if you sell the ETF at a loss and buy back the same ETF within 30 days before or after the sale, the loss is disallowed. Code W on Form 8949 column (f), and the disallowed amount goes in column (g) as a positive number.

Schedule D is where everything nets out. Short-term gains and losses net in Part I, long-term in Part II. Then Part III combines them. If your total net is a gain, it flows to your Form 1040. If it's a net loss, the deductible portion (after the annual limit) is on line 7a of Form 1040.

Does the short-term loss offset a long-term gain or do they stay separate until Schedule D Part III?

They net within their own parts first, then Part III combines them. So a short-term loss can end up reducing a net long-term gain in Part III, yes.

The practical answer for most people: if you're only parking the money for a few months and expect a small gain, the tax cost is usually modest. Run the numbers — gain times your marginal income tax rate. If your rate is high and the amount is meaningful, a high-yield savings account or a Treasury bill held to maturity might give you similar yield with simpler reporting.

T-bills are worth mentioning — if you hold one to maturity you still have interest income, but no capital gain. The interest is exempt from state and local income tax in most states too, though it's still federal taxable income. Different form: you'd get a 1099-INT instead of a 1099-B, so no Form 8949 involved.

Hannah N.

Author

That's a genuinely useful alternative. I hadn't thought about T-bills for a short parking window like this.

Echoing the wash sale point above: the rule applies to losses only, not gains. So if you sell the ETF at a gain in January and immediately put the cash into the Roth, there's no wash sale issue. Gains are taxable but they aren't disallowed.

Form 8949 instructions have a column (g) worksheet for adjustments that's really helpful once you have multiple transactions with different codes. I had a couple of bond ETF sales with slightly wrong basis on the 1099-B last year — uploaded the 1099-B and the broker's trade confirmations to Taxr and it went through each line, flagged the discrepancy, and drafted a column (g) note explaining the correct basis. I reviewed it and carried the numbers over myself. Code B in column (f), with the 1099-B basis in column (e) and the correction in column (g) when box A applies, is how that gets reported.

Hannah N.

Author

How did the broker get the basis wrong — did they use average cost instead of specific lot?

Exactly that. I had selected specific lot identification but the confirmation showed average cost. Per Publication 550 and the Form 8949 instructions, when basis isn't reported correctly to the IRS and box B or E applies, you enter the correct basis in column (e) and -0- in column (g). When it is reported but wrong (box A or D), you enter the wrong basis in column (e) and correct it in column (g).

Does the state tax situation matter here? Short-term capital gains are taxed as ordinary income federally, but some states have different rates or exemptions. Not a federal form question but worth factoring into whether the brokerage parking strategy actually makes sense for you.

Had a similar short-term brokerage gain last year that bumped my income unexpectedly. Showed Taxr the Schedule D draft and the 1099-B side by side — it read through both, confirmed the short-term totals matched, and flagged that one transaction needed a code W entry I'd missed. Really useful double-check before I filed. The capital gains tax on investing next year's Roth IRA contribution in a brokerage account isn't complicated, but the reporting details on Form 8949 are easy to get slightly wrong.

Hannah N.

Author

The code W thing is exactly the kind of detail I'd overlook. Good to know that's catchable before filing.

Chapter 4 of Publication 550 at irs.gov is where holding periods, wash sales and how gains and losses are reported are all laid out. Worth reading if you want the full picture rather than relying only on what your broker's tax center says.

If you ever try this same strategy with a crypto stablecoin or tokenized money market fund, bookmark the IRS digital assets page too — different boxes on Form 8949 apply there (G through L), not the standard A through F.

Bottom line for your situation: sell the ETF, get the 1099-B, report the short-term gain on Form 8949 Part I with box A checked (assuming covered security with basis reported), carry it to Schedule D, and then separately make your Roth IRA contribution. Two completely unrelated events on your return.

Hannah N.

Author

This is exactly the confirmation I needed. Report the gain, fund the Roth separately — no interaction between them.

If the gain is small enough and there are no adjustments, remember Exception 1 — you can bypass Form 8949 entirely and put the totals straight on Schedule D line 1a. Keeps the return simpler. Only works for covered securities with basis reported to the IRS and zero adjustments needed.