There are options. Google opportunity zone funds for example . But as a poster said above ... find a good accountant - tax planner. This is one area you Don’t need to yourself.