Wall Street rallies on tax reform hopes

US stocks have ended the day higher, with each of the three major indices posting their best one-day percentage gains in over a week, as politicians' comments on tax reform and the debt ceiling boosted investor optimism.

The gain on Tuesday comes a day after US House Speaker Paul Ryan told a CNN town hall that tax reform would be easier to pass than the failed healthcare overhaul because Republicans have built a consensus.

Separately, Senate Majority Leader Mitch McConnell said there was "zero chance" that the United States will fail to raise the debt ceiling in September, allaying concerns that the United States is poised to default on its debt, according to media reports.

"Definitely part of today's movement is rumblings of the potential for tax reform or tax repatriation," said Eric Freedman, chief investment officer at US Bank Wealth Management in Minneapolis.

"If we have more of a messy debt ceiling debate and sides become firmly entrenched, that could spell out more difficulty, both within the party and between parties."

Investors are also looking for positive hints on US monetary policy from Federal Reserve Chair Janet Yellen on Friday at the annual central bankers meeting in Jackson Hole, Wyoming, though observers do not expect her to give new guidance.

Absent major news from the White House and a standstill in tensions between the United States and North Korea - two major factors that roiled the market in the past two weeks - investors flocked back to high-flying tech shares.

Gains were broad, with nearly all of the 11 major S&P sectors posting gains. Technology shares led the advance, up 1.5 per cent, notching the first gain in four sessions.

The S&P 500 materials index also jumped more than one per cent, enjoying its best day since mid-June, led by rising commodity and metals prices.

Metals prices, including copper, zinc and nickel, ended higher against a backdrop of strong results for mining firms and talk of shortages in some metals.

The Dow Jones Industrial Average rose 196.14 points, or 0.9 per cent, to 21,899.89, the S&P 500 gained 24.14 points, or 0.99 per cent, to 2,452.51 and the Nasdaq Composite added 84.35 points, or 1.36 per cent, to 6,297.48.

At the close, 335 stocks hit new 52-week highs while 300 hit fresh 52-week lows across all US exchanges, marking the first time in 10 sessions that more stocks have hit highs than lows.

Among stocks, Freeport-McMoRan Inc gained 2.31 per cent on news that Indonesia expects to strike an agreement this month to allow the miner to keep operating its copper mine in Papua.

Macy's Inc rose 4.56 per cent, scoring its best day in nearly seven months, after announcing restructuring and job cuts.