Friendly PSA because it seems many people don't know this...
Don't cancel your credit card unless it has an annual fee. If you want to avoid temptation, just cut up the card. Closing the account hurts your credit rating.
Really! Interesting tip I didn't know that, thanks. So what happens when the card expires? Do you keep renewing it forever only to destroy the cards?
Well technically, you should put a small purchase on it every now and then to keep it active. The credit card company will eventually review your account and will close it if there has been no activity for a long time. But I've had open accounts for many years without an actual card before they closed them. The longer your accounts are open, the better.
Also if you have other debt, closing an account will increase your utilization. Credit bureaus like to see less than 30% utilization. So if you have 2 credit cards with $1000 limits on each and you make a $500 purchase on one of them, your utilization is 25%. Then if you close one of the accounts, your total credit available drops to $1000 and your utilization jumps up to 50%. So your credit rating will drop until you pay down that $500. And that is not necessarily a big deal, unless your credit is already not too good or you plan to apply for a big loan in the near future, like a car loan or mortgage.