Lexington is a town in Middlesex County, Massachusetts, United States. The population was 31,394 at the 2010 census, in nearly 11,100 households.