Hi there - and welcome to the cheatgame.info community!
I’m not a tax expert, but it’s my understanding that in some cases, if one is going to use the sale proceeds for the purchase of their next primary residence they may not have a gain to report. However, the rule is that one would have to have lived in the house 2 out of the last 5 years. Otherwise, any gain above what you paid would be added to one’s income.
This resource has some good information:
I strongly suggest that you enlist the help of a licensed expert who can get a holistic view of your current financial situation. This resource can help you locate a tax professional:
Best of luck and please keep us posted!