It is a remarkable turnabout for an investment that many have long regarded as one of the safest of all. The decline has been so swift that some Wall Street analysts are declaring the end of a golden age of gold. The stakes are high: the last time the metal went through a patch like this, in the 1980s, its price took 30 years to recover.

What went wrong? The answer, in part, lies in what went right. Analysts say gold is losing its allure after an astonishing 650 percent rally from August 1999 to August 2011. Fast-money hedge fund managers and ordinary savers alike flocked to gold, that haven of havens, when the world economy teetered on the brink in 2009. Now, the worst of the Great Recession has passed. Things are looking up for the economy and, as a result, down for gold. On top of that, concern that the loose monetary policy at Federal Reserve might set off inflation — a prospect that drove investors to gold — have so far proved to be unfounded.

And so Wall Street is growing increasingly bearish on gold, an investment that banks and others had deftly marketed to the masses only a few years ago. On Wednesday, Goldman Sachs became the latest big bank to predict further declines, forecasting that the price of gold would sink to $1,390 within a year, down 11 percent from where it traded on Wednesday. Société Générale of France last week issued a report titled, “The End of the Gold Era,” which said the price should fall to $1,375 by the end of the year and could keep falling for years.

Granted, gold has gone through booms and busts before, including at least two from its peak in 1980, when it traded at $835, to its high in 2011. And anyone who bought gold in 1999 and held on has done far better than the average stock market investor. Even after the recent decline, gold is still up 515 percent.