The cost of living in Gloucester, Massachusetts is 30.3% more expensive than Farmington, New Hampshire.