Skip to main content
Level 2
May 29, 2022
Question

HELOC reduces capital gains

  • May 29, 2022
  • 3 replies
  • 5 views

We are selling our primary residence later this year. We have a HELOC on the property that we used to fix up a rental property last year, so we are still in the draw phase. I know the loan payoff on the primary mortgage reduces the cost basis and therefore would reduce the capital gains. With the value of our house skyrocketing over the past 10 years, we most likely will go over the $500k limit for a married couple on excluding capital gains. Does a HELOC payoff at settlement reduce our capital gain? And if so, should we max out the HELOC before we sell, since we are still in the draw period, to reduce this capital gain obligation?

    3 replies

    fanfare
    Level 15
    May 29, 2022

    your mortgages - primary or HELOC, can't increase your basis and reduce your capital gain.

    That's a pipe-dream.

    Level 2
    May 29, 2022

    I believe it does not since the loan has no relations to the cost. It served as a means of buying your home.

    However if you used the HELOC to make upgrades to the property they would be added to the orig. cost of the property & reduce your tax liability.

    Level 15
    May 29, 2022

    @kingom17 wrote:

    I believe it does not since the loan has no relations to the cost. It served as a means of buying your home.

    However if you used the HELOC to make upgrades to the property they would be added to the orig. cost of the property & reduce your tax liability.


    The loan balance has nothing to do with your capital gains.  If you used part of the loan to make improvements, the improvements add to your cost basis and will reduce your gains, but that is true of all improvements, no matter how you pay for them.  The existence of a loan does not affect your capital gains in any way.  Paying off any kind of home loan makes no difference to your capital gains either.

     

    Your capital gain is the difference between the adjusted cost basis and the selling price.  Allowable adjustments to the cost basis are listed in publication 523 and include improvements, as well as certain closing costs.  

    https://www.irs.gov/pub/irs-pdf/p523.pdf

     

    Suppose you buy a home for $200,000 and sell it for $800,000, and you made $100,000 of improvements.  Your adjusted basis is $300,000 and your selling price is $800,000 so your gain is $500,000.

     

    Now, suppose you have your original mortgage that is paid off down to $150,000 and you have an HELOC of $200,000 that was used partly for the improvements and partly for other things.  You will get $450,000 of cash proceeds, but your capital gain is still $500,000.   Or, suppose you paid off the first mortgage and your only loan is the HELOC.  Your cash proceeds will be $600,000, but your capital gains is still $500,000.  Or, suppose you borrowed $600,000 in equity debt and used it for fast living.  You will only get $50,000 in cash proceeds, but your capital gain is still $500,000, and you might owe more in taxes than your cash proceeds.  But remember you paid no tax on the $600,000 cash out refinance, which was just a way of cashing out the capital gains early.  Capital gains aren't taxed until they are realized by making them real (by selling the property for a certain price, since otherwise prices can go up or down and until you realize the gain, it's only potentially a gain).  But you pay tax on your gain, not your cash proceeds. 

    Level 15
    May 29, 2022

    @Opus 17 -in this query, the home equity proceeds from the primary residence went toward improvements on the investment property. 

     

    While everything you wrote (as usual) is quite clear, I was hoping you were going to also clarify and confirm that the home improvements you were referencing were solely related to improvements on the primary residence being sold and could not include improvements to the investent property, even though the home equity from the primary residence was the source of the cash used to improve the investment property.  

    Level 15
    May 29, 2022

    the debt on the property (HELOC or primary mortage) has NO impact on the capital gains

     

    Selling price minus  (original purchase price plus selling closing costs plus capital improvements ON TEH PRIMARY RESIDENCE since purchase) = capital gains. 

     

    also, and I appreciate this wasn't part of the question, the HELOC interest is NOT deductable on Schedule A, as the money was not used to substainionally extend the life of your personal residence.  the HELOC interest is deductible on Schedule E to the extent the proceeds were invested into the investment property. .....

     

    Critter-3
    Level 15
    May 29, 2022

    Simple way to think on this ... when you took out the loan it was not taxable income  so when you pay off the loan it is not tax deductible.   Only the interest paid on the loan may be deducted based on what the loan was used for.