On Discover, Mastercard, and Visa Cards: The 3-digit security code is the last three digits printed on the signature panel on the back of your card.
On American Express Cards: The 4-digit security code is printed on the front of the card and above the account number.