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