Use a comma before which when which starts extra, removable information. Do not use a comma before which when the information is needed to identify the noun. The real rule is not about the word alone. It is about whether the which clause is essential or nonessential.
Correct Answer
The first sentence adds extra information. The second sentence uses which to identify the exact laptop. That is why the comma changes.
Table of Contents
Comma Before Which Rule
A comma before which is correct when the which clause gives extra information that can be removed without changing the main meaning. This is called a nonrestrictive clause. Purdue OWL explains that which is used when the clause is not needed to understand the noun, and commas separate that clause from the rest of the sentence.Source-1✅
No comma is used when the which clause identifies the noun. In that case, the information is not extra. It tells the reader which one, what kind, or which exact thing you mean.
The Simple Test
- If you can remove the which clause and the main meaning stays clear, use a comma.
- If removing the which clause makes the sentence unclear or changes the meaning, do not use a comma.
- If the clause appears in the middle of the sentence, use a pair of commas, not only one.
When To Use a Comma Before Which
Use a comma before which when the clause gives extra detail, not identification. The sentence should still make sense if you remove the which part. The Australian Government Style Manual gives the same practical rule: nonessential information goes between commas, while essential information does not.Source-2✅
✓ Correct
The house, which has a red door, is on the corner.
The red door is extra detail. The main idea is still clear: The house is on the corner.
✗ Incorrect
The house which has a red door, is on the corner.
This starts the extra clause but does not open it with a comma. The punctuation is uneven.
Use Commas Around the Whole Which Clause
When the which clause sits in the middle of a sentence, place one comma before it and one comma after it. The clause works like a soft pause inside the sentence.
- My phone, which I charged this morning, is already at 20 percent.
- The recipe, which uses simple ingredients, is easy to follow.
- Her notebook, which she keeps on her desk, has all the meeting notes.
If the which clause comes at the end of the sentence, one comma before which is enough because the period closes the sentence.
- The printer stopped working, which delayed the labels.
- She missed the first bus, which made her ten minutes late.
- The file was too large, which caused the upload to fail.
When Not To Use a Comma Before Which
Do not use a comma before which when the clause is essential. An essential clause limits the noun. It tells the reader exactly which person, item, idea, place, or thing you mean.
No comma: The folder which contains the invoices is on my desk.
This sentence is talking about one folder from a possible group of folders. The clause which contains the invoices identifies the folder.
Some editors prefer that for essential clauses and which for nonessential clauses. Still, in many real sentences, especially in British English, which can also appear in essential clauses. The comma is still decided by meaning, not by the word alone.
✓ Correct Without a Comma
Pick the box which has the blue label.
The clause identifies the exact box.
Meaning Changes With a Comma
Pick the box, which has the blue label.
This suggests there is already one known box, and the blue label is just extra detail.
That vs Which With Commas
The usual American English style is simple: use that for essential information and which for extra information. This is not the only style used in English, but it is a clean rule for everyday writing.
- That
- Usually introduces information needed to identify the noun: The app that tracks expenses is open.
- Which
- Usually introduces extra information with commas: The app, which tracks expenses, is open.
- Which Without a Comma
- Possible when the clause is essential: The app which tracks expenses is open.
For a clean, low-confusion writing style, choose that when the clause is identifying the noun. Choose which with commas when the clause is extra. That pattern helps readers see the sentence structure fast.
Meaning Difference
Look at the difference between these two sentences:
Essential: The emails that include attachments need review.
This means only the emails with attachments need review.
Extra: The emails, which include attachments, need review.
This suggests all the emails include attachments, and all of them need review.
The comma can change the sentence from a limited group to a broader statement. That is why the comma before which is a meaning rule, not just a punctuation habit.
Comma Before Which by Sentence Position
The position of the which clause changes the punctuation pattern. The rule stays the same, but the number of commas can change.
Which Clause at the End
Use one comma before which when the clause is nonessential and comes at the end.
- The team updated the page, which fixed the broken form.
- The lamp uses LED bulbs, which saves energy.
- The meeting moved online, which made scheduling easier.
Which Clause in the Middle
Use two commas when the nonessential which clause interrupts the sentence. Purdue OWL’s comma rule for nonessential elements says to use commas before and after nonessential words, phrases, and clauses embedded in a sentence.Source-3✅
- The article, which was updated yesterday, now has clearer examples.
- The charger, which came with the tablet, is in the drawer.
- The garden path, which curves around the tree, looks wider at night.
Which Clause After a Preposition
A preposition + which structure can also need commas when the information is extra. This structure sounds more formal, but the same essential/nonessential rule applies.
- The agreement, under which the service continues, renews each year.
- The shelf, on which the scanner sits, is slightly tilted.
- The file, from which the chart was made, is saved in the archive.
Comma Before Which Examples Table
The table below shows how the comma changes depending on whether the which clause is extra or needed.
| Sentence | Comma? | Why |
|---|---|---|
| The camera, which has a cracked screen, still takes clear photos. | Yes | The cracked screen is extra information about the camera. |
| The camera which has a cracked screen is mine. | No | The clause identifies which camera is mine. |
| The form, which takes two minutes to complete, is required. | Yes | The time detail can be removed without changing the main point. |
| The form which asks for your email address is required. | No | The clause identifies the exact form. |
| The route, which avoids the main road, is quieter. | Yes | The route is already identified; the clause adds detail. |
| The route which avoids the main road is quieter. | No | The clause separates this route from other possible routes. |
| The software crashed, which surprised everyone. | Yes | Which refers to the whole previous idea. |
| The option which appears first is usually selected. | No | The clause identifies the option being discussed. |
Common Mistakes With Comma Before Which
Mistake 1: Adding a Comma Just Because You See Which
A comma before which is not automatic. If the clause is needed for meaning, no comma is used.
✗ Wrong The password, which unlocks the account, is in the email.
✓ Correct The password which unlocks the account is in the email.
This sentence may mean there are different passwords, and only one unlocks the account.
Mistake 2: Forgetting the Second Comma
When the which clause is nonessential and sits in the middle, it needs a comma on both sides. One comma is usually not enough.
✗ Wrong The chair, which is near the window looks comfortable.
✓ Correct The chair, which is near the window, looks comfortable.
The clause interrupts the sentence, so it needs a closing comma.
Mistake 3: Using That With Commas
In standard edited English, that normally introduces essential information, so it usually does not take commas. Merriam-Webster describes essential clauses as clauses not set off by commas, while nonessential clauses are visually separated with punctuation.Source-4✅
✗ Wrong The keyboard, that came with the computer, is wireless.
✓ Better The keyboard, which came with the computer, is wireless.
✓ Also Correct The keyboard that came with the computer is wireless.
Mistake 4: Changing Meaning Without Noticing
Commas can change the meaning of a sentence. Chicago Manual of Style notes that commas work like parentheses when they mark nonrestrictive information, and restrictive clauses do not need them.Source-5✅
No comma: The books which are on the top shelf are new.
This means only the books on the top shelf are new.
With commas: The books, which are on the top shelf, are new.
This suggests all the books being discussed are on the top shelf, and all of them are new.
When Which Refers to a Whole Clause
Sometimes which does not refer to one noun. It refers to the whole idea before it. In that case, the comma before which is usually needed.
- The train arrived early, which helped everyone get home sooner.
- She saved the draft before closing the tab, which prevented data loss.
- The store extended its hours, which gave customers more time.
In these sentences, which points back to the full previous action. It does not identify a single noun. The comma gives the reader a clear pause before the added result or comment.
Clean Editing Test for Which Clauses
A fast way to check the comma is to read the sentence without the which clause. Then ask what changed.
- Remove the words from which to the end of the clause.
- Read the sentence again.
- If the sentence still names the same thing clearly, use commas.
- If the sentence becomes too general, do not use commas.
Example: The mug, which has a tiny crack, is still usable.
Remove the clause: The mug is still usable. The main meaning is clear, so the comma is correct.
Example: The mug which has a tiny crack is still usable.
Remove the clause: The mug is still usable. If there are several mugs, this version no longer identifies the right one. No comma is used.
FAQ
Comma Before Which Questions
Do you always put a comma before which?
No. Use a comma before which only when the clause gives extra, removable information. Do not use a comma when the clause identifies the noun.
What is the easiest way to know if which needs a comma?
Remove the which clause. If the sentence still means the same main thing, use a comma. If the sentence becomes unclear or too broad, do not use a comma.
Is “which” always nonessential?
No. Which often introduces nonessential information, especially in American edited English. Still, it can also introduce essential information in some styles. The comma depends on meaning.
Should I use that instead of which when there is no comma?
Often, yes. In clean American English style, that is commonly used for essential clauses: The file that contains the photos is large. This avoids confusion.
Can a sentence need two commas around which?
Yes. If the nonessential which clause appears in the middle of a sentence, use a comma before and after it: The car, which is parked outside, needs fuel.
What is an example of which without a comma?
The drawer which contains the batteries is stuck. No comma is used because the which clause identifies the drawer.
What is an example of which with a comma?
The drawer, which contains the batteries, is stuck. The comma is used because the clause adds extra information about a drawer already known to the reader.
Can a comma before which change the meaning?
Yes. The cars which are electric are parked outside means only the electric cars are outside. The cars, which are electric, are parked outside suggests all the cars being discussed are electric.