Index funds are a special type of financial vehicle that pools money from investors and invests it in securities such as stocks or bonds. An index fund aims to track the returns of a designated stock market index. A market index is a hypothetical portfolio of securities that represents a segment of the market. For example, the S&P 500 index represents 500 of the largest U.S. companies.