Subparagraphs (B), (C), (D), and (E) of paragraph (1) shall not apply to a discharge which occurs in a title 11 case.
Subparagraphs (C) and (D) of paragraph (1) shall not apply to a discharge to the extent the taxpayer is insolvent.
In the case of a discharge to which paragraph (1)(B) applies, the amount excluded under paragraph (1)(B) shall not exceed the amount by which the taxpayer is insolvent.
The amount excluded from gross income under subparagraph (A), (B), or (C) of subsection (a)(1) shall be applied to reduce the tax attributes of the taxpayer as provided in paragraph (2).
Any net operating loss for the taxable year of the discharge, and any net operating loss carryover to such taxable year.
Any carryover to or from the taxable year of a discharge of an amount for purposes for determining the amount allowable as a credit under section 38 (relating to general business credit).
The amount of the minimum tax credit available under section 53(b) as of the beginning of the taxable year immediately following the taxable year of the discharge.
Any net capital loss for the taxable year of the discharge, and any capital loss carryover to such taxable year under section 1212.
Except as provided in subparagraph (B), the reductions described in paragraph (2) shall be one dollar for each dollar excluded by subsection (a).
The reductions described in subparagraphs (B), (C), and (G) shall be 33⅓ cents for each dollar excluded by subsection (a). The reduction described in subparagraph (F) in any passive activity credit carryover shall be 33⅓ cents for each dollar excluded by subsection (a).
The reductions described in paragraph (2) shall be made after the determination of the tax imposed by this chapter for the taxable year of the discharge.
The reductions described in subparagraph (A) or (D) of paragraph (2) (as the case may be) shall be made first in the loss for the taxable year of the discharge and then in the carryovers to such taxable year in the order of the taxable years from which each such carryover arose.
The taxpayer may elect to apply any portion of the reduction referred to in paragraph (1) to the reduction under section 1017 of the basis of the depreciable property of the taxpayer.
The amount to which an election under subparagraph (A) applies shall not exceed the aggregate adjusted bases of the depreciable property held by the taxpayer as of the beginning of the taxable year following the taxable year in which the discharge occurs.
The amount excluded under subparagraph (D) of subsection (a)(1) shall not exceed the aggregate adjusted bases of depreciable real property (determined after any reductions under subsections (b) and (g)) held by the taxpayer immediately before the discharge (other than depreciable real property acquired in contemplation of such discharge).
For purposes of paragraph (3)(B), the term “qualified acquisition indebtedness” means, with respect to any real property described in paragraph (3)(A), indebtedness incurred or assumed to acquire, construct, reconstruct, or substantially improve such property.
For purposes of this section, the term “title 11 case” means a case under title 11 of the United States Code (relating to bankruptcy), but only if the taxpayer is under the jurisdiction of the court in such case and the discharge of indebtedness is granted by the court or is pursuant to a plan approved by the court.
For purposes of this section, the term “insolvent” means the excess of liabilities over the fair market value of assets. With respect to any discharge, whether or not the taxpayer is insolvent, and the amount by which the taxpayer is insolvent, shall be determined on the basis of the taxpayer’s assets and liabilities immediately before the discharge.
The term “depreciable property” has the same meaning as when used in section 1017.
In the case of a partnership, subsections (a), (b), (c), and (g) shall be applied at the partner level.
In the case of an S corporation, subsections (a), (b), (c), and (g) shall be applied at the corporate level, including by not taking into account under section 1366(a) any amount excluded under subsection (a) of this section.
In the case of an S corporation, for purposes of subparagraph (A) of subsection (b)(2), any loss or deduction which is disallowed for the taxable year of the discharge under section 1366(d)(1) shall be treated as a net operating loss for such taxable year. The preceding sentence shall not apply to any discharge to the extent that subsection (a)(1)(D) applies to such discharge.
In any case under chapter 7 or 11 of title 11 of the United States Code to which section 1398 applies, for purposes of paragraphs (1) and (5) of subsection (b) the estate (and not the individual) shall be treated as the taxpayer. The preceding sentence shall not apply for purposes of applying section 1017 to property transferred by the estate to the individual.
An election under paragraph (5) of subsection (b) or under paragraph (3)(C) of subsection (c) shall be made on the taxpayer’s return for the taxable year in which the discharge occurs or at such other time as may be permitted in regulations prescribed by the Secretary.
Except as otherwise provided in this section, there shall be no insolvency exception from the general rule that gross income includes income from the discharge of indebtedness.
No income shall be realized from the discharge of indebtedness to the extent that payment of the liability would have given rise to a deduction.
The amount taken into account with respect to any discharge shall be properly adjusted for unamortized premium and unamortized discount with respect to the indebtedness discharged.
For purposes of determining income of the debtor from discharge of indebtedness, to the extent provided in regulations prescribed by the Secretary, the acquisition of outstanding indebtedness by a person bearing a relationship to the debtor specified in section 267(b) or 707(b)(1) from a person who does not bear such a relationship to the debtor shall be treated as the acquisition of such indebtedness by the debtor. Such regulations shall provide for such adjustments in the treatment of any subsequent transactions involving the indebtedness as may be appropriate by reason of the application of the preceding sentence.
For purposes of this paragraph, sections 267(b) and 707(b)(1) shall be applied as if section 267(c)(4) provided that the family of an individual consists of the individual’s spouse, the individual’s children, grandchildren, and parents, and any spouse of the individual’s children or grandchildren.
For purposes of this paragraph, two entities which are treated as a single employer under subsection (b) or (c) of section 414 shall be treated as bearing a relationship to each other which is described in section 267(b).
In the case of any creditor who computes his taxable income under the cash receipts and disbursements method, proper adjustment shall be made in the amount taken into account under clause (ii) of subparagraph (A) for any amount which was not included in the creditor’s gross income but which would have been included in such gross income if such indebtedness had been satisfied in full.
For purposes of this paragraph, stock of a corporation in control (within the meaning of section 368(c)) of the debtor corporation shall be treated as stock of the debtor corporation.
For purposes of this paragraph, the term “debtor corporation” includes a successor corporation.
Any amount included in gross income by reason of the discharge of indebtedness shall not be taken into account for purposes of paragraphs (2) and (3) of section 856(c).
For purposes of determining income of a debtor from discharge of indebtedness, if a debtor issues a debt instrument in satisfaction of indebtedness, such debtor shall be treated as having satisfied the indebtedness with an amount of money equal to the issue price of such debt instrument.
For purposes of subparagraph (A), the issue price of any debt instrument shall be determined under sections 1273 and 1274. For purposes of the preceding sentence, section 1273(b)(4) shall be applied by reducing the stated redemption price of any instrument by the portion of such stated redemption price which is treated as interest for purposes of this chapter.
In the case of an individual, gross income does not include any amount which (but for this subsection) would be includible in gross income by reason of the discharge (in whole or in part) of any student loan if such discharge was pursuant to a provision of such loan under which all or part of the indebtedness of the individual would be discharged if the individual worked for a certain period of time in certain professions for any of a broad class of employers.
Paragraph (1) shall not apply to the discharge of a loan made by an organization described in paragraph (2)(D) if the discharge is on account of services performed for either such organization.
In the case of an individual, gross income shall not include any amount received under section 338B(g) of the Public Health Service Act, under a State program described in section 338I of such Act, or under any other State loan repayment or loan forgiveness program that is intended to provide for the increased availability of health care services in underserved or health professional shortage areas (as determined by such State).
Subparagraph (C) of subsection (a)(1) shall apply only if the discharge is by a qualified person.
For purposes of subparagraph (A), the term “qualified person” has the meaning given to such term by section 49(a)(1)(D)(iv); except that such term shall include any Federal, State, or local government or agency or instrumentality thereof.
For purposes of subparagraph (A), the term “adjusted tax attributes” means the sum of the tax attributes described in subparagraphs (A), (B), (C), (D), (F), and (G) of subsection (b)(2) determined by taking into account $3 for each $1 of the attributes described in subparagraphs (B), (C), and (G) of subsection (b)(2) and the attribute described in subparagraph (F) of subsection (b)(2) to the extent attributable to any passive activity credit carryover.
For purposes of this paragraph, the term “qualified property” means any property which is used or is held for use in a trade or business or for the production of income.
For purposes of this paragraph, the adjusted basis of any qualified property and the amount of the adjusted tax attributes shall be determined after any reduction under subsection (b) by reason of amounts excluded from gross income under subsection (a)(1)(B).
The amount excluded from gross income by reason of subsection (a)(1)(E) shall be applied to reduce (but not below zero) the basis of the principal residence of the taxpayer.
For purposes of this section, the term “qualified principal residence indebtedness” means acquisition indebtedness (within the meaning of section 163(h)(3)(B), applied by substituting “$750,000 ($375,000” for “$1,000,000 ($500,000” in clause (ii) thereof and determined without regard to the substitution described in section 163(h)(3)(F)(i)(II)) with respect to the principal residence of the taxpayer.
Subsection (a)(1)(E) shall not apply to the discharge of a loan if the discharge is on account of services performed for the lender or any other factor not directly related to a decline in the value of the residence or to the financial condition of the taxpayer.
If any loan is discharged, in whole or in part, and only a portion of such loan is qualified principal residence indebtedness, subsection (a)(1)(E) shall apply only to so much of the amount discharged as exceeds the amount of the loan (as determined immediately before such discharge) which is not qualified principal residence indebtedness.
For purposes of this subsection, the term “principal residence” has the same meaning as when used in section 121.
For purposes of subparagraph (A), if any debt instrument is issued by an issuer and the proceeds of such debt instrument are used directly or indirectly by the issuer to reacquire an applicable debt instrument of the issuer, the debt instrument so issued shall be treated as issued for the debt instrument being reacquired. If only a portion of the proceeds from a debt instrument are so used, the rules of subparagraph (A) shall apply to the portion of any original issue discount on the newly issued debt instrument which is equal to the portion of the proceeds from such instrument used to reacquire the outstanding instrument.
The term “debt instrument” means a bond, debenture, note, certificate, or any other instrument or contractual arrangement constituting indebtedness (within the meaning of section 1275(a)(1)).
The term “acquisition” shall, with respect to any applicable debt instrument, include an acquisition of the debt instrument for cash, the exchange of the debt instrument for another debt instrument (including an exchange resulting from a modification of the debt instrument), the exchange of the debt instrument for corporate stock or a partnership interest, and the contribution of the debt instrument to capital. Such term shall also include the complete forgiveness of the indebtedness by the holder of the debt instrument.
The determination of whether a person is related to another person shall be made in the same manner as under subsection (e)(4).
If a taxpayer elects to have this subsection apply to an applicable debt instrument, subparagraphs (A), (B), (C), and (D) of subsection (a)(1) shall not apply to the income from the discharge of such indebtedness for the taxable year of the election or any subsequent taxable year.
In the case of the death of the taxpayer, the liquidation or sale of substantially all the assets of the taxpayer (including in a title 11 or similar case), the cessation of business by the taxpayer, or similar circumstances, any item of income or deduction which is deferred under this subsection (and has not previously been taken into account) shall be taken into account in the taxable year in which such event occurs (or in the case of a title 11 or similar case, the day before the petition is filed).
In the case of a partnership, any income deferred under this subsection shall be allocated to the partners in the partnership immediately before the discharge in the manner such amounts would have been included in the distributive shares of such partners under section 704 if such income were recognized at such time. Any decrease in a partner’s share of partnership liabilities as a result of such discharge shall not be taken into account for purposes of section 752 at the time of the discharge to the extent it would cause the partner to recognize gain under section 731. Any decrease in partnership liabilities deferred under the preceding sentence shall be taken into account by such partner at the same time, and to the extent remaining in the same amount, as income deferred under this subsection is recognized.