Does tax loss harvesting apply when selling a home for capital gains?
I just sold my house with a decent profit margin, but since I didn't live there for the full time needed to exclude all the gains from taxes, I'm looking at roughly $24K in taxes on the profit. I understand the tax implications of the home sale, but what I'm specifically wondering about is whether I can use tax loss harvesting to offset some of these gains. Basically, can I sell some underperforming stocks at a loss to reduce the taxable amount from my home sale? I know that typically there's a $3K limit on offsetting ordinary income with investment losses, but does this apply differently when dealing with home sale profits? Any insights would be appreciated!
21 comments


Sara Unger
Yes, you can absolutely use capital losses from stock sales to offset capital gains from your home sale. The key thing to understand is that the profit from your home sale that doesn't qualify for the primary residence exclusion is treated as a capital gain, just like profits from selling stocks. The process works like this: First, you'd total up all your capital gains (including the taxable portion from your home sale). Then you'd subtract your capital losses (from your stock sales). If your losses exceed your gains, then you'd be limited to claiming $3,000 of the excess loss against your ordinary income this year, with the remainder carrying forward to future years. But if you're just using the losses to offset the home sale gain, there's no $3,000 limit - you can offset the entire gain amount if you have enough losses. Just be aware of the wash-sale rule - don't buy back substantially identical securities within 30 days of selling for a loss, or you'll disallow the loss for tax purposes.
0 coins
Butch Sledgehammer
•But doesn't it matter if the home sale is considered a short-term vs long-term capital gain? And what about if the stocks I'd sell are short-term losses but the house would be long-term gains (owned more than a year but lived in less than 2 years)? Do they still offset each other completely or is there some reduced benefit?
0 coins
Sara Unger
•Great question about the holding period! Short-term capital losses first offset short-term capital gains, and long-term losses first offset long-term gains. If you have an excess in one category, it can then offset the other category. For your home situation, if you owned it for more than a year, the taxable portion would be a long-term capital gain even if you didn't meet the 2-out-of-5 year residency test for the exclusion. So ideally, you'd want to harvest long-term losses from stocks you've held over a year. However, if you only have short-term losses available, you can still use them to offset your long-term gains from the house - it's just that normally you'd prefer to use short-term losses against short-term gains since those are taxed at the higher ordinary income rates.
0 coins
Freya Ross
After struggling with a very similar situation last year, I found an amazing tool called taxr.ai that really helped me sort through all my capital gains questions. I sold a vacation property and had a bunch of underwater tech stocks, and wasn't sure how to optimize the tax situation. I uploaded my previous returns and property sale docs to https://taxr.ai and it analyzed everything and showed me exactly how to offset the gains most efficiently. It even flagged some deductions related to the property improvements I had made that I didn't know could reduce my basis! Definitely worth checking out if you're dealing with complex capital gains scenarios.
0 coins
Leslie Parker
•How exactly does this work? Do you just upload documents and it spits out advice? Is there an actual human reviewing the stuff or is it all automated? Kinda nervous about uploading financial documents to random websites...
0 coins
Sergio Neal
•Did it actually tell you anything different than what a regular accountant would? I've been using the same CPA for years and wondering if these AI tools actually catch things human tax pros miss.
0 coins
Freya Ross
•The process is really straightforward - you upload relevant documents (like previous tax returns, property sale information, investment statements) and the system analyzes them using AI. There's both automated analysis and expert review available. They use bank-level encryption for all uploads, so security is solid - I was nervous about that too initially. It actually did catch things my previous tax preparer missed. In my case, it identified specific home improvement receipts that could be added to my cost basis, reducing the taxable gain. It also optimized which specific stocks to sell for tax loss harvesting by analyzing my entire portfolio rather than just looking at the biggest losers. The recommendations were more personalized and comprehensive than what I'd gotten before.
0 coins
Leslie Parker
Just wanted to update after trying taxr.ai from the recommendation above - it was actually super helpful! I uploaded my closing statement from the home sale plus my investment account statements, and it showed me exactly which stocks would be most advantageous to sell for harvesting losses. The analysis pointed out that I should prioritize harvesting my long-term losses first (which I wouldn't have done), and it saved me nearly $7K in taxes! The system even generated a report I could give my accountant explaining all the reasoning. Definitely made the whole process way less stressful than I expected.
0 coins
Savanna Franklin
If you're having trouble getting clear answers on your tax situation, I had a similar issue last year and ended up needing to call the IRS directly. After wasting HOURS on hold and getting disconnected three times, I finally discovered https://claimyr.com which got me connected to an actual IRS agent in under 20 minutes! You can see how it works here: https://youtu.be/_kiP6q8DX5c I was able to confirm directly with the IRS that yes, capital losses from stock sales can offset capital gains from a home sale that doesn't qualify for the full exclusion. The agent even walked me through how to properly document everything on Schedule D and provided guidance on some specific scenarios I was worried about. Saved me from making a $12K mistake on my taxes!
0 coins
Juan Moreno
•Wait this actually works? How is that even possible when the IRS phone lines are completely jammed? Are you saying this service somehow jumps the queue? That seems... questionable.
0 coins
Amy Fleming
•Is this some kind of paid service? Shouldn't we be able to reach the IRS without paying a third party? The whole system is broken if we need to pay just to talk to the agency we pay taxes to...
0 coins
Savanna Franklin
•Yes, it actually works - they use technology that continuously redials and navigates the IRS phone tree for you until it gets through. Then it calls you when an agent is actually on the line. It doesn't "jump the queue" illegally - it just handles the frustrating part of waiting and redialing so you don't have to waste your whole day. It is a paid service, and I totally understand the frustration about needing to pay to effectively reach a government agency. In an ideal world, the IRS would be properly funded with enough staff to answer calls promptly. Unfortunately, with current wait times often exceeding 2-3 hours and many calls getting disconnected, I personally found the service worth it rather than wasting an entire day trying to get through. Especially when dealing with a high-stakes tax question like capital gains on a home sale.
0 coins
Juan Moreno
I need to eat my words from my skeptical comment earlier. After my third failed attempt trying to reach the IRS about my capital gains situation (kept getting disconnected after 40+ minutes on hold), I broke down and tried Claimyr. I was connected to an IRS agent in about 15 minutes! The agent confirmed that I can indeed use my stock losses to offset the capital gains from my home sale. She also explained exactly how to document everything on my return and gave me the specific publication numbers to reference if I needed more details. I'm still annoyed that this service needs to exist, but I can't deny it saved me hours of frustration and potentially thousands in taxes by getting definitive answers.
0 coins
Alice Pierce
The $3K limit only applies to offsetting ordinary income with capital losses, not to offsetting capital gains. You can offset unlimited capital gains with capital losses! So if you have $24K in capital gains from your house sale, and you sell stocks at a $24K loss, you can completely eliminate the tax liability from the house sale. Just make sure you're tracking your cost basis correctly for both the stocks and the house. For the house, don't forget to add in the cost of qualifying home improvements to your original purchase price - that will reduce your taxable gain!
0 coins
Esteban Tate
•If I offset all my gains with losses this year, do I still have to report the home sale on my tax return? And where exactly does this all get reported - is it just Schedule D or are there other forms I need?
0 coins
Alice Pierce
•Yes, you absolutely must report the home sale on your tax return, even if you've offset all the gains with losses. The home sale gets reported on Form 8949 and then flows to Schedule D, where your stock losses will also be calculated. The IRS will receive information about your home sale from the closing company via Form 1099-S, so they'll know the sale happened. If you don't report it, you'll likely get a notice from them. Also, you'll need to complete Form 2119 if you're claiming the partial home sale exclusion. It's also smart to keep detailed records of your cost basis calculations for both the home and stocks, as the IRS might request this documentation if you're audited.
0 coins
Ivanna St. Pierre
What tax software are people using to handle this kind of situation? I'm in a similar boat and tried using [popular tax software] but it seems confused when I enter both my home sale and stock losses.
0 coins
Elin Robinson
•I used TurboTax Premier for a similar situation and it handled it fine. Just make sure you're using the Premier version or above, not Deluxe, as the lower versions don't properly handle investment and property sales. The interview process walks you through both the home sale and investment loss harvesting separately, then combines them correctly on Schedule D.
0 coins
Ivanna St. Pierre
•Thanks for the recommendation! I'll give TurboTax Premier a try. I was using the basic version which probably explains why it was getting confused when I tried to enter both transaction types.
0 coins
Emma Thompson
Great question! Yes, you can definitely use capital losses from selling underperforming stocks to offset the capital gains from your home sale. The $3K limit you mentioned only applies when you have more losses than gains and want to deduct the excess against ordinary income - but when you're offsetting capital gains with capital losses, there's no limit. So in your case with $24K in taxable gains from the home sale, you could potentially sell stocks with $24K in losses to completely eliminate your tax liability on the home sale. Just a few things to keep in mind: 1. Make sure you understand the wash sale rule - don't repurchase the same or substantially identical securities within 30 days 2. Consider the holding period - long-term losses are most efficiently used against long-term gains (which your home sale likely is if you owned it over a year) 3. Double-check your home's cost basis calculation - don't forget to include qualifying home improvements which can reduce your taxable gain This strategy can be really effective for managing a large capital gains tax bill from a home sale!
0 coins
Zoe Papanikolaou
•This is really helpful! I'm actually in a very similar situation - sold a rental property earlier this year and have some tech stocks that are underwater. One thing I'm wondering about is the timing - do I need to sell the losing stocks before the end of the tax year to offset this year's home sale gains, or can I carry losses forward from previous years? Also, is there any advantage to spreading the stock sales across multiple years rather than doing it all at once?
0 coins