Hopkinton is a town in Middlesex County, Massachusetts, United States, 25 miles west of Boston. The town is best known as the starting point of the Boston Marathon, held annually on Patriots' Day each April, and as the headquarters for the Dell EMC corporation.