Writers ask whether there's a comma before or after "such as" more often than you'd expect. The phrase appears constantly in business writing, and the comma rule trips people up because it isn't about the phrase itself. It's about whether the information that follows is essential to the sentence's meaning.
The short answer
Put a comma before "such as" when the examples that follow are non-essential: the sentence makes complete sense without them, and the list is just extra detail. Leave the comma out when the examples are essential: removing them would change what the sentence means or leave it incomplete.
That's the whole rule. Every specific case below flows from it.
Non-essential examples: use a comma
A non-essential phrase adds context without changing the core claim. You could lift it out and the sentence would still stand on its own.
Consider this example:
Our software handles complex document types, such as PDFs, spreadsheets, and slide decks.
The sentence already tells you what the software does. The list of file types is bonus information. Drop it and the sentence survives: "Our software handles complex document types." The comma belongs before "such as" here.
Another way to test this: try replacing "such as" with "including" and then inserting the phrase in parentheses. If the sentence still reads naturally, the comma is correct.
Essential examples: no comma
An essential phrase restricts which things you're talking about. Without it, the sentence becomes vague or misleading.
Candidates with experience in tools such as Salesforce and HubSpot will be prioritised.
Here "such as Salesforce and HubSpot" tells the reader exactly which tools matter. Remove it and you get "Candidates with experience in tools will be prioritised," which says almost nothing. The examples are doing real work, so no comma goes before "such as."
What about a comma after "such as"?
Almost never. "Such as" introduces a list, and you don't separate an introducing phrase from the list it's introducing. Writing "We offer services, such as, consulting, training, and support" would read as broken up and choppy.
The only time you'd see a comma directly after "such as" is when the list itself opens with a parenthetical element, but that situation is rare enough in business writing that you can treat "no comma after such as" as a reliable default.
What if the list comes in the middle of a sentence?
When a "such as" phrase sits between the subject and the verb, it needs a comma on both sides if it's non-essential, and no commas at all if it's essential.
Non-essential in the middle:
Our largest clients, such as banks and insurance firms, receive dedicated account managers.
Essential in the middle:
Companies such as banks and insurance firms face stricter compliance requirements than other sectors.
In the first example, "such as banks and insurance firms" is just illustrative. In the second, it defines the specific group the sentence is about. The commas reflect that difference.
A common mistake to avoid
Many writers add a comma before "such as" out of habit, regardless of whether the examples are essential. This is the most frequent error. Read the sentence without the "such as" phrase. If the meaning changes substantially, remove the comma. If the sentence barely changes, keep it.
Getting this right connects to a broader skill in business writing: understanding which information is core and which is supplementary. That same logic governs commas with introductory clauses and phrases, where the placement signals to readers how much weight to give the opening element.
How "such as" differs from "like"
In formal business writing, "such as" and "like" aren't always interchangeable. Merriam-Webster notes that "such as" specifically introduces examples that are members of a category, while "like" can suggest similarity without membership. In practice, many readers won't notice the difference, but in legal, compliance, or regulatory writing, "such as" is the safer choice.
The comma rule applies the same way to both: essential means no comma, non-essential means comma before.
Quick reference
- Non-essential examples (sentence works without them): comma before "such as," no comma after.
- Essential examples (sentence needs them): no comma before "such as," no comma after.
- Non-essential phrase mid-sentence: comma before and after the entire "such as …" phrase.
- Essential phrase mid-sentence: no commas around the phrase.
If you're still uncertain after applying the essential/non-essential test, read the sentence aloud without the "such as" phrase. Your instinct about whether something is missing will usually be right. Punctuation questions like this one are closely related to the broader comma rules covered in using a comma before and after "but", where the same principle of clause dependency drives the decision.