Based on experience and risk tolerance, investors will differ on this question. However, many financial analysts will say the best way to invest $5,000 is to put it in a mutual fund or exchange-traded fund that tracks the S&P 500 and keep it for the long run.