First, you can use a tax-protected retirement account to avoid paying capital gains taxes on the proceeds from your stock sales. As long as you keep the proceeds in the account and resist the urge to make premature withdrawals, you can grow your retirement savings on a tax-free basis for an indefinite period of time.
However, your retirement account may be subject to certain contribution limits. If you’re under the age of 50, you can contribute just $5,000 per year into your tax-protected IRA account. If you’re over the age of 50, you may be able to contribute as much as $6,000 into your account. Before you make any contributions, be sure to check with a licensed tax professional.