Comma rules
Use a comma before and, but, or, so, yet, for or nor when it joins two complete sentences; after an opening word, phrase or clause; between items in a list; and around extra information the sentence could lose.
Commas mark where the parts end. After the opener, and before but.Why it works. A comma tells the reader where one part of a sentence ends and the next begins. Put one in the wrong place and the reader groups the words wrongly, which is why the rules follow the sentence's parts, not the places you would pause.
Your turn
One comma is missing: When the bell rang the students rushed out. Type the word the comma goes after.
Or just show the answer
rang: When the bell rang, the students rushed out.
When the bell rang is an opener that cannot stand alone, so the comma goes where it ends, after rang. A comma after students would split the subject from its verb.
Watch out for
Joining two sentences with only a comma: I was cold, I went inside.
Add a joining word after the comma, or use a period: I was cold, so I went inside.
A comma between a subject and its verb: The girl in the red coat, waved.
However long the subject is, no comma before its verb: The girl in the red coat waved.
Putting the comma after but instead of before it: I ran but, I missed the bus.
The comma goes before the joining word: I ran, but I missed the bus.

Stuck on your own homework?
Open DuckyHelper and say it out loud. It sees your screen, so it works through your own problem with you and draws it, like the board above.
“Can you check the commas in the paragraph I have open?”
Plus is $14 a month for your first 3 months. DuckyHelper is an app for Mac (Apple silicon, macOS 14 or later), Windows and Linux.
Read the whole guide as text
Use a comma before and, but, or, so, yet, for or nor when it joins two complete sentences; after an opening word, phrase or clause; between items in a list; and around extra information the sentence could lose. Never join two sentences with a comma alone, and never put one between a subject and its verb.
Worked example
Add the missing commas: After the game ended the team went for pizza but the bus was late.
- Split it into parts: After the game ended / the team went for pizza / but the bus was late.
- After the game ended cannot stand alone. It sets the scene, so a comma goes where it ends.
- The team went for pizza and the bus was late are full sentences joined by but, so a comma goes before but.
- Check the subject and verb, team went: nothing comes between them, so no comma there.
Answer: After the game ended, the team went for pizza, but the bus was late.
Sources
- Purdue OWL: Commas, Quick Rules, accessed 2026-10-26
- Purdue OWL: Extended Rules for Using Commas, accessed 2026-10-26