Should I sell company stock to buy a house in cash?

Been sitting on a decent chunk of company RSUs that vested over the past four years. Some lots are short-term, some long-term. I'm looking at buying a house and trying to figure out if I should sell company stock to buy a house in cash instead of taking out a mortgage. I ran some rough numbers and the stock sale would probably push me into a higher bracket this year. I already looked at the difference between short-term and long-term lots and I know the long-term ones are taxed more favorably, but I'm still not sure how to weigh the tax hit against the mortgage interest I'd be paying. Has anyone actually done this math and decided one way or the other? I'm not sure how to think about the capital gains piece alongside everything else.

33 comments

Last year I was weighing nearly the same call with my own RSUs. First thing I did was upload my 1099-B and my RSU vesting schedule to taxr.ai and asked it to map each lot's holding period and estimated gain. It flagged which lots were short-term vs long-term and drafted a summary showing the different tax treatments side by side — I could see clearly which lots to sell first. Huge help before I talked to my CPA about the final call.

Tara P.

Author

Thanks, that's the kind of prep work I need to do before anything else. Going to try pulling together my 1099-B and vesting schedule and do the same kind of review.

Are all your RSU lots fully vested, or do you still have some that haven't vested yet? That matters because unvested RSUs aren't yours to sell — only vested shares show up on your 1099-B. Also, did your employer already withhold shares at vesting for taxes, or did you get the full share count deposited?

Tara P.

Author

All vested, and yes the employer withheld shares at vesting to cover ordinary income. So what I'm looking at selling is the remaining shares after that withholding, sitting in my brokerage account now.

Good, that simplifies it. Your cost basis for each lot is the fair market value on the vesting date — that's what should be on your 1099-B in column (e). The gain you're calculating is from that FMV, not from zero, which is a mistake a lot of people make with RSUs.

What's your timeline for the home purchase? If you're not buying for another 12+ months, you could wait for any short-term lots to cross the one-year mark and become long-term. The holding period for securities starts the day after the trade date you bought (or in this case, the day after vesting) and ends on the trade date you sell.

Tara P.

Author

Timeline is fairly flexible, maybe 6 to 9 months out. So some of the borderline lots could flip long-term if I wait. That's worth mapping out lot by lot.

Exactly. Pull the vesting dates for every lot and count forward. Any lot that tips over one year before your target sale date is worth holding if you can. The tax rate difference between short-term and long-term can be significant depending on your bracket.

Does your company have a trading blackout policy? A lot of employers restrict when you can sell company stock around earnings. Worth checking before you count on a specific sale date.

Tara P.

Author

Good point, I'll check the insider trading policy. I don't think I'm a restricted person but I should confirm.

The capital gains question is real but don't forget concentration risk. Having a large chunk of your net worth in one company's stock and then also buying a house with it is a lot of eggs in related baskets — if the company hits a rough patch right before you sell, your house budget shrinks. That's not a tax question but it's part of the same decision.

How are you thinking about the mortgage side? Mortgage rates are what they are, and the deductibility of interest has limits now — you'd want to look at Schedule A and whether you'd even itemize. If your standard deduction is higher than your itemized deductions, the mortgage interest "benefit" disappears entirely.

This is worth spelling out: the mortgage interest deduction only helps if your total itemized deductions beat the standard deduction. Plenty of homeowners never get the tax benefit because the standard deduction is higher. Run the Schedule A numbers before you assume interest is deductible.

Tara P.

Author

I hadn't fully thought through the Schedule A angle. I'll need to estimate whether I'd even itemize before I count any mortgage interest deduction in the comparison.

What brokerage are you using? The reason I ask is I had a complicated lot situation with RSUs from two different grant dates and I pasted the brokerage tax doc into Taxr — it read through each lot, matched them to Form 8949 Part I vs Part II based on holding period, and showed me the adjustment column (g) entries I'd need for any lots where the broker's basis looked off. Saved me from a pretty bad misreport.

Tara P.

Author

