formal and informal

Hi there, in English, certain words are formal and certain words are informal as you can see in dictionary. My question is in what circumstances I should use informal words or formal words. Thank you.