Opposition Leader Bill Shorten has explicitly ruled out forming a coalition government with the Greens in a bid to defuse voter fears of a rerun of the Gillard-era hung parliament.

Greens Treasury spokesman Adam Bandt said on Monday the Greens were open to forming government with Labor if neither side emerged with a clear majority in the House of Representatives on July 2.

On the ABC's Q&A, the Greens' only lower house MP said the parties' previous cooperation in 2010 was "one of the most productive periods" in Australian politics.