SmartAsset found what income is needed to comfortably afford rent for a two-bedroom apartment in the 25 largest US cities.

The study calculated how much a renter would need to earn to spend no more than 28% of their annual income on rent.

In eight cities, renters need to earn more than $100,000.

Rent for the average two-bedroom apartment in San Francisco, California, is more than double the cost of rent in Denver, Colorado.

It's clear that depending on where in the United States you live, rent may take up a larger portion of your income.

SmartAsset found what income you need to comfortably afford the rent for a two-bedroom apartment in the 25 largest cities, by population, across the country.

Comfortably, in this case, means spending no more than 28% of your annual salary on rent. The data on average two-bedroom apartment costs came from Zillow and is from April 2019.

Read more: Here's how much it costs to rent a one-bedroom apartment in the 49 largest US cities

To be clear, 28% is just a benchmark and is actually lower than the 30% budget many experts recommend. In some cities with expensive housing markets, that figure can be unavoidably higher — though you can cut costs by pairing up with a roommate and splitting the rent.

Keep reading to see how much a two-bedroom apartment costs in the 25 largest US cities, ranked from the lowest to the highest annual income you'll need (before taxes) to comfortably afford that rent in each.