Sell current home or appreciated stocks to fund down payment on new home — which costs less in taxes?

We're buying a new place and need roughly $120k for the down payment. Two options: sell our current home (we've lived here 6 years, bought it in 2019, have about $280k in gains) or sell a taxable brokerage account holding index funds we've owned for 4+ years with around $110k in unrealized long-term gains. I already know we don't have to sell the house to buy the new one — we could rent it out instead — but if we do sell, I want to understand the tax difference. We file jointly. I tried running the numbers myself but I keep second-guessing whether the home sale exclusion actually covers all $280k and whether selling stock is just cleaner. What are the factors I should actually be weighing here on the tax side?

36 comments

Schedule D and the home exclusion rules are the two things to put side by side here. For the home: Publication 523 lays out the ownership and residence test. Married filing jointly, you can exclude up to $500,000 of gain if you owned the home at least 24 months AND used it as your main residence at least 24 months of the last 5 years before the sale. Six years of living there clears that easily. If your gain is $280k, the whole thing could be excluded — nothing on Schedule D, nothing on Form 8949 unless you got a Form 1099-S. For the stocks: $110k long-term gain lands on Schedule D (Form 1040) line 8a or Form 8949 Part II, fully taxable. The rate depends on your taxable income that year. That's the core difference right there.

Ben L.

Author

So if we don't get a Form 1099-S on the house sale, we literally report nothing? That feels too clean but I guess if the whole gain is excluded and no 1099-S arrived, there's nothing to put on the return?

Yes, that's correct — Publication 523 says if the entire gain qualifies for exclusion and no Form 1099-S was issued, you don't need to report the sale at all. If a 1099-S did arrive, you'd go on Form 8949 Part II with code H and the excluded amount as a negative in column (g).

Worth flagging the NIIT angle too. If your modified AGI crosses the threshold for your filing status, the net investment income tax applies to capital gains from the stock sale. Home sale gain that qualifies for the exclusion doesn't count as net investment income, so the excluded portion sidesteps that completely. The stock sale doesn't get that treatment — all $110k of gain is in the pool. Check your prior year AGI to get a rough sense of where you land.

I ran into almost this identical fork last spring — rental property equity vs. brokerage account. I uploaded my 1099-B and the basis records to taxr.ai and had Taxr pull together a side-by-side of the actual after-tax proceeds under each scenario, accounting for the stock's cost basis lot by lot. Saved me from selling the wrong lot and triggering a bigger gain than I needed to. Just sharing because the lot-selection piece on the stock side is real — specific identification can matter a lot when you have multiple purchase dates.

Ben L.

Author

I hadn't thought about lot selection at all. We do have shares bought at different times so some lots have bigger gains than others. Good point.

Specific identification is worth looking into. If your broker supports it, you instruct them before the sale which lots to sell. The shares with the smallest unrealized gain (or even a loss in some lots) go first, which can reduce what lands on Form 8949. Just make sure you get written confirmation from the broker at the time of the trade.

One thing that can complicate the home exclusion: if you used part of the home exclusively for business or rented it out at any point, the gain allocated to that portion may not be excludable. Doesn't sound like your situation but worth a quick check. Also, if you bought this home through a 1031 exchange within the past 5 years, Publication 523 says the exclusion doesn't apply. Assuming neither of those applies, $280k under the $500k cap for MFJ looks clean.

Ben L.

Author

No 1031 exchange and we've never rented or used it for business. It's been purely our main home the whole time. So I think we're clear on that.

From a pure tax cost standpoint the home sale is almost certainly cheaper if the exclusion covers your full $280k gain — your tax on the excluded portion is zero. The stock sale at $110k long-term gain will owe something, the exact rate depending on your income. So the home sale gives you a bigger gross number to work with and a lower tax bill, assuming you were planning to sell eventually anyway.

Yes, though the "planning to sell anyway" piece matters. If you were going to hold those index funds for another 20 years and let them compound, liquidating now has an opportunity cost beyond just the current tax hit.

Form 8949 for the stock side: since these are covered securities in a standard brokerage account, your 1099-B should have basis reported to the IRS, so you'd check box D in Part II (long-term, basis reported). Enter the proceeds in column (d), cost basis in column (e). No adjustment needed unless there's something off with the reported basis. Ends up on Schedule D line 8b, feeds into line 15 and 16 for the net long-term calculation.

Ben L.

Author

This is exactly the kind of step-by-step I needed. So if the 1099-B basis is correct and there are no wash sales or adjustments, column (g) stays blank and I just carry the totals to Schedule D?

Correct. Under Exception 1 in the Form 8949 instructions, if basis is reported to the IRS and there are no adjustments at all, you can skip Form 8949 entirely for those transactions and enter the totals directly on Schedule D line 8a. Either way works; Exception 1 just saves a step.

Had a similar question last year when I was weighing selling an ETF position vs. tapping home equity. I showed Taxr my brokerage year-end statement and it walked through each lot, flagged which ones had holding periods just under a year (short-term vs. long-term matters a lot at the margin), and listed the estimated gain by lot. Helped me decide which lots to sell without accidentally triggering short-term treatment on shares I'd held almost long enough.

Ben L.

Author

