Born in Chicago, Illinois, Rainey attended the public schools of his native city, De La Salle Institute, and the Kent College of Law.
He was admitted to the bar in 1910 and commenced the practice of law in Chicago.
Rainey served as assistant judge of the probate court of Cook County 1910–1912, and served as clerk of the circuit court 1912–1916.