Study vocabulary from this article
Use flashcards with SRS system for long-term retention
One of the comma questions that comes up most often in my ESL classroom is: “Do I need a comma before ‘such as’?” The frustrating answer is that it depends—but not on what you might think. The real rule isn’t about ‘such as’ at all. It’s about whether the examples you’re introducing are essential to your sentence’s meaning.
You’ll breaks down the one rule that actually matters (restrictive vs. nonrestrictive), shows you how to spot the difference, and gives you eight test sentences you can use anytime. By the end, you won’t have to guess anymore.

Key Takeaways
- Nonrestrictive (extra info) — use a comma. Example: “My favorite fruits, such as apples, are on sale.”
- Restrictive (essential info) — no comma. Example: “The fruits such as apples are on sale” (you’re specifying which fruits).
- The swap test — if you can remove the phrase and the sentence still makes sense, use a comma.
- Most common case — 70% of “such as” phrases are nonrestrictive and DO need a comma.
- Memory hook — “Such as” introduces examples; commas frame them as bonus information.
The Core Rule: Restrictive vs. Nonrestrictive
The comma rule for “such as” is actually part of a bigger punctuation principle in English. The question isn’t “Is this ‘such as’?” but “Is this phrase essential or extra?”
Nonrestrictive clause (use a comma) — The phrase is extra. The main noun already has a clear identity, and you’re just adding examples for flavor.
Example: “My favorite fruits, such as apples and bananas, are on sale this week.”
→ You already know which fruits are the writer’s favorites. “Such as apples and bananas” is bonus information.
Restrictive clause (no comma) — The phrase is essential. You’re narrowing down which items you mean.
Example: “The fruits such as apples are the ones on sale.”
→ Without “such as apples,” the reader doesn’t know which fruits you’re talking about. The phrase is essential.
The Swap Test (The Easiest Way)
If you’re unsure, use this one trick: remove the “such as” phrase. If the sentence still makes sense and keeps its meaning, use a comma. If the sentence falls apart or changes meaning, no comma.
Example 1: “My favorite colors, such as blue and green, remind me of nature.”
→ Remove the phrase: “My favorite colors remind me of nature.” ✓ Still makes sense → comma needed.
Example 2: “The cars such as Teslas are becoming more popular in cities.”
→ Remove the phrase: “The cars are becoming more popular in cities.” ✗ Too vague. Doesn’t make sense → no comma.
Side-by-Side Comparison
| Feature | Nonrestrictive (Comma) | Restrictive (No Comma) |
|---|---|---|
| Information type | Extra; bonus examples | Essential; narrows down |
| Noun identity | Already clear without examples | Unclear without examples |
| Can you remove it? | Yes, sentence still makes sense | No, sentence becomes vague |
| Example | “My pets, such as dogs, need exercise.” | “The pets such as dogs need exercise.” (which pets?) |
| Real-world frequency | ~70% of “such as” uses | ~30% of “such as” uses |
| Register | All registers | More formal or specific |
Eight Real Examples With Explanations
Example 1 (nonrestrictive): “Famous writers, such as Shakespeare and Jane Austen, shaped English literature.”
Why? We already know Shakespeare and Austen are famous writers. The phrase is just clarifying which famous writers. Comma: ✓
Example 2 (restrictive): “The writers such as Shakespeare who wrote tragedies are often quoted today.”
Why? You’re filtering down to a specific group of writers (those who wrote tragedies). Without this phrase, we don’t know which writers you mean. Comma: ✗
Example 3 (nonrestrictive): “My favorite hobbies, such as reading and painting, take up most of my free time.”
Why? We know what your hobbies are. You’re just giving examples. Comma: ✓
Example 4 (restrictive): “The hobbies such as reading and painting that build creativity are worth pursuing.”
Why? You’re specifying which hobbies (the creative ones). The clause is essential. Comma: ✗
Example 5 (nonrestrictive): “Many countries, such as Canada and Australia, have large immigrant populations.”
Why? We’re talking about countries in general. The examples are just illustrations. Comma: ✓
Example 6 (restrictive): “The countries such as Singapore that are small and island-based face unique challenges.”
Why? You’re narrowing to specific countries with specific traits. Comma: ✗
Example 7 (nonrestrictive): “Musical instruments, such as the piano and violin, can take years to master.”
Why? The noun “instruments” is already clear. The examples are clarifying. Comma: ✓
Example 8 (nonrestrictive): “Programming languages, such as Python and JavaScript, are widely used in web development.”
Why? We know what programming languages are. The phrase adds detail. Comma: ✓
When “Such As” Introduces Lists in Formal Writing
In formal business and academic writing, “such as” often appears with lists. The comma rule still applies.
Nonrestrictive: “The company provides several benefits, such as health insurance, paid leave, and retirement plans.”
→ The listener already understands you’re talking about company benefits. The list is illustrative. Comma: ✓
Restrictive: “Only certain benefits such as health insurance and paid leave are available to contract workers.”
→ You’re specifying which benefits. Without this, “benefits” is too vague. Comma: ✗
Frequency reminder: In everyday English, nonrestrictive “such as” (with a comma) is much more common than restrictive. If you’re unsure and 70% of the time the nonrestrictive version is correct, defaulting to a comma is usually safe.
Common Mistakes Learners Make
✗ Incorrect: The universities such as Harvard offer scholarship programs.
✓ Correct: The universities, such as Harvard, offer scholarship programs.
Why: We’re talking about universities in general. “Such as Harvard” is just an example, not a filter. Comma needed.
✗ Incorrect: My favorite drinks, such as coffee and tea, help me focus. Wait—is this restrictive?
✓ Correct: My favorite drinks, such as coffee and tea, help me focus.
Why: The sentence tells us the drinks are your favorites. The noun is already qualified. The examples are extra. Comma: ✓
✗ Incorrect: Books, such as the ones about history, are found in the second floor.
✓ Correct: Books such as ones about history are found on the second floor.
Why: You’re filtering books down to a specific category (history books). The phrase is essential. Comma: ✗ (Also: “on” the second floor, not “in”.)
Sample Dialogue
Sam (student): So for my essay, I wrote: “The sports such as basketball are popular in schools.” Is that right?
Teacher: Let me ask you: without that phrase, does “The sports are popular in schools” make sense?
Sam: Not really. It’s too vague.
Teacher: Exactly. Your phrase is essential, so no comma. Now, if you wrote “Sports, such as basketball, are popular in schools,” you’re saying sports in general are popular, and you’re just giving an example.
Sam: Got it. The comma tells me the example is bonus information.
Quick Quiz
Quick Quiz
- Which is correct: “Animals such as dogs make good pets” or “Animals, such as dogs, make good pets”? Why?
- Do you need a comma here? “The languages ______ English and Spanish are taught in schools.” (such as)
- Which is correct: “Foods, such as vegetables, are healthy” or “Foods such as vegetables are healthy”? Both? Neither?
- Remove the phrase: “Climate zones such as deserts face water scarcity.” Does “Climate zones face water scarcity” still make sense?
- Rewrite this for clarity: “Metals such as copper and aluminum are conductive.”
Answers: 1. Both can be correct (different meanings). “Animals, such as dogs, make good pets” = dogs are just an example. “Animals such as dogs make good pets” = you’re narrowing to certain animals. 2. No comma — you’re specifying which languages. 3. Both are correct, depending on context. “Foods, such as vegetables, are healthy” emphasizes that foods in general are healthy. “Foods such as vegetables are healthy” narrows to specific foods. 4. No — it becomes vague. The phrase is essential. 5. “The metals such as copper and aluminum that conduct electricity are widely used in industry.” (The “such as” phrase is now clearly restrictive.)
Variants: “Including,” “Like,” and Other Phrases
English offers several alternatives to “such as,” and they follow similar rules:
| Phrase | Example (nonrestrictive) | Comma? |
|---|---|---|
| Such as | My hobbies, such as reading, relax me. | ✓ |
| Including | Many countries, including France, use metric. | ✓ |
| Like | Fruits, like apples, are nutritious. | ✓ |
| For example | Metals, for example copper, conduct heat. | ✓ |
| For instance | Some animals, for instance dogs, are loyal. | ✓ |
| Namely | Three countries, namely France, Germany, and Italy, form the core of the EU. | ✓ |
The restrictive/nonrestrictive rule applies to all of these. If the information is essential, no comma. If it’s extra, add a comma.
Related Articles
- ↑ Master Pillar: English Grammar
- ↑ Back to pillar: English Punctuation (Pillar)
Frequently Asked Questions
Do you always need a comma before “such as”?
No. You only need a comma if the phrase is nonrestrictive — that is, if the information is extra and the noun’s identity is already clear. If the phrase is restrictive (essential), no comma. Use the swap test: remove the phrase and see if the sentence still makes sense.
What’s the difference between “such as” and “like”?
In formal writing, “such as” is preferred for introducing examples. “Like” is more casual and can sometimes mean “similar to” rather than “for example.” The comma rule is the same for both: use a comma if nonrestrictive, not if restrictive.
Can you use a colon before “such as”?
Rarely. A colon usually introduces a complete list or independent clause, not a “such as” phrase. Stick with the comma for “such as.” A colon works before a full list: “The company offers several benefits: health insurance, paid leave, and retirement plans.”
Is “such as” formal or informal?
“Such as” is neutral-to-formal and is commonly used in business, academic, and everyday English. It’s more formal than “like” but less stuffy than “namely.”
What if I use “such as” with a single example?
The rule still applies. “My favorite color, such as blue, calms me” (nonrestrictive — comma). “The color such as blue that matches the ocean is soothing” (restrictive — no comma). Single vs. multiple examples doesn’t change the rule.
Quick Test: Check Your Understanding
5 questions to test what you've learned. No sign-up required.