Many middle-class consumers think that closing a credit card is a smart financial move. Maybe you’ve paid off a big balance and want to cut up the card. Perhaps you’re tired of an annual fee, or you just want fewer accounts to track. On the surface, closing a card feels like cleaning up your financial life. But there’s a hidden consequence that often takes people by surprise: closing a credit card can lower your credit score, even if you never miss a payment. The main reason comes down to something called credit utilization.

Credit utilization is a fancy way of saying how much of your available credit you are actually using at any given time. If you have two credit cards with a total limit of $10,000, and you owe $2,000 across both cards, your utilization ratio is 20%. Credit scoring models pay close attention to this number because it is one of the best predictors of whether you’re likely to run into money trouble. People who max out their cards are much riskier to lenders than those who use a small portion of their credit limit. As a general rule, keeping your utilization below 30% is a safe target, and below 10% is even better for your score.

Now imagine you have three credit cards. Card A has a $5,000 limit, Card B has a $4,000 limit, and Card C has a $1,000 limit. That gives you $10,000 in total available credit. Let’s say you owe $1,000 on Card A and nothing on the others. Your utilization is 10%, which looks great to credit bureaus. But then you decide to close Card C because you never use it and the issuer just sent you a notice about a new fee. You remove that card, and suddenly your total available credit drops from $10,000 to $9,000. You still owe $1,000, but now your utilization jumps to about 11%. That alone is a small hit, not enough to panic about. But what if Card A had a $2,500 balance? Before closing, your utilization was 25%. After closing the $1,000-limit card, your total limit is $9,000, and your utilization rises to about 28%. That’s still under 30%, but you’re getting close. If you close a card with a higher limit, the effect can be much worse. Suppose you close Card B instead, the one with $4,000. Your total available credit drops to $6,000. With the $2,500 balance, your utilization jumps to nearly 42%. That can cause a noticeable drop in your credit score, sometimes by fifty points or more.

The problem is that credit scoring doesn’t just look at each card individually. It looks at your combined credit picture. Closing any card reduces your overall available credit, which makes your existing balances look larger in proportion. Even if you always pay your bill on time, that higher utilization signals stress to lenders. They worry that you may be one step away from missing payments because you have less breathing room. That worry becomes a lower score for you.

There’s another reason closing a card can hurt you. It reduces the average age of your credit history. Credit scores reward older accounts because they show you have experience handling debt over a long period. When you close your oldest card, that account no longer ages. After a few years, it may fall off your credit report entirely, and your average account age gets younger. This can also lower your score, though the effect is not as immediate as the utilization jump.

So what should you do instead of closing a card? The best approach is to keep the card open, even if you don’t plan to use it. Many people worry that an unused card encourages overspending. But you can put the card in a drawer and simply not carry it with you. If the card has an annual fee that you really don’t want to pay, call the issuer and ask if they can downgrade you to a no-fee version. Many companies will gladly switch you to a different product without closing your account. If that’s not possible, consider whether the fee is worth protecting your credit score. Usually, it’s better to pay a $95 annual fee than to take a credit hit that could cost you hundreds more in higher interest rates on a future car loan or mortgage.

One exception: if you are carrying a balance and you’re tempted to run up more debt, closing a card can be the right discipline. But first pay off your other balances so your utilization stays manageable. Then close the card. Also, keep in mind that the effect on your score is temporary. Utilization has no memory. Once you reduce what you owe, your score will bounce back. Closing a card, however, permanently removes that credit limit from your profile. You can’t get it back unless you apply for a new card later, which brings its own set of complications. So before you make that call to cancel, think about what happens to your total available credit. A few minutes of math can save you from a very unpleasant surprise the next time you check your score.