The cost of living in San Francisco, California is 87.1% more expensive than Gloucester, Massachusetts.