Investors on the Australian share market have finished the session with gains, despite Donald Trump’s threat to contest the results of the US presidential election.

The S&P/ASX200 benchmark index closed higher by 77.5 points, or 1.28 per cent, to 6139.6 on Thursday, as Democrat challenger Joe Biden looked the likely winner and vote counting continued.

The All Ordinaries closed higher by 79 points, or 1.26 per cent, to 6344.

Health was the top sector and gained 2.79 per cent.

Court challenges to the election results could delay politicians providing fiscal stimulus to the economy, which investors have been keenly anticipating.

The Aussie dollar was buying 71.63 US cents at 1620 AEDT, higher from 71.21 US cents at the close of trade on Wednesday.