Selling primary home in 14 months of purchase due to work location change

Hi , I am selling my primary home in 14 months of my purchase due to change in work location to another state, Will I get a tax exemption for the capital gains in this situation? My gains would be around $300K.

Note: I sold my previous primary home in 2022 after living the for 5 years.

 

Thank You!