The district was created in the 1994 electoral reform from parts of the previous 1st district where six representatives had been elected by single-non-transferable vote. Representatives from the old 1st district included Kingo Machimura and his son Nobutaka Machimura.
Nobutaka Machimura (LDP, Machimura faction) safely won the new 5th district in the 1996 election and defended it against Democratic challenger Chiyomi Kobayashi in subsequent elections. However, the Democratic Party won the general election of 2009 handily, and Kobayashi defeated Machimura by 30,000 votes. In response to a political funds scandal, she resigned in June 2010.[3] Machimura resigned from his seat in the Hokkaidō proportional block to run in the resulting by-election in October 2010 and defeated former construction ministry bureaucrat Shigeyuki Nakamae by a clear margin to regain his district seat.[4]
In the 24 April 2016 by-election, Machimura's son-in-law, Liberal Democrat Yoshiaki Wada (Kōmeitō, Kokoro, Daichi) defeated united opposition independent Maki Ikeda (DP, JCP, SDP, PLP).[5][6] Wada held the seat until he lost to Ikeda in the 2024 election. Wada was accused of receiving 'dark money' in the 2023–2024 Japanese slush fund scandal. Subsequently, the LDP did not allow Wada to run in the Hokkaidō PR block and he lost his seat in the Diet.[7]
^衆議院北海道第5区選出議員補欠選挙投・開票速報 [House of Representatives - Hokkaido 5th district by-election early returns.] (in Japanese). 24 April 2016. Retrieved 27 April 2016.