It can take a few months to a year to establish a credit history by opening a credit account, such as a credit card or a personal loan.