The global economy is doing great ... for now

enablePagination: false
maxItemsPerPage: 10
totalITemsFound:
maxPaginationLinks: 10
maxPossiblePages:
startIndex:
endIndex:

(File photo)

(CNN Money) — Global economic growth is in full swing, but the party could come to an end in a couple of years.

The World Bank just upgraded its forecast for this year after a stronger than expected 2017.

Countries around the world are experiencing a broad upturn that's expected to last for "the next couple of years," the bank said Tuesday in its latest Global Economic Prospects report.

It predicts the global economy will expand 3.1% in 2018, up from the 2.9% it previously forecast in June. That's also faster than the 3% growth the world managed last year, according to the bank.

Related: Europe's economy is firing on all cylinders

The growth spurt has been helped by a turnaround in trade, years of low interest rates and a rebound in oil prices, which have all boosted confidence, according to the bank.

This year will be the first since before the global financial crisis that the world's economy is running at almost its full potential, the report said. That means unemployment is low, productivity is high and inflation is in check, leading to a surge in demand for goods and services among consumers.

But the report warns that growth may soon peak and then start tailing off in 2019 and 2020 as big economies like the U.S., China and the European Union begin to cool.

It predicts the slowdown will come as stimulus measures, such as near-zero interest rates and quantitative easing, begin to lose their effectiveness.

Meanwhile, the world's big economies will also have to contend with aging populations, which will likely reduce their productivity.

Related: News flash! The U.S. economy already looks strong

The World Bank expects about two-thirds of the global economy to be hit by this slowdown.

It advised governments to focus on reforms to healthcare and education and improvements to infrastructure like roads and ports.

"Without efforts to revitalize potential growth, the decline may extend into the next decade," the report warned.

This story was first published on CNN.com, "The global economy is doing great ... for now."