M-MTax
Level 15

Get your taxes done using TurboTax

Your eligibility for the exclusion is based on actually having a gain. Thus, then title of the Statute:

 

26 U.S. Code § 121 - Exclusion of gain from sale of principal residence