The short answer: Use who for subjects ( Who are you? ) and whom for objects ( For whom is this letter intended? ) Any grammar book offers more extensive explanations and examples.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.