Currently, you can defer your capital gains with a qualified opportunity zone fund until the end of the 2026 tax year. Reform legislation is currently being considered that would extend the deferral to 2028, but it may change the nature of the program.