A member of the Liberal Party, she was elected to the Senate at the 1946 federal election, taking her seat the following year. She was the second woman elected to the Senate, after Dorothy Tangney. Rankin was the Liberal Party's chief whip from 1947 to 1950 and from 1951 to 1966; she remains the longest-serving whip in the party's history, in either chamber of parliament.