Yes, it is necessary to include a subject in a formal letter. The subject line should be written in a concise formal manner and should summarize the objective of the letter. Because the subject line functions as a title or heading for the material, it must be related to the written content.