How much down payment to put on house versus selling investments with capital gains

Trying to figure out how much down payment to put on house versus selling investments with capital gains and I'm genuinely stuck. I have a taxable brokerage account with a mix of positions — some held over a year, some under. My plan was to sell enough to cover a 20% down payment on a house I'm under contract on, but when I ran the numbers the gains are pretty significant on the older positions. I've also got a decent emergency fund I could tap partially, and my employer allows 401k loans but I hate that idea. The mortgage broker says I can go lower than 20% with PMI. So now I'm wondering whether it even makes sense to trigger all those gains at once, or whether a smaller down payment and keeping the investments is smarter from a tax angle. Has anyone thought through this tradeoff?

35 comments

The core tax question is whether those long-term positions generate long-term capital gains when you sell — and what your total taxable income will be in the year you sell. The rate that applies to long-term gains depends on your filing status and total income, so you can't just look at the gain in isolation. Check the Schedule D instructions and the rate tables there. Short-term gains, on the other hand, get taxed at ordinary income rates, so selling those positions is a much bigger hit. If you have a mix, it can make sense to sell only the long-term lots and keep (or defer) the short-term ones.

Leah D.

Author

Yeah the mix is what's making this complicated. Most of the big gains are long-term, thankfully. The short-term positions are smaller. So I guess the real question is whether the tax cost of liquidating the long-term lots is worth avoiding PMI.

PMI isn't forever if you get conventional financing — you can usually cancel it once your equity hits a threshold — but that's a mortgage question not a tax one. From a pure tax angle, liquidating appreciated long-term positions all in one tax year might push your total income into a higher bracket for those gains. Some people spread the sales across two tax years if closing timing allows. Worth modeling both scenarios with your actual numbers before deciding.

Yes, spreading across two tax years is real. If your closing is in December you might be able to sell some lots in December and some in January and report them on two separate returns. Timing matters a lot here.

Don't forget that selling investments doesn't just trigger a tax bill — it also affects your financial aid picture if you have kids approaching college, it can bump you into higher ACA premium territory if you're on a marketplace plan, and it interacts with the net investment income tax if your modified AGI clears a certain threshold. The Form 8960 instructions on irs.gov explain the net investment income tax. These aren't reasons not to sell, but they're part of the total cost the gain calculator on a brokerage site won't show you.

Leah D.

Author

No kids in college and I'm on employer insurance so the ACA piece doesn't apply, but the net investment income tax angle is new to me. Going to look at Form 8960.

I had almost exactly this situation last spring. I uploaded my 1099-B and my draft return to taxr.ai and it went through each lot, matched the holding periods, and gave me a side-by-side showing which lots were long-term versus short-term and what the incremental tax cost of selling each would be. Helped me see which positions to keep. On the actual tax mechanics: when you do sell, each lot you close goes on Form 8949. Long-term lots go in Part II, short-term in Part I. Your broker reports the proceeds and usually the cost basis on a 1099-B; that feeds directly into column (d) for proceeds and column (e) for basis on Form 8949. The totals roll up to Schedule D.

Leah D.

Author

This is exactly the kind of walk-through I needed. So if I sell 10 different lots I'll have 10 rows on Form 8949? And the 1099-B I get in February has all of that laid out?

Yes, one row per lot on Form 8949 — or your broker may send a consolidated 1099-B that groups them, and you can either enter them individually or use the Exception 1 shortcut on Schedule D line 1a or 8a if there are no adjustments needed. The 1099-B will show whether basis was reported to the IRS, which determines whether you check box A, B, D or E on Form 8949.

Something people miss is that if you sell a position at a loss in the same period you're buying your new investments (or even if you sold at a loss recently and buy something similar), the wash sale rules can disallow that loss. 30 days before or after the sale is the window. With a wash sale the disallowed loss gets added to the basis of the replacement shares instead of giving you an immediate deduction. If you're only selling winners this doesn't apply, but if you're harvesting any losses to offset the gains, watch the calendar.

No, it only triggers if you buy substantially identical securities — same stock, not just the same sector. Switching from one S&P 500 ETF to a different one could avoid the wash sale rule, though the IRS hasn't issued bright-line guidance on every ETF pair.

Yes, correct clarification. The key phrase is "substantially identical" — buying a different fund that tracks the same index is a gray area, buying the exact same ticker within 30 days is clearly a wash sale.

Have you modeled what the PMI costs you annually versus what you'd pay in tax on the gain? For some people PMI is cheaper than the tax bill, especially if the gains are large. For others the PMI drags on for years and the upfront tax cost was worth it. Neither answer is universal — it really turns on your gain amount, your marginal rate on that gain, and how long you'd realistically carry PMI.

Leah D.

Author

Haven't done that full model yet but this is the right framing. My gains are sizeable so the tax cost might actually be worse than a few years of PMI. I'll run the numbers.

One thing worth checking: if any of your investments are in a Roth IRA, you can withdraw your contributions (not earnings) at any time without tax or penalty. Contributions come out first before earnings, and since you already paid tax on them going in, there's no tax hit. That could cover part of the down payment without triggering capital gains at all. This only applies to your original contributions, not the investment growth in the account.

