How to use money in a brokerage account without huge capital gains taxes

Been putting money into a taxable brokerage account for about eight years and now I actually need to draw from it for a big purchase. The account has a mix of positions, some up a lot, some basically flat, a few actually down. When I tried modeling what I'd need to sell to raise the cash, the capital gains number got ugly fast — especially on stuff I've held less than a year. I've read a little about harvesting losses to offset gains but I'm not sure how the wash sale rule fits in if I want to keep exposure to the same sector. Also unclear whether the order I sell things in matters, or whether I should be looking at which specific lots I sell rather than just a blanket amount. Has anyone actually worked through how to use money in a brokerage account without huge capital gains taxes? Not looking to avoid taxes forever, just not blow up my tax bill in one year.

35 comments

Specific lot selection is probably your biggest lever here. Most brokers let you choose which tax lot to sell before you place the order — look for "specific identification" or "spec ID" in the order ticket. If you pick lots where the cost basis is close to the current price, the gain on those shares is small even if the position as a whole is way up. Worth checking your broker's interface before you do anything.

Chris A.

Author

Yes, I saw that option but wasn't sure if it was actually binding. So I can literally pick the highest-basis lots and that's what gets reported to the IRS on the 1099-B?

Yes, as long as you tell the broker before the sale settles and get a written confirmation. After the fact you can't go back and reassign lots. The broker reports the basis for the lot you specified in box 1e of the 1099-B.

Holding period matters a lot. Anything you've owned more than one year gets long-term treatment — the holding period starts the day after you bought and ends on the trade date you sell, not settlement. If you're a few weeks away from the one-year mark on a position, waiting can make a real difference in how the gain is taxed. Worth checking the acquisition dates on each lot before deciding what to sell.

Chris A.

Author

A couple of my bigger gains are sitting at 11 months. Hadn't thought about just waiting. Good point.

Loss harvesting is real but the wash sale rule is the trap people fall into. If you sell something at a loss and buy substantially identical stock or securities within 30 days before or after the sale — including in an IRA — the loss is disallowed and gets added to the basis of the new shares instead. I uploaded my brokerage statements to taxr.ai last year when I was doing something similar, and Taxr flagged three wash sale situations I had completely missed across accounts. Really useful for catching cross-account issues before you file.

Chris A.

Author

The IRA piece is what gets me. I have an IRA that holds some similar ETFs. So if I harvest a loss in the taxable account but those ETFs are in my IRA too, that kills the loss?

Yes, that's exactly the rule. Buying substantially identical stock in your IRA after a loss sale in a taxable account triggers wash sale treatment — and unlike other wash sales the disallowed loss isn't added to any basis anywhere, it's just gone. Publication 550 on irs.gov covers this under Wash Sales.

Every sale you make this year ends up reported on Form 8949 and summarized on Schedule D. Short-term gains (one year or less) go in Part I, long-term in Part II. If you can generate enough capital losses to offset your gains, the net on Schedule D line 16 is what matters. If losses still exceed gains, there's a cap on how much of that net loss you can claim against ordinary income in one year — check Topic 409 on irs.gov for the current limit — and the rest carries forward.

No, the carryforward is indefinite right? it doesn't expire?

Yes, capital loss carryforwards carry forward to future years indefinitely. The Schedule D instructions and the Capital Loss Carryover Worksheet in Publication 550 show exactly how to calculate what moves forward.

One thing I'd think about: if your income is lower this year for any reason — a job change, a gap — that might put you in a bracket where long-term gains are taxed at a lower rate. The rate that applies depends on your taxable income for the year, so the mix of income you have matters. I'd run the numbers before assuming the worst.

Chris A.

Author

That's actually relevant — I'm between jobs right now so my W-2 income is way down this year. Might be a good year to realize some gains deliberately.

Gifting appreciated shares to charity instead of cash is another option if you were planning to give anyway. You generally don't recognize the gain, the charity doesn't pay tax, and you may get a deduction. Not directly answering your question but worth knowing if any of your positions are charitably oriented.

Form 8949 column (g) is where adjustments live — if you have a wash sale loss disallowed it shows up there as a positive number with code W in column (f). I ran into a situation last year with overlapping purchases and uploaded everything to Taxr; it went through each row of my draft 8949 and flagged where the adjustment in column (g) was wrong based on what my 1099-B said in box 1g. Saved me from understating a gain. The instructions for 8949 have a table of all the adjustment codes if you want to check your own.

Chris A.

Author

Is box 1g always populated when there's a wash sale?

