The United States was confirmed as host of the men's showpiece event in 2031 and will stage the women's tournament two years later.
The hosts were finalised following a World Rugby Council meeting in Dublin.
"This is a historic day for rugby in Australia. We are beyond thrilled to be welcoming not one, but two World Cups to our shores," Rugby Australia Chairman Hamish McLennan said.