That's exactly what I'm worried about — getting the Part I vs Part II split wrong or having the basis misreported. Good to know that kind of review is possible before filing.

Are any of these ISOs rather than RSUs? The tax treatment is completely different — ISOs can trigger an AMT adjustment on Form 6251 line 2i in the year you exercise, even if you don't sell. RSUs are ordinary income at vesting and then capital gain or loss on sale. If you have both, the analysis splits into two separate calculations.

Tara P.

Author

These are all RSUs, no ISOs. So no AMT piece to worry about here, just the capital gain on the difference between sale price and FMV at vesting.

Correct. With RSUs the vesting date FMV is your basis. The gain from vesting to sale is capital gain, short- or long-term depending on how long you held after vesting. Clean situation compared to ISOs.

Did you check whether any prior-year sales triggered wash sales that are still sitting in your basis? If you sold any of these shares at a loss in a window within 30 days before or after buying more of the same stock, that disallowed loss gets added to the cost basis of the replacement shares. It can make your basis higher than it looks on a simple vesting-date FMV calculation.

Tara P.

Author

I haven't had any loss sales on this stock, so I don't think wash sales are an issue. But I'll double-check the 1099-B box 1g entries just to be sure — if there's a dollar amount in that box, I know something got flagged.

Something people underweight in this comparison: liquidity after the purchase. If you drain the stock to buy in cash, you have a house and no liquid savings. If the market drops or you lose income, you have no buffer. A mortgage keeps cash in your pocket. That's not a tax point but it changes the real cost of the all-cash move.

On the Form 8949 side: when you eventually sell, your brokerage will send a 1099-B. If the basis is correctly reported to the IRS, your lots go in Part I box A (short-term) or Part II box D (long-term) of Form 8949. If the basis is wrong — which happens with RSUs because brokers sometimes use the original option price rather than FMV at vesting — you use code B in column (f) and correct it in column (g). Get that right before you file.

The basis error on RSUs is more common than people realize. The employer W-2 includes the vesting income, and the correct basis should match that W-2 income plus anything you paid. If the 1099-B shows a lower number, the broker underreported basis and you'll overstate your gain unless you correct it on Form 8949.

Tara P.

Author

Thanks for the detail on column (f) code B. I'll compare my W-2 box 14 RSU income against the 1099-B basis entries before I report anything.

Have you thought about selling only the long-term lots and financing the rest? You don't have to go all-cash or take a full mortgage. Selling just the long-term lots for a larger down payment could reduce your loan size and your tax hit at the same time.

Tara P.

Author

That middle-ground approach is probably where I end up. Sell the long-term lots, take a smaller mortgage on the rest, and let the short-term lots age out before selling.

Where are you located? State capital gains tax varies wildly — some states tax long-term gains at the same rate as ordinary income, others have no income tax at all. The federal analysis is one thing but your state return could change the math significantly.

Tara P.

Author

High-tax state unfortunately. That's another layer I need to factor in. The state doesn't have a separate long-term rate so the federal preference for long-term gains is partly offset at the state level.

If your gains are large enough, don't forget about the net investment income tax. It applies to investment income above certain thresholds based on your modified adjusted gross income. The IRS covers it in its own net investment income tax guidance; irs.gov/taxtopics/tc409 is the topic on the limit on capital loss deductions and carryovers, not the NIIT. Worth reading up before you assume your rate is just the standard capital gains rate.

Given the size of the decision — house purchase, concentrated stock, potential large taxable event — this is a situation where a CPA or fee-only financial planner earns their fee. The tax piece and the financial planning piece overlap enough that having both in the same conversation is worth it. An enrolled agent can also handle the tax side if that's the main concern.

Tara P.

Author

Agreed. I've been doing my own prep work so the professional conversation is actually useful rather than starting from zero. Going to book time with a CPA before I make any moves.

When you're mapping out the lots, keep your 1099-B open next to the holding periods and basis section of Publication 550 on irs.gov — it's a solid one. It covers how to count the holding period correctly for securities — starts the day after the trade date you acquired, ends on the trade date you sell.