Rankin was elected to the Senate in the 1946 election, as a representative of the Liberal Party. Her term began on 1 July 1947. She was the first woman appointed as Opposition Whip in the Senate and, following the election of the Menzies government in 1949, also served as Government Whip in the Senate.