Here's how many credit cards people with excellent credit scores have

Joe Raedle | Getty Images

How many credit cards should you have if you want an excellent credit score? According to Ethan Dornhelm, vice president of FICO Scores and predictive analysis, there's no perfect number.

A credit score is a personal rating that determines the interest you pay for a loan, or whether you qualify for a loan at all. It's calculated based on payment history, how much you owe, your length of credit history, the types of credit you have and how often you apply for new credit.

"The sheer number of credit card accounts that a consumer has is much less important to the FICO Score than how the consumer is managing those accounts," Dornhelm tells CNBC Make It. "Are they paying their bills as agreed? Are they keeping their balances low relative to available credit limits? These actions are the most significant drivers of their FICO Score."

Still, it's useful to consider the wallets of people with great credit. In a recent analysis, FICO found that cardholders with scores above 800 — the excellent range is 750 to 850 — had an average of three open cards, according to Dornhelm. If you include both open and closed accounts, they'd had six cards in total.

Since the number of cards you have can affect your credit score in subtle ways, as well as impact how much you earn with different types of credit card rewards, here are three things to keep in mind when deciding whether to get a new card.

Adding a new card can help your credit score

Adding a new card is one way to increase the credit available to you, which allows you to spend more while still maintaining a safe utilization ratio, or the amount you've spent compared to your credit limit. "The lower your ratio of balances to your total credit limits, the better," says Dornhelm.

As a rule, you should try to keep your utilization ratio below 30 percent. You can figure out what it is by adding up your monthly spending — the balances on all your cards — and dividing that number by the sum of your limits. For example, carrying a balance of $200 and having a credit limit of $1,000 would give you a utilization ratio of 20 percent.

If the ratio is too high, getting a new card could lower it since it raises your total credit limit — as long as your spending stays the same.

Suze Orman: Here's the No. 1 thing to do now if you want to buy a home soon
Suze Orman: Here's the No. 1 thing to do now if you want to buy a home soon

Closing old accounts can hurt your score

If you do get a new card, don’t rush to cancel your old ones. Over time, closed accounts are no longer included on your credit report, which could reduce the "average age" of your account. Plus, "by closing a credit card account, the consumer is taking some of their available credit off the table," says Dornhelm. That could have a more immediate impact on your credit score.

Open yet inactive accounts, on the other hand, won't harm your score. In fact, they might help it by increasing your available credit.

There are some situations, like when a card you're no longer using has an annual fee, where it might be worth closing the account, not for the sake of your score but to save money. Even in that case, though, there can be loopholes.

"You may be able to ask the credit card issuer to waive the fee or convert the account to a card product that doesn't have an annual fee so you can preserve the account age on your credit reports, which can be better for credit scores," John Ganotis, founder of CreditCardInsider.Com, tells CNBC Make It.

A new card can offer more than just credit

Savvy spenders may use multiple cards to rake in different kinds of rewards. "Someone might want a card that earns more cash back in certain categories, like groceries or gas, and another card that earns a flat cash back rate on all purchases to use for spending in categories where the first card wouldn't earn more," says Ganotis.

So if you're looking for a new card, consider one that offers new perks and rewards to complement the cards you already have. Just keep track of your annual fees to ensure the rewards are actually worth it. And do your research before you apply to make sure it’s not only one you want but one you’re qualified for, since the application process requires a credit inquiry. One of those usually shaves a few points off your score, though nothing drastic.

If you're happy with your current benefits and credit line, there's probably no reason to complicate your situation with a new card.

Don't miss: We looked at the 35 most popular travel credit cards—here's our pick for No. 1

Like this story? Subscribe to CNBC Make It on YouTube!

5 of the best travel rewards credit cards for young people
5 of the best travel rewards credit cards for young people