If you invested $10,000 which compounded annually at 5%, it would be worth over $40,000 after 30 years, accruing over $30,000 in compounded interest.