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