Gains are tax deferred. If you still worry about tax (lol), you can invest in opportunity zone. There are some risk (but you have money), after 10 yrs, your captial gains are totally tax free.