You can claim the tax credit if the solar panels are new and the builder has not already claimed the credit. If you buy a resale home with pre-owned panels already installed, you cannot claim the tax credit. Qualifying solar panel installations must be new or being used for the first time.