At the time of writing it seems likely that Labor will soon be able to form a majority government, with wins in at least 75 seats and at least one more a possibility.
But, despite the national swing away from the Coalition, there are vast differences across the country in how people voted. Using data from various sources including our seat explorer and pork-o-meter, Guardian Australia has crunched the numbers to help explain the election result.