No — box 1g only gets filled in by the broker if the security was a covered security and the replacement shares had the same CUSIP and were bought in the same account. Cross-account wash sales won't show up in box 1g at all. You still can't deduct the loss even if it isn't reported there.

Borrowing against your brokerage account instead of selling is something people overlook. Many brokers offer a margin line or pledged-asset line you can draw against. You don't sell anything, so no realized gain. The risk is margin calls if the market drops, and the interest isn't always deductible, but for a short-term cash need it can bridge you without triggering gains at all.

Yes, worth knowing, though the interest on margin used to buy securities is investment interest expense which has its own rules — Form 4952 — so it's not simply deductible. Useful option but not cost-free.

Something I did that helped: I spread the sales over two tax years. Sold part in November and the rest in January. Doubled my effective loss-offset capacity because I had separate annual buckets. If your purchase isn't immediate you might have that flexibility.

Chris A.

Author

This is probably the most practical thing in the thread for my actual situation. The purchase isn't until spring.

Are you sure you even need to sell? If the purchase is a home, some lenders will let you use the brokerage balance as an asset reserve without liquidating. Worth asking your lender before you trigger any sales.

The holding period rule for securities traded on an established market is specific: it starts the day after the trade date you bought, and it ends on the trade date you sell — not the settlement date. So if you're counting days to clear one year, count trade dates not settlement dates. Easy to get this wrong if you're looking at the settlement date on a confirmation.

Yes, tripped on that myself. The 1099-B shows the acquisition date so you can verify what the broker has on record.

I have been through pretty much this same exercise — big chunk of gains, some losses scattered around, trying to figure out the net. Ended up doing a lot-by-lot spreadsheet matching highest-basis shares against my cash need and then modeling whether I could harvest the losers in the same transaction window without triggering wash sales. The wash sale 30-day window is 30 days before or after the sale, so you have to look backward too, not just forward.

Chris A.

Author

The "before" part is what surprised me. So if I bought shares 20 days ago and then sell at a loss today, that purchase already killed the loss?

Yes, that's correct. The wash sale window runs 30 days before the loss sale through 30 days after. A purchase inside that window on either side — including one that happened before the sale — disallows the loss.

Worth calling out: if you have any positions with an adjusted basis that differs from what your 1099-B shows — maybe because of a prior wash sale that added to your basis — you need to report that correctly on Form 8949 with code B in column (f): if basis was reported to the IRS (box A or D), keep the 1099-B basis in column (e) and put the correction as an adjustment in column (g); if it wasn't (box B or E), enter the correct basis in column (e) and -0- in column (g). I had a situation where inherited shares were on my 1099-B at the wrong basis. Uploaded my broker statement and the estate documents to Taxr and it walked through which column (e) and column (g) entries needed to change and drafted a summary I could hand to my preparer.

Chris A.

Author

How does inherited basis work? I have some shares from a relative who passed.

Inherited shares are generally valued at fair market value on the date of death, not what the original owner paid. That stepped-up basis is usually much higher, which means less gain when you sell. And inherited property is treated as long-term regardless of how long you actually held it, unless it came from someone who died in 2010 whose executor elected to file Form 8939. Publication 551 on irs.gov covers basis of inherited property.

If you have ISOs you exercised this year, don't forget that the spread at exercise is an AMT preference item even though it isn't regular income. That shows up on Form 6251 line 2i and can interact badly with capital gains in the same year. Probably not your situation but worth checking if any of your brokerage positions came from stock options.

I want to make sure one thing in this thread is accurate. Someone implied earlier that the wash sale loss just disappears — that's only true in the specific case where the replacement purchase was made inside an IRA or Roth IRA. In every other case, the disallowed loss gets added to the cost basis of the new shares. So the loss isn't gone, it's deferred — you get it when you eventually sell the new shares. Only the IRA version of a wash sale permanently destroys the loss.

Yes, that's exactly right, and it's an important distinction. The IRA wash sale is the dangerous one because there's no basis adjustment anywhere — the disallowed amount is just lost. The same-account non-IRA version at least preserves the loss in the new basis.

Exception 1 on Form 8949 is worth knowing: if your 1099-B shows basis reported to the IRS and you have no adjustments needed, those transactions can go directly on Schedule D line 1a (short-term) or line 8a (long-term) without being listed row by row on Form 8949. If you're selling a lot of lots this can simplify things considerably — you only need Form 8949 for the ones that need adjustments.

Yes, that's correct. Brokers sometimes provide a summary sheet formatted for this. Still need to keep the detail in your records but it doesn't all have to go on the form line by line.