Australian shares ended higher on Thursday after trading in a tight range for most of the session as a burst of late buying after the bell propped up large cap stocks, boosting the index.

The S&P/ASX 200 index was little changed in late trade, but rose 0.3 per cent, or 17 points to 5,795.30 at the close of trade. The benchmark had gained nearly 1 per cent on Wednesday.

"There was some buying in the post market option, mainly the large cap stocks leading the drive... materials and financials spaces added about 0.3 per cent," said Kyle Rodda, market analyst at IG Markets. "In the post-market option, you get some very large institutional players looking to get some exposure to the ASX... and the market was at a level they saw as attractive."

The financial sub-index which accounts for a big number of the large cap stocks rose 0.2 per cent. Australia and New Zealand Banking Group Ltd rose 0.6 per cent while Westpac Banking Corp and Commonwealth Bank of Australia also ticked up.

The metals and mining index jumped 0.8 per cent, with Rio Tinto edging higher while Newcrest Mining added 1.8 per cent.

Meanwhile, the world's biggest listed miner BHP Group, which had slumped as much as 5 per cent in early trade to weigh on the index, recovered slightly to close 3.4 per cent lower.

Rodda added that sustained buying by large investors may help push the index past the critical 5,800 resistance level in the coming sessions.

Gold stocks surged 2.4 percent boosted by a jump in gold prices, with Saracen Mineral Holdings rising 2 per cent and AngloGold Ashanti Ltd among top gainers, up 5.6 per cent.

Growing expectations that the US Federal Reserve will pause its rate tightening cycle this year weighed on the dollar, boosting the attraction of gold as a safe-haven investment.

Energy stocks continued their rally, up about 0.7 per cent with Woodside Petroleum up 0.6 per cent and Oil Search firming 1.5 per cent.

Healthcare stocks too rose, boosted by gains in stocks of CSL and Cochlear.

However, investors were cautious as they awaited more detail on the outcome of talks in Beijing between US and Chinese officials aimed at de-escalating a damaging trade war.

Subdued by that caution, New Zealand's benchmark S&P/NZX 50 index closed 0.3 per cent, or 28.06 points, lower at 8,919.16.

Benchmark heavyweight a2 Milk Company Ltd fell 1.1 per cent while outdoor equipment retailer Kathmandu Holdings Ltd lost 1.3 per cent.