Commas divide parts of a sentence. The comma has more uses and variance of usage than any other mark of punctuation. These are the universally accepted uses of the comma:
Note: Not all style guides mention each of these uses explicitly, but all of these uses are demonstrated within the text of each guide.
A comma and a coordinating conjunction can separate independent clauses.
Commas surround elements in a sentence that you can remove without altering the meaning of the sentence.
Commas separate items in a list or series.
Commas follow an introductory word group. Introductory word groups include adverbial modifiers, participial phrases, and interjections.
Commas separate modifiers of equal importance.
Note: The Chicago Manual of Style and the Merriam-Webster Guide to Punctuation permit the stylistic omission of commas separating modifiers.
Commas set off single-sentence quotations, and they replace periods at the end of a quote that does not conclude a sentence.
Commas surround transitional words and phrases in a sentence.
Commas surround certain parenthetical elements in a sentence.