Using an ATM just got a lot more expensive.

Withdrawal fees for ATMs not affiliated with your card's bank hit an all-time high this week, averaging out to $4.52, according to CNN Money. That number is 21 percent higher than it was five years ago.

Prices vary depending on location. For instance, in Atlanta fees are upwards of $5.15, while in San Francisco, fees are about $3.85, according to the Washington Post.

This is the ninth year in a row that ATM fees have been on the rise, according to the Huffington Post.

Analysts attribute the price hikes to a few separate causes.

The first is that most people aren't using non-affiliated ATMs. Because of this, these ATMs have no problem raising prices. They will not lose any customers by jacking up the prices, and many feel that they need to make up for lost revenue.

There is also the matter of laws and regulations passed at the height of the financial crisis. These laws make it harder for banks to charge their customers with hidden fees, while also restricting how much they can actually charge customers. As a result, ATM fees have steadily increased, according to the Huffington Post.

Banks are also making it harder, overall, to find a free checking account, according to the Washington Post. And this is further increasing prices for customers across the nation as finding ATMs that won't charge extra are slowly disappearing.