As part of tax reform put into place a couple of years ago, individuals are able to defer both short- and long-term capital gains into what are referred to as Qualified Opportunity Zone Funds (QOFs). What is nice about this is that only the actual amount of gain needs to be invested into a QOF to avoid taxes on the gain for the sale year. The gains invested in a QOF are deferred until you cash out of the QOF investment or December 31, 2026, whichever occurs first.
This includes the gain from the sale of all capital assets, such as stocks or bonds, property, rentals, land, and even partnership interests.
Example: Another example would be if you had inherited vacant land several years ago, and the fair market value of the land at the time you inherited it was $50,000. This year, a grocery chain wants to build a grocery store on the land and purchases it from you for $300,000. As a result of the sale, you have a gain of $250,000 ($300,000 – $50,000). If you invest that $250,000 gain in a QOF within the required 180-day period, you can defer the gain and the tax on the sale.