Selling your home and avoiding capital gains on the sale

Purchased second home in 2024 before selling my first home. What are my tax implications when I sell the first home purchased in 2011? Currently, the home I purchased in 2024 is my primary and the home purchased in 2011 is listed as a rental.