If you thought San Francisco and New York City were the only cities where pairing up with roommates was nearly a must for renters, a new analysis should have you thinking differently about Dallas.

Dallas is among the top 10 major cities in the country where residents must work the longest each month to afford rents, according to data compiled by financial website SmartAsset.

Rents have been rising steadily in America while wages have remained relatively stagnant for more than a decade. This means the typical worker needs to work even more to afford the median rental costs in many locations.

Overall, Texas is known for falling slightly on the unfavorable end of the spectrum for middle-class families trying to afford living costs.

SmartAsset analyzed median rent data from the Bureau of Labor Statistics to discern which cities require the most work to afford housing.

In Dallas, median rent for a one-bedroom apartment is $992, according to the study. Taking into account a $15 hourly wage, the study suggests it would require roughly 66 hours of work each month to afford that rent payment. That equals about 41 percent of a full-time worker's monthly hours and ranks Dallas just two places below notoriously high-cost San Francisco.

According to the BLS, the average rent in the U.S. has risen 324 percent since 1983. In just the past 10 years, rents have increased 28 percent on average.

Local studies actually place overall average rent at more than $1,100 for the Dallas region, and that cost is forecast to rise even more this year than it did in 2018.

Dallas isn't as expensive as cities in places like California, where exceptionally high rents can be difficult to afford. However, the study points to the fact that wages haven't increased as much in Dallas as in other regions, meaning residents are working more to afford various living costs.

Austin, where residents have to work an average of about 65 hours a month under similar conditions, also made SmartAsset's top 10 cities.

The study concludes by recommending that residents in cities like Dallas "shack up with roommates or look to creative budgeting solutions to make sure they can hit their financial goals."

Cities where residents must work the longest to afford rent