My job transferred me after purchasing a home 11 months ago. I made a profit on the home. Will I have to pay capital gains tax or is there a way for me to avoid it?

I purchased a new home 3 weeks ago.