Comma — Usage and Examples
Comma
Commas can separate words, phrases, and clauses while indicating the importance of information within a sentence. Typically, they indicate a brief pause, allowing a reader to connect information before and after the punctuation mark.
Rules for comma usage
Because of their many functions, commas are one of the most misused punctuation marks. The following comma rules detail their correct usage.
Independent clauses: Insert a comma before a coordinating conjunction (for, and, nor, but, or, yet, so) that separates two independent clauses (phrase with a subject and a verb that can stand alone as a complete sentence).
John enjoyed the winter, but he was nervous about driving in the snow.
Introductory phrases: An introductory phrase is a dependent clause that provides background information or introduces the main clause. When there is an introductory phrase at the beginning of a sentence, separate it from the main clause with a comma.
After running through the park all day, Laura was tired.

Items in a series: When a list contains two or more words, phrases, or clauses, use a comma to separate items. The final comma after the last item in a series is called a serial comma or Oxford comma.
Shawn had to stop by the grocery store for eggs, bread, and milk.
Nonrestrictive clauses: A nonrestrictive clause (a type of relative clause) adds additional information about something already mentioned in the sentence. The information is nonessential; therefore, it can be removed without changing the meaning of the sentence. These clauses typically begin with "which" or "who" and should be set off by commas.
The dinner, which was less expensive than expected, ended with coffee and pie.
Appositives: An appositive (noun or noun phrase that precedes or follows another noun for descriptive purposes) should be placed between commas unless it starts or ends the sentence.
Jax, my golden retriever, escaped the backyard.

Interrupters or parenthetical elements: Use commas around interrupters or parenthetical elements (words or groups of words that contain nonessential information) in the middle of a sentence.
He was, generally speaking, a happy child.
Direct address: When a speaker addresses a particular person or group, they use a direct address. Place a comma after a direct address that starts a sentence and before one that ends a sentence.
Ladies and gentlemen, please have a seat.
Direct quotations: Place a comma after a name tag or attribution that starts a sentence with a direct quote and before one that ends the sentence.