What is the difference between “which” and “what”?

When used as an interrogative to form a question, “what” refers to an (essentially) unlimited set of options, while “which” refers to a narrower or limited set. For example:

  • What are you wearing to the concert?
  • Which shirt will you wear: the blue or the green?
  • What is your favorite song?
  • Which song should I play for the recital?

The choice of “what” or “which” often depends on the context of the sentence.