If you don’t have any cash on you, walking by an ATM without enough money in your bank account to cover a withdrawal can be frustrating

Many credit cards, however, can be used to withdraw cash from an ATM, whether it’s your bank or not. Just like that, you can have some money in your pocket.

But don’t jump up to the first ATM you see and take out some cash with your credit card just yet. Called cash advances, these withdrawals are actually you borrowing cash on your credit card and must be repaid — usually with high fees and interest rates.

Short-term problems of cash advances

Fees are the first thing you’ll pay on a cash advance. They’re usually based on the amount of cash you borrow, such as $10 or 5 percent of the amount, whichever is greater. That equates to a $10 fee for borrowing up to $200, or 5 percent of the amount borrowed if it’s more than $200.

Immediate interest charges are another reason to avoid cash advances. They don’t have grace periods — as your normal credit card purchases do for about a month— and the credit card company will start charging you interest on a cash advance as soon as you borrow the cash.

Cash advances have high APRs that are much higher than normal purchases. Expect to pay 25 percent interest on a cash advance, again, without a grace period.

Long-term problems

High interest rates can turn into long-term problems if you don’t pay the cash advance off soon, but there are also other problems with cash advances that can follow you for years.

The first is that your credit card company may flag you as a risky borrower. Creditors consider people who use cash advances as being desperate for money, especially if they do a few of them.

Such risky behavior with your money can lead to you being unable to get higher lines of credit or good terms with the bank that gave you the cash advance. Your credit card’s interest rate could rise or your account closed.

A second long-term problem is that cash advances add to your credit card debt and is shown on your credit reports. If you already have high balances on your credit cards when compared to your total available credit, a cash advance can lower it more.

The more credit card debt you have compared to your total available credit — called credit utilization — the more it can hurt your credit scores. If you already have high balances on your credit cards, a cash advance can make raise your credit utilization rate and make you a bigger risk to creditors.

The higher the credit utilization rate, the greater the risk that you’ll default on a credit account within the next two years, according to FICO, a credit scoring company.

“Amounts owed” make up 30 percent of a credit score, and using more than 20 percent of the credit available to you is considered risky.

‘OK, but how do I get a cash advance?’

If the problems listed above haven’t dissuaded you, and you still want to get a cash advance on your credit card, you first need to check that your credit card will work in an ATM.

Either call your credit card company or check the cardholder agreement that came with your card. Look for the sections on “Cash Advance APR” and “Cash Advance Fee,” which if listed with dollar figures or percentages charged are a sign that you card can be used at an ATM.

Your credit card statement may list a cash advance credit line or cash advance credit limit, which is the maximum amount of cash you can take out. The credit limit for cash advances is usually smaller than your credit limit for regular purchases.

To use your credit card at an ATM, you’ll need to find or set the PIN that’s tied to your credit card. You may have gotten it when the card came in the mail. You may have to request it from the credit card issuer by logging into your account online or calling the phone number on the back of the card. It might take seven to 10 days to set up the PIN.

You may get charged a fee for using an ATM that is outside the network linked to the credit card. Check with your credit card provider or your bank to find out how much it is and if you can avoid it.

How to avoid some cash advance fees

Interest charges on cash advances are unavoidable, but some fees can be eliminated through a few options.

If you have a credit card from Discover, it allows up to $120 to be borrowed in cash at checkout when you’re buying something. The money is categorized as a purchase instead of a cash advance, so you’ll avoid bank and transaction fees.

Your regular APR applies to the cash you get and there are no hidden fees, according to Discover. Called “Cash Over,” the transactions are limited to $120 every 24 hours with no monthly limit, though your local store may have allow less money to be cashed out over the purchase amount and may limit the number of times you can withdraw cash.

If you’re having difficulty finding an ATM linked to your bank so you can avoid ATM fees for withdrawing cash from your checking account through a machine that isn’t part of your bank’s network, find a bank that covers ATM fees at other banks. Some brokerage accounts offer free ATM use for customers, so setting up a brokerage account may be worthwhile.

If you’re really strapped for money, consider a balance transfer credit card. It can allow you to transfer a credit card balance and then pay it off without any interest charges for a year or more.

However, there are drawbacks to the cards, and fewer credit card companies are offering them. Be aware of the terms before switching to one.

If you decide to get a cash advance through your credit card, try to pay it back as soon as you can. Interest will start accruing immediately, and having debt get out of control will only add to your cash-flow problems.