 And that is the wonderful benefit you receive when you sell it. Because the laws of the land provide you a tremendous tax break when you sell your primary residence. It's called the capital gains exclusion. And it can save you thousands of dollars when you sell. Here's how it works.