Selling a second home

From 1995 to 2013 my home was my primary residence.  From 2014 to 2021 I rented it out because I landed a job out of state and had to move.  Now in 2022 the home is a second home and I still live out-of-state.  If my income this year is less than $40,000 and I decide to sell this year, what would the IRS expect me to pay in Income and more importantly Capital Gains Tax?