$10,000 invested in the S&P 500 at the beginning of 2000 would have grown to $32,527 over 20 years — an average return of 6.07% per year.