Should I sell stocks for a bigger house down payment or take a larger mortgage?

Trying to figure out if I should sell stocks for a bigger house down payment or take a larger mortgage. I have a taxable brokerage account with a mix of positions — some held over a year, some under. The house I'm looking at would need roughly a 20% down to avoid PMI. I could either liquidate enough shares to hit that number or just take the larger loan and keep the portfolio intact. I already ran some rough numbers on the mortgage side. What I haven't worked out is the tax hit from selling. Some of my short-term positions are sitting at decent gains and I know those get taxed differently than the long-term ones. Is the capital gains bill something that actually tips the math here, or do people usually just ignore it and focus on the mortgage rate vs. expected return comparison?

33 comments

What's the split between your short-term and long-term positions? That's really the first question because the tax treatment is completely different and it could swing your decision by a meaningful amount.

Raj T.

Author

Roughly 60% of the gain is in positions I've held more than a year, the rest is under 12 months. The short-term stuff has the bigger dollar gain though, which is what makes me nervous about selling everything at once.

Are any of your positions currently at a loss? If you have unrealized losses you could harvest them to offset some of the gains from the shares you sell. Wash sale rules apply if you try to buy back anything substantially identical within 30 days before or after the sale, so you'd have to stay out or buy something different.

Raj T.

Author

A couple positions are slightly underwater, yeah. I hadn't really thought about pairing the sales. So the loss offsets the gain dollar for dollar on Schedule D before it flows through?

Correct. Net your short-term against short-term and long-term against long-term first, then net the two buckets against each other if one is a loss. It all flows through Schedule D onto your 1040. The wash sale piece is the thing to watch — that disallowed loss gets added to the cost basis of the replacement shares instead of helping you now.

Have you actually modeled what the capital gains bill looks like across different sell scenarios? I uploaded my brokerage statements to taxr.ai and it walked through each lot, flagged which were short-term vs long-term, and estimated what the net proceeds would look like after the tax drag. Really helped me see which lots were worth selling vs holding. The rate you owe on long-term gains depends on your taxable income for the year — check the Schedule D instructions for the qualified dividend and capital gain tax worksheet rather than assuming a flat rate.

Raj T.

Author

That's a good idea actually. I've been eyeballing it in a spreadsheet but I don't think I've been accounting for how the gains stack on top of ordinary income. I'll look at the Schedule D instructions.

The mortgage rate vs. expected portfolio return comparison is the classic framing but it ignores the tax drag on selling, the tax deductibility situation on mortgage interest (which is limited and depends on your situation), and the sequence-of-returns risk if the market drops right after you take the larger loan. None of those are easy to quantify but they're all real.

The mortgage interest deduction point is worth spelling out — you can only deduct interest on acquisition debt up to certain limits, and only if you itemize. If you're taking the standard deduction anyway the interest deduction is worth zero to you. Check Publication 936 or the Schedule A instructions for the current limits.

Raj T.

Author

We've been taking the standard deduction the last few years so yeah, the mortgage interest deduction probably doesn't change anything for us.

Did you consider selling only the long-term lots and leaving the short-term positions alone until they cross the one-year mark? You'd get the preferential rate on the long-term gains and the short-term gains stay deferred a few more months.

Raj T.

Author

That's what I was leaning toward but the long-term gains alone don't quite get me to the 20% down. I'd need to sell at least some of the short-term stuff too.

Could you bridge the gap with a slightly smaller down payment and then pay down the mortgage faster once the short-term lots age past a year? The PMI cost for a few months might be less than the tax difference between ordinary income rates and long-term rates on those gains.

I ran nearly the same sell-or-hold numbers on my own lots last year. I pasted my 1099-B into Taxr and it built out a lot-by-lot breakdown showing the holding period, the gain, and what the estimated tax looked like for each lot at different income scenarios. That comparison between the short-term and long-term lots made it really obvious which ones were worth selling first. The holding period for securities traded on an established market starts the day after the trade date you bought and ends on the trade date you sold — not settlement date, which tripped me up at first.

The trade date vs settlement date thing is a real gotcha especially near year end. Good point.

What's your timeline on the house purchase? If you have a few months some of those short-term positions might age into long-term on their own.

Raj T.

Author

Closing is probably 60 to 90 days out. So some of the positions that are close to the one-year mark might actually flip before I need the cash. I hadn't mapped that out precisely.

Worth mapping the exact dates. Count from the day after your purchase trade date. Any lot that crosses 12 months before your closing date is fair game to sell at long-term rates.

Something people miss: if you have capital losses carried over from prior years, those offset this year's gains first before you owe anything. Check Schedule D line 6 and line 14 for your carryover amounts from last year's return.

Are you in a state with its own capital gains tax? Some states don't distinguish between short-term and long-term so the blended effective rate ends up higher than the federal rate alone.

Raj T.

Author

Good call, I hadn't factored state at all. I'll need to add that in.

The PMI math is often underrated. If the PMI premium is relatively small compared to what you'd pay in tax to get to 20% down, taking the larger loan and keeping the shares could actually be the cheaper path even before you count potential appreciation on the portfolio.

This. Especially if the positions you'd have to sell at short-term rates are ones you believe in long-term. You're not just paying tax now, you're also resetting your basis and losing future compounding on the tax dollars you handed over.

How are your shares held — just a regular taxable brokerage account? Selling out of an IRA or 401k would be a totally different analysis with different tax consequences.

Raj T.

Author

All taxable brokerage, yeah. The retirement accounts are staying untouched.

Worth noting that if any of your positions are employer stock from RSU vesting, the cost basis reported on your 1099-B might need to be checked against your W-2. Brokers sometimes report a lower basis than what was actually included in your compensation, which would overstate your gain.

Raj T.

Author

No RSUs in this account, it's all stuff I bought on the open market. But good flag for anyone else reading this.

Does your lender allow a gift of equity or any other way to reach 20% that doesn't involve liquidating? Some people overlook that angle when they're focused on the sell vs hold question.

To pull this together: the federal capital gains rate on long-term gains is not a flat number — it depends on your total taxable income for the year. Your short-term gains are taxed as ordinary income at whatever marginal rate applies. Run both scenarios through the qualified dividends and capital gain tax worksheet in the Schedule D instructions before you decide anything. The difference between selling now vs waiting a few months on the borderline lots could be significant.

Raj T.

Author

This is basically the conclusion I've come to. I'm going to map out every lot with its purchase date, holding period, and estimated gain, figure out which ones flip long-term before closing, and then run the actual worksheet numbers before I commit to anything.

One scenario worth running: sell only the lots needed to get to, say, 15% down, pay PMI for a defined period, and then sell the remaining short-term lots after they age past one year to make a lump-sum principal payment. Keeps the tax cost lower and gets you out of PMI eventually without selling everything at short-term rates right now.

That's a reasonable middle path. The only friction is whether your loan allows lump-sum principal payments without prepayment penalty — worth checking the loan terms.

Raj T.

Author

The lender said no prepayment penalty so that actually could work. Hadn't thought about staging the sales like that.