Sell of Rental Property

I sold rental property in 2020.  A few months prior to the sale I made improvements on the property.  How to I handle the cost of the improvement.  Can I add it to the cost of sale for the cost basis?