Six months is a good period to keep a credit card open. The duration provides enough time for you to build a credit history that can be used to calculate your credit score.