 They don't have to be consecutive years, just any two. Also, you can't do it every year. Nope. You can only get the capital gains exclusion once every two years. But that's not too bad. OK, but you might be thinking, what if I made more profit than that? Well, first of all, well done.