In May 2018, Gorman was selected as the Labor Party's candidate for the
division of Perth at the
2018 Perth by-election. This came after first-term MP
Tim Hammond resigned from parliament, citing that he wanted to spend more time with his family. The
Liberal Party declined to contest the election. The by-election was held on 28 July, the same day as
4 other by-elections. Gorman won with a primary vote of 38.5%, and a
two-party-preferred vote of 63.1% against
the Greens. Gorman retained his seat at the
2019 Australian federal election. In a January 2021 shadow cabinet reshuffle, Gorman became Shadow Assistant Minister for Western Australia. In October 2021, Gorman announced his support for changing the date of
Australia Day, having previously been against the idea. In addition to the day's negative impact on Indigenous people, he said that Australia Day is "not a date that means much to what became Western Australia". He also said he was wrong not to previously support changing the date.
Albanese government Following the election of the
Albanese government in May 2022, Gorman became the Assistant Minister to the Prime Minister. In May 2023, Gorman became the
Assistant Minister to the Public Service as well. In July 2024, he was appointed
Assistant Minister to the Attorney-General. After the re-election of the Labor government in the
2025 Australian federal election, Gorman retained the posts of Assistant Minister to the Prime Minister and Assistant Minister to the Public Service, was additionally appointed
Assistant Minister for Employment and Workplace Relations, while the post of
Assistant Minister to the Attorney-General lapsed. ==Personal life==