Selling property converted from primary to rental
I purchased a property in 2021 as a primary residence for $500k. During 2022 I moved for a job and decided to rent the property instead of selling. At the time of conversion the property was worth ~$525k and I took depreciation for 2022 based on that amount. If I were to sell the property in 2023, what would the tax implications be? How is the “gain” from $500 to $525 treated, and then the depreciation factored in?