Capital improvements increase your home’s value, while a non-eligible repair just returns something to its original condition. Home repairs are never tax deductible. If the roofing expenses are apart of your solar capital improvement, they increase the cost basis of the property.
A qualified home improvement is ultimately tax deductible, but not in the year the expense is incurred. These costs must be capitalized and will be added to the cost basis of your home, which reduces your gain on the sale of your home.
See IRS publication 530 for information on deducting home expenses.
https://www.irs.gov/pub/irs-pdf/p530.pdf
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"