The 2-Out-of-5-Year Rule is a tax law that lets homeowners avoid paying capital gains taxes when they sell their main home. If you're a single filer, you can exclude the first $250,000 from taxation, and if you file jointly, you can exclude up to $500,000. Learn more about the capital gains exemptions.