An introductory element is anything that comes before the main subject and verb of a sentence: a phrase about time, a condition, an aside, a participle. Whether it takes a comma is one of the few punctuation questions where the honest answer is that it depends, and where knowing what it depends on is more useful than a rule.
When the comma is required
Three cases are settled and not a matter of taste.
- Introductory clauses with their own subject and verb. Although the deadline had passed, they accepted the entry. Without the comma the reader runs the two halves together.
- Participial phrases. Having read the report twice, she still had questions. These attach to the subject that follows, and the comma marks the join.
- Anything that would misread without it. Before eating the children washed their hands needs a comma rather urgently.
When it is optional
Short adverbial openers of four words or fewer generally do not need one. In 1994 the factory closed. By Friday everyone knew. Last summer we drove to Cornwall. All perfectly clear, and the comma would only slow them down.
Longer openers take one. The usual guidance is a threshold somewhere around four or five words, though nobody counts in practice. What you are really judging is whether a reader can hold the opening phrase in mind until the subject arrives. If the phrase is long enough that they might lose the thread, the comma helps.
When the comma is wrong
If what looks like an introductory phrase is actually the subject of the sentence, no comma belongs there.
Running a small business, takes more hours than people expect is wrong, because running a small business is the subject. The test is to find the main verb and ask what is doing it. Here the running is doing the taking, so subject and verb must not be separated.
The same applies to sentences beginning with a phrase that turns out to belong to the verb: Into the room came a man in a grey coat takes no comma, because the opening phrase and the verb are working together.
The dangling modifier problem
Introductory participles introduce a hazard beyond punctuation. Whatever follows the comma must be the thing doing the action in the phrase.
Walking through the door, the smell hit him puts the smell on its feet. Walking through the door, he was hit by the smell fixes it. The comma is correct in both; the second half is wrong in the first. This is worth checking whenever a sentence opens with an ing word, because the error is invisible to spellcheckers and easy to write.
Introductory words and connectors
Single words that comment on the sentence take a comma: However, the vote was postponed. Nevertheless, they carried on. Finally, a word about costs.
The exception is where such a word is being used as an ordinary adverb rather than a connector. However hard she tried takes no comma, because however there means to whatever degree rather than nonetheless.
What about yes, no and direct address?
These always take a comma. Yes, we received it. No, that is not what happened. Marcus, could you send the file? The comma separates the response or the name from the sentence proper, and leaving it out changes the sense in ways that range from unclear to unfortunate.
A working test
- Find the main subject and verb of the sentence.
- Anything before them is introductory.
- If it contains its own verb, use a comma.
- If it runs to more than about four words, use a comma.
- Read the sentence without the comma. If you have to go back, put it in.
- If the opening phrase turns out to be the subject, take the comma out.
That order matters. Deciding what the phrase is doing comes first; punctuating it is the consequence, not the decision. Writers who work the other way round, listening for a pause and marking it, end up with commas that separate subjects from verbs and none where a reader actually needs one.