Member   Party   Years   Cong  Electoral history   District area (counties and municipalities)     District created March 4, 1789     Elbridge Gerry (Marblehead )  Anti-Administration  March 4, 1789 –  1st 2nd  Elected in 1788 .Re-elected in 1790 .1789–1793 Middlesex County : All    Shearjashub Bourne (Boston )  Pro-Administration   General ticket :3rd  Redistricted from the 5th district re-elected in 1793  on the second ballot, as part of a two-seat general ticket, representing the district from Barnstable , Dukes , and Nantucket  counties.[data missing     1793–1795 Barnstable County : AllBristol County : AllDukes County : AllNantucket County : AllPlymouth County : All    Peleg Coffin Jr. (Boston )  Pro-Administration   Elected in 1792 , as part of a two-seat general ticket, representing the district from Bristol  and Plymouth  counties.5th district    Samuel Lyman (Hampshire County )  Federalist  March 4, 1795 –  4th 5th 6th  Elected in 1794 .Re-elected in 1796 .Re-elected in 1798 .1795–1803 Hampshire County : Amherst , Belchertown , Brimfield , Granby , Greenwich , Holland , Leverett , Longmeadow , Ludlow , New Salem , Orange , Palmer , Pelham , Shutesbury , South Brimfield , South Hadley , Springfield , Ware , Warwick , Wendell , and Wilbraham .Worcester County : Athol , Barre , Gardner , Gerry , Hardwick , New Braintree , Petersham , Royalston , Sturbridge , Templeton , Western , Winchendon     Vacant  November 7, 1800 –  6th       Ebenezer Mattoon (Amherst )  Federalist  February 2, 1801 –  6th 7th  Elected November 3, 1800, to the next term .Elected December 15, 1800, to finish Lyman's term .   Manasseh Cutler (Hamilton )  Federalist  March 4, 1803 –  8th  Redistricted from the 11th district re-elected in 1802 .  1803–1813 Essex County : Amesbury , Andover , Boxford , Bradford , Hamilton , Haverhill , Ipswich , Methuen , Middleton , Newbury , Newburyport , Rowley , Salisbury , Topsfield     Jeremiah Nelson (Newburyport )  Federalist  March 4, 1805 –  9th  Elected in 1804 .   Edward St. Loe Livermore (Newburyport )  Federalist  March 4, 1807 –  10th 11th  Elected in 1806 .Re-elected in 1808 .   Leonard White (Haverhill )  Federalist  March 4, 1811 –  12th  Elected in 1810 .   Timothy Pickering (Wendham )  Federalist  March 4, 1813 –  13th  Elected in 1812 .2nd district 1813–1815 Essex County : Beverly , Boxford , Bradford , Gloucester , Hamilton , Ipswich , Manchester , Newbury , Newburyport , Rowley , Salisbury , Topsfield , Wenham     Jeremiah Nelson (Newburyport )  Federalist [ a] March 4, 1815 –  14th 15th 16th 17th 18th  Elected to begin member-elect Daniel A. White's term .Re-elected in 1817 .Re-elected in 1818 .Re-elected in 1820 .Re-elected in 1822 .1815–1817 Essex County : Amesbury , Andover , Boxford , Bradford , Hamilton , Haverhill , Ipswich , Methuen , Middleton , Newbury , Newburyport , Rowley , Salisbury , Saugus , and Topsfield .Middlesex County : South Reading     1817–1823 Essex County : Amesbury , Andover , Boxford , Bradford , Hamilton , Haverhill , Ipswich , Methuen , Middleton , Newbury , Newburyport , Rowley , Salisbury , Saugus , Topsfield , and West Newbury .Middlesex County : Dracut     1823–1833 Essex County : Amesbury , Andover , Boxford , Bradford , Essex , Hamilton , Haverhill , Ipswich , Methuen , Middleton , Newbury , Newburyport , Rowley , Salisbury , Topsfield , Wenham , and West Newbury .Middlesex County : Billerica , Dracut , Tewksbury , Wilmington     John Varnum (Haverhill )  Anti-Jacksonian  March 4, 1825 –  19th 20th 21st  Elected in 1825 .Re-elected in 1826 .Re-elected in 1828 .   Jeremiah Nelson (Essex )  Anti-Jacksonian  March 4, 1831 –  22nd  Elected late in 1832  on the thirteenth ballot.   Gayton P. Osgood (North Andover )  Jacksonian  March 4, 1833 –  23rd  Elected in 1833 .1833–1843 Essex County : Amesbury , Andover , Boxford , Bradford , Haverhill , Methuen , Middleton , Newbury , Newburyport , Rowley , Salisbury , Topsfield , and West Newbury .Middlesex County : Dracut , Lowell , Reading , Tewksbury , South Reading , Wilmington     Caleb Cushing (Newburyport )  Anti-Jacksonian  March 4, 1835 –  24th 25th 26th 27th  Elected in 1834 .Re-elected in 1836 .Re-elected in 1838 .Re-elected in 1840 .   Whig  March 4, 1837 –    Amos Abbott (Andover )  Whig  March 4, 1843 –  28th 29th 30th  Elected late in 1844 on the seventh ballot .Re-elected in 1846 .1843–1853 
Essex County : Amesbury , Andover , Boxford , Bradford , Georgetown , Haverhill , Methuen , Newbury , Newburyport , Rowley , Salisbury , and West Newbury .Middlesex County : Billerica , Carlisle , Chelmsford , Dracut , Dunstable , Groton , Littleton , Lowell , Tewksbury , Tyngsborough , Westford , Wilmington [ 5]    James H. Duncan (Haverhill )  Whig  March 4, 1849 –  31st 32nd  Elected in 1848 .Re-elected in 1850 .[data missing      J. Wiley Edmands (Lawrence )  Whig  March 4, 1853 –  33rd  Elected in 1852 .1853–1863 Norfolk County : Bellingam , Braintree , Canton , Dedham , Dorchester , Dover , Foxborough , Franklin , Medfield , Medway , Milton , Needham , Quincy , Randolph , Sharon , Stoughton , Walpole , West Roxbury , Weymouth , and Wrentham .Middlesex County : Brighton , Holliston , Newton , Sherborn , and Watertown .Worcester County : Blackstone , Mendon , Milford , Northbridge , Upton , Uxbridge     William S. Damrell (Dedham )  Know Nothing  March 4, 1855 –  34th 35th  Elected in 1854 .Re-elected in 1856 .   Republican  March 4, 1857 –    Charles Adams (Quincy )  Republican  March 4, 1859 –  36th 37th  Elected in 1858 .Re-elected in 1860 .U.S. Minister to England .    Vacant  May 1, 1861 –  37th     Benjamin Thomas [ 6] (Boston )  Union  June 11, 1861 –  Elected to finish Adams's term .   Alexander H. Rice (Boston )  Republican  March 4, 1863 –  38th 39th  Redistricted from the 4th district re-elected in 1862 .Re-elected in 1864 .  1863–1867 Norfolk County : Roxbury , and Brookline .Suffolk County : Boston  (wards 4, 7, 8, 10 through 12)    Ginery Twichell (Brookline )  Republican  March 4, 1867 –  40th 41st 42nd  Elected in 1866 .Re-elected in 1868 .Re-elected in 1870 .1867–1873 Norfolk County : Roxbury , and Brookline .Suffolk County : Boston  (wards 5, 7, 8, 10 through 12)[ 7]    William Whiting (Boston )  Republican  March 4, 1873 –  43rd  Elected in 1872 .1873–1877 Suffolk County : Boston  (wards 7, 8, 10 through 16)    Vacant  June 29, 1873 –    Henry L. Pierce (Boston )  Republican  December 1, 1873 –  43rd 44th  Elected to finish Whiting's term .Re-elected in 1874 .   Walbridge A. Field (Boston )  Republican  March 4, 1877 –  45th  [data missing  1877–1883 Suffolk County : Boston  (wards 13 through 21, 24)[ 8]    Benjamin Dean [ 9] (Boston )  Democratic  March 28, 1878 –  Won election contest .   Walbridge A. Field (Boston )  Republican  March 4, 1879 –  46th  Elected in 1878 .   Ambrose Ranney [ 10] (Boston )  Republican  March 4, 1881 –  47th 48th 49th  Elected in 1880 .Re-elected in 1882 .Re-elected in 1884 .   1883–1893 Norfolk County : Milton .Suffolk County : Boston  (ward 11, ward 15 (Pct. 3 & 4), wards 17-24)[ 11]    Leopold Morse (Boston )  Democratic  March 4, 1887 –  50th  Elected in 1886 .   John F. Andrew (Boston )  Democratic  March 4, 1889 –  51st 52nd  Elected in 1888 .Re-elected in 1890 .   Joseph H. Walker [ 12] (Worcester )  Republican  March 4, 1893 –  53rd 54th 55th  Redistricted from the 10th district re-elected in 1892 .Re-elected in 1894 .Re-elected in 1896 .  1893–1903 
Middlesex County : Hopkinton .Worcester County : Auburn , Blackstone , Charlton , Douglas , Dudley , Grafton , Holden , Leicester , Mendon , Millbury , Northbridge , Oxford , Paxton , Rutland , Shrewsbury , Southbrige , Spencer , Sturbridge , Sutton , Upton , Uxbridge , Webster , Westborough , West Boylston , Worcester     John R. Thayer [ 13] (Worcester )  Democratic  March 4, 1899 –  56th 57th 58th  Elected in 1898 .Re-elected in 1900 .Re-elected in 1902 .   1903–1913 Worcester County : Auburn , Charlton , Douglas , Dudley , Grafton , Holden , Leicester , Millbury , Northbridge , Oxford , Paxton , Rutland , Shrewsbury , Southbrige , Spencer , Sturbridge , Sutton , Uxbridge , Webster , Westborough , West Boylston , Worcester     Rockwood Hoar (Worcester )  Republican  March 4, 1905 –  59th  Elected in 1904 .   Vacant  November 1, 1906 –  59th     Charles G. Washburn [ 14] (Worcester )  Republican  December 18, 1906 –  59th 60th 61st  Elected to finish Hoar's term .Re-elected in 1906 .Re-elected in 1908 .   John A. Thayer (Worcester )  Democratic  March 4, 1911 –  62nd  Elected in 1910 .   William H. Wilder (Gardner )  Republican  March 4, 1913 –  63rd  Redistricted from the 4th district re-elected in 1912 .  1913–1927 Franklin County : New Salem , and Orange .Hampshire County : Greenwich , and Prescott .Middlesex County : Ashby , and Townsend .Hampden County : Brimfield , Holland , Monson , Palmer , and Wales .Worcester County : Ashburnham , Athol , Barre , Boylston , Brookfield , Charlton , Clinton , Dana , Dudley , East Brookfield , Fitchburg , Gardner , Hardwick , Holden , Hubbardston , Lancaster , Leicester , Leominster , Lunenburg , New Braintree , North Brookfield , Oakham , Oxford , Paxton , Petersham , Phillipston , Princeton , Royalston , Rutland , Southbrige , Spencer , Sterling , Sturbridge , Templeton , Warren , Webster , West Boylston , West Brookfield , Westminster , Winchendon [ 15]    Vacant  September 11, 1913 –    Calvin Paige (Southbridge )  Republican  November 4, 1913 –  63rd 64th 65th 66th 67th 68th  Elected to finish Wilder's term .Re-elected in 1914 .Re-elected in 1916 .Re-elected in 1918 .Re-elected in 1920 .Re-elected in 1922 .   Frank H. Foss (Fitchburg )  Republican  March 4, 1925 –  69th 70th 71st 72nd 73rd  Elected in 1924 .Re-elected in 1926 .Re-elected in 1928 .Re-elected in 1930 .Re-elected in 1932 .   1927–1933 Franklin County : Erving , New Salem , Orange , Shutesbury , Warwick , and Wendell .Hampden County : Brimfield , Holland , Monson , Palmer , and Wales .Hampshire County : Belchertown , Enfield , Greenwich , Pelham , Prescott , and Ware .Worcester County : Ashburnham , Athol , Barre , Boylston , Brookfield , Charlton , Clinton , Dana , Dudley , East Brookfield , Fitchburg , Gardner , Hardwick , Holden , Hubbardston , Lancaster , Leicester , Leominster , Lunenburg , New Braintree , North Brookfield , Oakham , Oxford , Paxton , Petersham , Phillipston , Princeton , Royalston , Rutland , Southbrige , Spencer , Sterling , Sturbridge , Templeton , Warren , Webster , West Boylston , West Brookfield , Westminster , Winchendon     1933–1943 Hampden County : Brimfield , Holland , Monson , Palmer , and Wales .Hampshire County : Ware .Middlesex County : Ashby , Boxborough , Framingham , Hudson , Marlborough , Maynard , Pepperell , Shirley , Stow , Sudbury , Townsend , and Wayland .Worcester County : Ashburnham , Barre , Berlin , Bolton , Brookfield , Charlton , Clinton , Dana , Dudley , East Brookfield , Fitchburg , Gardner , Hardwick , Harvard , Hubbardston , Lancaster , Leicester , Leominster , Lunenburg , New Braintree , North Brookfield , Oakham , Oxford , Paxton , Petersham , Phillipston , Princeton , Rutland , Southbrige , Spencer , Sterling , Sturbridge , Templeton , Warren , Webster , West Brookfield , Westminster , Winchendon     Joseph E. Casey (Clinton )  Democratic  January 3, 1935 –  74th 75th 76th 77th  Elected in 1934 .Re-elected in 1936 .Re-elected in 1938 .Re-elected in 1940 .run for U.S. Senator .    Philip J. Philbin [ 16] (Clinton )  Democratic  January 3, 1943 –  78th 79th 80th 81st 82nd 83rd 84th 85th 86th 87th 88th 89th 90th 91st  Elected in 1942 .Re-elected in 1944 .Re-elected in 1946 .Re-elected in 1948 .Re-elected in 1950 .Re-elected in 1952 .Re-elected in 1954 .Re-elected in 1956 .Re-elected in 1958 .Re-elected in 1960 .Re-elected in 1962 .Re-elected in 1964 .Re-elected in 1966 .Re-elected in 1968 .1943–1963 Hampden County : Palmer .Hampshire County : Ware .Middlesex County : Hudson , Marlborough , Maynard , Shirley , and Stow .Worcester County : Ashburnham , Barre , Blackstone , Bolton , Brookfield , Charlton , Clinton , Douglas , Dudley , East Brookfield , Fitchburg , Gardner , Hardwick , Harvard , Hubbardston , Lancaster , Leicester , Leominster , Lunenburg , Milford , Millbury , Millville , New Braintree , Northbridge , North Brookfield , Oakham , Oxford , Paxton , Princeton , Rutland , Southbrige , Spencer , Sturbridge , Sutton , Upton , Uxbridge , Warren , Webster , West Brookfield , Westminster , Winchendon     1963–1973 Worcester County : Ashburnham , Barre , Berlin , Blackstone , Bolton , Charlton , Clinton , Douglas , Dudley , Fitchburg , Gardner , Hardwick , Harvard , Hopedale , Hubbardston , Lancaster , Leicester , Leominster , Lunenburg , Mendon , Milford , Millbury , Millville , New Braintree , Northbridge , Oakham , Oxford , Paxton , Princeton , Rutland , Southbrige , Spencer , Sterling , Sutton , Upton , Uxbridge , Webster , Westminster , and Winchendon .Middlesex County : Acton , Ashby , Ayer , Boxborough , Dunstable , Groton , Holliston , Hudson , Littleton , Marlborough , Maynard , Natick , Pepperell , Sherborn , Shirley , Stow , Townsend , Tyngsborough , and Westford .Norfolk County : Bellingham , Franklin , Medway , Millis     1969–1973 Middlesex County : Acton , Ashby , Ayer , Boxborough , Concord , Hudson , Lincoln , Littleton , Marlborough , Maynard , Newton , Shirley , Stow , Townsend , Waltham , Watertown , Westford , and Weston .Worcester County : Ashburnham , Berlin , Bolton , Clinton , Fitchburg , Gardner , Harvard , Lancaster , Leominster , Lunenburg , Sterling , Westminster , Winchendon     Robert Drinan (Newton )  Democratic  January 3, 1971 –  92nd  Elected in 1970 .4th district    Harold Donohue (Worcester )  Democratic  January 3, 1973 –  93rd  Redistricted from the 4th district re-elected in 1972 .  1973–1983 Middlesex County : Ashland , Holliston , Hopkinton , Hudson , and Marlborough .Norfolk County : Bellingham , Franklin , and Medway .Worcester County : Auburn , Berlin , Blackstone , Boylston , Clinton , Grafton , Hopedale , Leicester , Mendon , Milford , Millbury , Millville , Northborough , Northbridge , Shrewsbury , Southborough , Sutton , Upton , Uxbridge , Westborough , West Boylston , Worcester [ 17]    Vacant  December 31, 1974 –    Joseph D. Early [ 18] (Worcester )  Democratic  January 3, 1975 –  94th 95th 96th 97th 98th 99th 100th 101st 102nd  Elected in 1974 .Re-elected in 1976 .Re-elected in 1978 .Re-elected in 1980 .Re-elected in 1982 .Re-elected in 1984 .Re-elected in 1986 .Re-elected in 1988 .Re-elected in 1990 .   1983–1993 Middlesex County : Ashland , Holliston , Hopkinton , Hudson , Marlborough , Sherborn , and Stow .Norfolk County : Bellingham , Franklin , Medway , Millis , Norfolk [ 19] Worcester County : Auburn , Berlin , Blackstone , Bolton , Boylston , Clinton , Douglas , Grafton , Hopedale , Lancaster , Leicester , Lunenburg , Mendon , Milford , Millbury , Millville , Northborough , Northbridge , Shrewsbury , Southborough , Sutton , Upton , Uxbridge , Westborough , West Boylston , Worcester     Peter Blute (Shrewsbury )  Republican  January 3, 1993 –  103rd 104th  Elected in 1992 .Re-elected in 1994 .1993–2003 Bristol County : Attleboro , Dartmouth , Fall River  (all of wards 1, 2 & 3, ward 6 pcts. A & B, ward 4 pct. A, parts of B & C), Mansfield  (pcts. 1, 2 & parts of 3 & 4), North Attleboro , Seekonk , Somerset , Swansea , and Westport .[ 19] Middlesex County : Holliston , and Hopkinton .Norfolk County : Foxborough  (pct. 5, parts of pcts. 1, 3, 4), Franklin , Medway , Plainville , and Wrentham .Worcester County : Auburn  (parts of pcts. 1, 3 & 4), Berlin , Boylston , Clinton , Grafton , Holden , Lancaster  (parts of pcts. 1 & 2), Northborough , Northbridge , Paxton , Princeton , Rutland , Shrewsbury , Sterling , Upton , Westborough , West Boylston , Worcester [ 20]    Jim McGovern (Worcester )  Democratic  January 3, 1997 –  105th 106th 107th 108th 109th 110th 111th 112th  Elected in 1996 .Re-elected in 1998 .Re-elected in 2000 .Re-elected in 2002 .Re-elected in 2004 .Re-elected in 2006 .Re-elected in 2008 .Re-elected in 2010 .2nd district    2003–2013 
Bristol County : Attleboro , Fall River  (wards 1-3; ward 4, Precincts A & B; ward 5, Precincts A & B; ward 6, Precincts B & C; & ward 8, Precinct D), North Attleborough , Rehoboth , Seekonk , Somerset , and Swansea .Middlesex County : Ashland , Holliston , Hopkinton , and Marlborough .Norfolk County : Franklin , Medway , Plainville , and Wrentham .Worcester County : Auburn , Boylston , Clinton , Holden , Northborough , Paxton , Princeton , Rutland , Shrewsbury , Southborough , West Boylston , Westborough , and Worcester .     Niki Tsongas (Lowell )  Democratic  January 3, 2013 –  113th 114th 115th  Redistricted from the 5th district re-elected in 2012 .Re-elected in 2014 .Re-elected in 2016 .  2013–present See Cities and towns in the district , above     Lori Trahan (Westford )  Democratic  January 3, 2019 –  116th 117th 118th 119th  Elected in 2018 .Re-elected in 2020 .Re-elected in 2022 .Re-elected in 2024 .