A stock index is a benchmark, which measures the performance of several stocks. For example, the well-known S&P 500 includes the 500 largest companies listed on stock exchanges in the United States.