Taxation of the payment depends on various factors. If, for example, the settlement was the result of accounting errors erroneously inflating the price of the stock, then the payment is a refund of your initial purchase price. It’s an adjustment to basis if you still own the stock or capital gain that must be reported if you sold the stock before the settlement. If part of the settlement is for punitive damages or interest, these income items are reported as ordinary income.
Debt secured by a principal residence or second home to the extent of the excess of fair market value over acquisition debt. An interest deduction is generally allowed for home equity debt up to $100,000 ($50,000 if married filing separately).