It's expensive to live in San Francisco — and even more costly to raise your kids there.

The average annual cost of raising a child in the Bay Area is nearly double what Americans typically pay, according to an analysis of 381 cities by financial advice platform SmartAsset.