How close to the one-year line were some of yours? I have a few lots from late 2023 and I want to make sure I'm not accidentally treating them as long-term when they might still be short-term.

For securities traded on an exchange, the holding period starts the day after the trade date you bought and ends on the trade date you sell — not settlement date. So a share bought on October 15, 2023 would need to be sold on October 16, 2024 or later to be long-term. Count carefully on those late 2023 lots before you place the order.

Renting the current home instead of selling is a third path that people overlook. No immediate tax event, the equity stays in the property, and you fund the down payment by selling the stock instead. The rental income is taxable of course, but you also get depreciation deductions. The tradeoff is that the longer you rent it out, the more you chip away at the exclusion window — you'd need to track whether you still meet the 24-month residence test if you ever want to sell later and use the exclusion.

Ben L.

Author

We've actually been going back and forth on exactly this. The 24-month window concern is real — if we rent for a few years and then try to sell, we'd need to check whether we still qualify under Publication 523.

Right. The 5-year lookback window rolls forward as time passes, so a year of renting isn't necessarily disqualifying, but you'd want to track the dates carefully. Worth reading Publication 523's eligibility test section or running it by a CPA before you commit to the rental path.

The depreciation recapture wrinkle if you do rent first and sell later: any depreciation you claimed (or were allowed to claim) while it was a rental reduces your basis in the home, and that portion of the gain on eventual sale is taxed as ordinary income (up to 25%) rather than at capital gains rates, even if the rest of the gain is excluded. That can eat into the exclusion's benefit more than people expect.

Yes, unrecaptured Section 1250 gain is the technical name. It doesn't get excluded — only the remaining capital gain does. Good point for anyone seriously considering the rent-then-sell path.

Another angle: if you sell the stocks and then buy substantially identical stocks back within 30 days before or after the sale, the wash sale rule kicks in on any losses. Here you're talking about gains not losses, so wash sales aren't your problem. But if you plan to reinvest the proceeds right away into the same funds after the sale, worth knowing there's no wash sale issue on the gain side — only losses trigger that rule.

Good clarification. Wash sale disallowance only applies to losses — a sale at a gain is never disallowed under those rules. The loss just can't be deducted; here you're in the opposite situation so no issue.

AMT is worth a quick sanity check if you have ISOs sitting around — not relevant to the question as stated but sometimes people in this situation also have equity comp and exercise in the same year. ISO exercise triggers Form 6251 line 2i adjustment (the spread at exercise). Stacking that with a large capital gain in the same year can create an unexpected AMT liability. If you have no ISOs, ignore this entirely.

Ben L.

Author

No ISOs here, all index funds and home equity. But useful to flag for anyone reading this who has a mix.

When I was sorting out whether to sell a rental or brokerage shares for a down payment, I uploaded my prior-year Schedule D and the cost basis summary from my broker to Taxr. It compared the after-tax proceeds from each option and drafted a summary I could hand to my CPA to confirm before I pulled the trigger. Saved a lot of back-and-forth at the meeting.

Yes, going into a CPA meeting with that kind of organized comparison already done makes the conversation much faster. CPAs bill by the hour; showing up prepared matters.

Something people miss on the stock side: state income tax. Long-term capital gains get favorable federal treatment but most states tax them as ordinary income. If you're in a high state-tax state that doesn't have a separate capital gains rate, the effective combined rate on your $110k stock gain could be meaningfully higher than the federal rate alone suggests. The home sale exclusion works at the federal level; check your state's rules separately.

Ben L.

Author

We're in a state with income tax so this is real. I'll need to check the state rules — good reminder that federal and state treatments can diverge here.

No state has its own version of the federal home sale exclusion on exactly the same terms — some conform, some don't. Worth a quick check on your state's department of revenue site before assuming the state treatment matches federal.

To put the two paths side by side cleanly: home sale with full exclusion means you walk away with up to the exclusion limit in tax-free gain, report nothing (or file Form 8949 with code H if a 1099-S arrived), and your Schedule D has no entry for this transaction. Stock sale means every dollar of long-term gain goes on Form 8949 Part II and Schedule D, taxed at capital gains rates. If the exclusion fully covers your gain, the home sale wins on tax cost — full stop.

Yes, though I'd add: wins on federal tax cost. State tax is a separate calculation as someone else noted. And if you weren't going to sell the house anyway and planned to hold the stocks forever, the "win" gets more complicated because you're giving up future compounding on a forced sale.

Final practical step: before you decide, pull your Form 1099-B year-to-date if your broker offers it, check the lot dates and basis, and ask your broker whether they have your specific identification election on file. If they don't, they'll default to FIFO (first in, first out), which may or may not give you the best outcome. You can usually change the election before the trade, not after.

Ben L.

Author

I'll call the broker before placing any order. Didn't realize the lot selection default could be FIFO unless I explicitly set it up — that's a good heads-up.

If you end up doing a partial stock sale — just enough to cover the down payment — and the remaining lots have a mix of gains and losses, watch the 30-day window on both sides of the trade. Selling at a loss in the same account and buying back a substantially identical fund within that window disallows the loss under the wash sale rules. Not your situation right now since you said you're selling at a gain, but it comes up if you're trying to harvest a loss in a nearby lot at the same time.