In November 2008, He defeated two-term Republican Ruth Munson in the heavily-Republican 43rd representative district of the Illinois House of Representatives, winning by 322 votes. Farnham was in the Illinois House from January 2009 to March 2014. The district included portions of Elgin, Carpentersville, East Dundee and South Elgin.