When do you use a comma in a sentence

To determine when to use a comma in a sentence, you can follow several guidelines:

1. Use a comma to separate items in a series: When listing three or more items in a sentence, place a comma between each item. For example, "I bought apples, bananas, and oranges."

2. Use a comma before a coordinating conjunction: When joining two independent clauses with a coordinating conjunction (and, but, or, nor, for, so, yet), use a comma before the conjunction. For example, "She went to the gym, but he stayed home."

3. Use a comma after an introductory phrase or clause: When starting a sentence with an introductory phrase or clause, separate it from the main part of the sentence with a comma. For example, "After finishing my homework, I went to bed."

4. Use a comma to set off nonessential information: When adding nonessential information or an aside to a sentence, use commas to set it off. For example, "Bob, who lives next door, is a doctor."

5. Use a comma to separate adjectives: When using multiple adjectives to describe a noun, place a comma between them. For example, "She had long, curly hair."

It's important to note that these are general guidelines, and there are more specific rules and exceptions to consider. However, following these guidelines will help you use commas correctly in most situations.