Get your taxes done using TurboTax

Bankruptcy shouldn't affect your tax return, even though cancelation of debt is normally considered taxable income. That's because debts discharged in bankruptcy are specifically excluded from income under the tax rules.

Personal bankruptcy expenses, such as legal fees, are not deductible. However, expenses for a business bankruptcy can be deducted as a business expense.

if you did not file for bankruptcy you may be able to use form 982 to reduce certain tax attributes and thus reduce the taxable amount of debt forgiven. if the debt forgiven is significant you may want to seek the aid of a tax pro to go over what can be used on the 982. 

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