Most often, a PIN is four digits, though some banks require longer numbers. Credit cards use PINs for cash advances, while debit cards use them for withdrawing cash or initiating a purchase.