When should a comma be used? To change the subject, to build suspense, to end a sentence, to create a pause

A comma should generally be used for the following purposes:

1. To separate items in a list: "I bought apples, oranges, and bananas."

2. To separate two or more adjectives modifying the same noun: "She had a tall, handsome boyfriend."

3. To separate clauses in a compound sentence: "I woke up early, but I still missed the bus."

4. To set off introductory words or phrases: "In the morning, I like to have a cup of coffee."

5. To separate independent clauses connected by coordinating conjunctions (FANBOYS – for, and, nor, but, or, yet, so): "She studied for hours, but she still couldn't pass the test."

6. To set off non-essential information or phrases: "John, who is my best friend, is coming over tonight."

7. To separate direct quotations from the rest of the sentence: He said, "I'm going to the store."

8. To indicate a pause or to enhance clarity in a sentence: "She opened the door slowly, cautiously."

It is important to note that the use of commas can vary based on style guides, writing conventions, and individual writing styles, so there may be some exceptions and additional uses in specific contexts.