Although index funds help to diversify your investments (which can offset risk), all investments can be risky. But investing in a total market index fund over a long period of time is as close to guaranteed success as you’re going to get. There isn’t a single 20-year period in the S&P 500’s history when it lost money.