Get your taxes done using TurboTax

@BHTMG when you get to the closing table, you will be required to pay off the entire HELOC. it will be deducted from the proceeds you are entitled to.  As stated by others, it has nothing to do with calculating the capital gains.

 

Capitgal gains measures the increased value of the Asset; HELOC is a libability / debt, so it is not included.