This article walks through the rules of the capital gains tax and then discusses ways to avoid paying it.