If you had invested $10,000 in the S&P 500 at the beginning of 1980, you'd have around $1,003,074 according to officialdata.org.
This means your investment returns are in total 9,903.75%, or 11.38% a year.
According to the site, this would let you beat inflation by 2,684.74%, or 8.09% per year.