Financial advisors are continuously urging American consumers to save, but the ability to save greatly depends on where poeple live, according to a new study.

Bankrate.com has taken a look at the top 50 U.S. metro areas and found that there are wide variations in how easy it is for residents in each area to put money aside for emergencies and other needs.

"People living in areas with high housing costs could forgo all nonessential expenses for three years, religiously saving their extra dollars month after month, and still not accumulate enough cash for their recommended emergency fund," the report stated.

For some residents in areas with the highest cost of living—San Francisco being one example—saving money is virtually impossible, the study concluded.

Yet residents in areas of the nation with lower costs have an easier time, according to Bankrate.com.

The study found that in the best metro areas for saving, the average resident could build up a six-month emergency savings fund over the course of about a year.

Housing costs, including property taxes, mortgage payments and home insurance, often have a significant impact on residents' ability to save, according to the report. While experts recommend that consumer spend no more than a third of their pretax dollars on such costs, many people making the median salary in some metro areas spend more than 50 percent, the report said.

This is why many of the metro areas considered the best for saving money are notable for their low housing costs.

The following metro areas, in ascending order, were deemed the best for saving money:

10. Louisville, Ky.

Annual savings potential: $13,405

Six-month emergency fund: $16,657

Months to build up fund: 14.9

 

9. St. Louis

Annual savings potential: $14,673

Six-month emergency fund: $18,117

Months to build up fund: 14.8

 

8. Buffalo, N.Y.

Annual savings potential: $14,267

Six-month emergency fund: $16,710

Months to build up fund: 14.1

 

7. Indianapolis

Annual savings potential: $14,821

Six-month emergency fund: $17,286

Months to build up fund: 14.0

 

6. Oklahoma City

Annual savings potential: $14,863

Six-month emergency fund: $16,724

Months to build up fund: 13.5

 

5. Detroit

Annual savings potential: $15,302

Six-month emergency fund: $16,915

Months to build up fund: 13.3

 

4. Pittsburgh

Annual savings potential: $15,376

Six-month emergency fund: $16,771

Months to build up fund: 13.1

 

3. Cleveland

Annual savings potential: $14,922

Six-month emergency fund: $15,954

Months to build up fund: 12.8

 

2. Cincinnati

Annual savings potential: $16,801

Six-month emergency fund: $17,612

Months to build up fund: 12.6

 

1. Memphis, Tenn.

Annual savings potential: $15,761

Six-month emergency fund: $15,208

Months to build up fund: 11.6

The full report can be found here.