This concept is a little difficult for native English speakers. There are actually four separate pronouns in Spanish for the English pronoun you.
Watch this video for a detailed explanation and some tips on when to use the formal or the informal pronouns.