A passive activity loss can be used offset income from an activity in the following year even if the activity is no longer passive. The entire amount of the passive activity loss can be used to offset the gain on the sale.  

Did this answer your question?