The cost of living in Hopkinton, Massachusetts is 20.5% more expensive than Portsmouth, New Hampshire.