Deductions & credits

The REC reduces the basis which increases the gain (or reduces loss - not deductible) on sale. the fact that you couldn't use all of it in the year it arises is a different issue. 

 

or are you thinking of the first time home buyer credit which had to be repaid with any unpaid balance due in the year of sale