Does the cost basis of a second home include the costs spent on improvements to the home such as (new roof, new deck, etc)?

Sold a second home that was not a rental property or inherited. Trying to determine if capital improvements can be deducted from the cost basis for capital gains. If so, is there a list of example improvements that can be deducted.