Your adjusted basis is the Purchase price of the home plus the cost of any improvements to the home prior to the sale. However, any home energy credits received for the solar installation must be deducted from the improvement cost of the solar system.