What does it take to be rich in the Bay Area? Here's how much you need to make in every city.

Photo: DenisTangneyJr/Getty Images Photo: DenisTangneyJr/Getty Images Image 1 of / 54 Caption Close What does it take to be rich in the Bay Area? Here's how much you need to make in every city. 1 / 54 Back to Gallery

In most parts of the country, a six-figure salary would earn you a comfortable spot in the upper class.

But in the Bay Area? Not so fast.

What it means to be rich depends on many factors: your salary, investments, debt and of course, where you live. A $100,000 income may sound like a lot, but you'll need to make a whole lot more to keep up with Joneses in Palo Alto, Fremont or Walnut Creek.

When an anonymous Twitter engineer with a wife and kids complained he's just barely scraping by on a $160,000 salary, people around the country called the story ridiculous. But many locals found themselves relating to some of his struggles. Earlier this year, San Jose Reddit users discouraged a man from moving to town, saying he wouldn't be able to make it on $85,000 a year.

Business Insider recently calculated how much money you have to earn to be considered "rich" in the country's largest metropolitan areas, in which they define "rich" as earning twice an area's median income.

It's no surprise which metro areas topped their list of the highest salaries required. The San Francisco/Oakland region landed the No. 2 spot, only to be outdone by another spot in the Bay Area. San Jose and Silicon Valley earned top honors, where only households taking home $220,080 a year are considered rich relative to their neighbors.

But Business Insider's analysis breaks down the Bay Area into only two large regions, so we used a similar method to get a closer look at the cost of living here. By using U.S. Census Bureau data from 2012 and 2016, we calculated what qualifies as "rich" in 40 different Bay Area cities by doubling the median household income. We included cities with a population of more than 50,000 (with a few extra thrown in for good measure).

Click through the slideshow at the top of the story to see what salary you need to earn to be considered rich in 40 Bay Area cities.

Is your city or town too small to make our list? Calculate the numbers yourself by typing in the name of your city here and multiplying the median household income by two.

Read Alix Martichoux's latest stories and send her news tips at amartichoux@sfchronicle.com.