Yes, the ordering rules for Roth distributions do put contributions first. But taking money out of a Roth for a house purchase reduces future tax-free compounding — it's a real tradeoff even if there's no immediate tax cost.

Went through a similar decision two years ago. I pasted my brokerage statements and my prior year Schedule D into Taxr and it listed out every position with its holding period and estimated gain, then showed me how the total gain from the lots I was considering selling would affect my taxable income for the year. That made the decision much clearer — I ended up selling fewer lots than I originally planned. On the holding period question: Publication 550 at irs.gov is the official reference. For securities traded on an established market, your holding period starts the day after the trade date you bought and ends on the trade date you sell — not the settlement date. So double-check your lot dates before you sell if you're close to the one-year mark.

Leah D.

Author

The holding period detail is really useful — I hadn't thought about trade date vs settlement date. Some of my positions might be right at the one-year line.

Worth checking carefully. One day's difference between short-term and long-term can be a meaningful tax difference on a large lot.

Keeping your down payment under 20% isn't just a PMI issue — it also affects your loan-to-value ratio which influences your interest rate on some mortgage products. So the mortgage cost of a smaller down payment might be more than just PMI. That's a question for your mortgage broker, but it goes into the same model as the tax cost of selling.

If you have capital loss carryforwards from prior years, those offset capital gains dollar for dollar before you owe any tax on them. Check Schedule D from your last return to see if there's a carryforward on line 6 (short-term) or line 14 (long-term). People forget they have these and then over-stress the tax cost of selling.

Leah D.

Author

Went back and looked — I do have a small long-term carryforward from 2022. Not huge but it'll offset some of this year's gains. Good catch.

Yes, that carryforward flows into this year's Schedule D automatically. Your tax software picks it up if you're using last year's return as the starting point, but double-check that the number on Schedule D line 14 matches what your prior year return shows.

Completely separate from the tax question but relevant: mortgage underwriters look at your asset accounts as part of the approval process. If you liquidate a large chunk of your brokerage right before closing, some lenders want a paper trail showing those funds. Usually a few months of brokerage statements and a note of the sale is enough, but check with your loan officer before you time the sale too close to closing.

The net investment income tax question raised earlier is real. If your modified AGI exceeds a certain level (the threshold depends on filing status — check Form 8960 and its instructions), an additional tax applies to net investment income including capital gains. So the effective rate on your gains could be higher than the basic long-term capital gains rate alone. The Form 8960 instructions on irs.gov lay out exactly what counts as net investment income and what thresholds apply.

Yes, and that threshold doesn't adjust for inflation the way some other figures do, so more people hit it over time. Worth checking your prior year Form 8960 if you filed one to see how close you were.

I faced this same down payment vs. gains question and I gave Taxr my 1099-B from last year along with a rough list of the lots I was thinking of selling. It drafted a worksheet showing the after-tax proceeds from each lot — essentially what I'd actually pocket after the estimated capital gains tax — so I could compare that directly to the PMI cost over time. Practically speaking: if you do decide to sell, make sure the lots you sell are identified specifically (by date and amount) with your broker before the sale settles. If you don't specify, the broker may default to FIFO — first in, first out — which might not be the most tax-efficient order.

Leah D.

Author

I didn't know the broker defaults to FIFO. I'll call them before placing the order. That could make a real difference if my earliest lots have the biggest gains.

Exactly — and you can usually specify lot by lot through the broker's website at the time of the trade. Some brokers also let you set a standing method (highest cost, lowest gain, etc.) at the account level. Worth choosing before you place anything.

Pulling the thread together on the Form 8949 mechanics since it came up earlier: each lot you sell gets its own row. Column (d) is proceeds, column (e) is cost basis, column (h) is the resulting gain or loss. Long-term lots (held more than one year) go in Part II; short-term in Part I. The checkbox at the top of each part (A through F, or G through L for digital assets) depends on whether your broker reported basis to the IRS on the 1099-B. Everything flows from there to Schedule D and then to Form 1040.

Yes, and under Exception 1 in the Form 8949 instructions, if all your transactions in a part have basis reported to the IRS and there are no adjustments needed, you can skip putting them on Form 8949 and enter the totals directly on Schedule D line 1a (short-term) or 8a (long-term). Saves time if your 1099-B is clean.

Something I'd add: if you're selling mutual funds rather than individual stocks, your cost basis method might already be locked in by prior elections. Some fund companies default to average cost basis. You can't retroactively change the method for shares you've already sold, so check what your fund company has on file.

No, you can change the method going forward on shares not yet sold — but you can't change it retroactively on shares you've already sold using a particular method. Worth confirming with the fund company which method is currently set.

To sum up the tax side of the decision: (1) identify whether your lots are short-term or long-term by trade date, (2) estimate the gain per lot, (3) check for any carryforward losses on Schedule D that offset the gains, (4) check whether your projected AGI hits the net investment income tax threshold on Form 8960, (5) compare the after-tax proceeds you'd actually net to the multi-year cost of PMI. That's the full model. The mortgage math is a separate calculation but needs to sit next to the tax math before you decide.

Leah D.

Author

Seeing it broken into five steps makes the whole decision feel manageable now. Thank you. I'll work through these steps and probably consult a CPA given the size of the gains — it's worth getting someone to run the actual numbers with my full return before I sell anything.