The IRS provides six exceptions you can use to avoid paying taxes on forgiven debts. If you qualify for an exemption, you must file IRS Form 982 to prove your eligibility for the exemption.