Do You Put A Comma Before Which | Two Tests That Work

Use a comma before which when it starts a nonrestrictive clause; skip the comma when the clause narrows which noun you mean.

You’ve seen it: a comma lands right before which, and you hesitate. The fix is simpler than most people think. In most sentences, the comma decision is driven by meaning, not by the word which.

This guide gives you two quick tests, a table of common patterns, and editing moves you can apply in seconds.

Do You Put A Comma Before Which

Start with one question: is the which-clause extra detail, or does it tell the reader which one you mean?

If it’s extra detail, set it off with commas. If it narrows the noun, don’t use commas.

Two fast tests

  • The drop-it test: Remove the which-clause. If the sentence still points to the same noun, the clause is extra, so it takes commas.
  • The point-to-it test: Put your finger on the noun right before which. If the clause selects one item from a group, skip the comma.

Common patterns at a glance

Pattern Comma Before which? Why it reads that way
The car, which I bought last week, is already in the shop. Yes The car is identified; the clause adds a detail.
The car which has the dent belongs to my neighbor. No The clause picks one car out of several.
My laptop, which is five years old, still runs fine. Yes You’re talking about a known laptop; age is added detail.
Pick the laptop which has the USB-C port. No The clause narrows the choice to one laptop.
We missed the train, which meant we got home late. Yes The clause comments on the whole idea, not a single noun.
She adopted a dog which needed daily meds. No The clause identifies the kind of dog.
The policy, which starts in January, applies to new members. Yes The policy is identified; timing is added detail.
The policy which starts in January applies to new members. No This suggests multiple policies and you mean one of them.

Restrictive And Nonrestrictive Clauses In Plain Terms

Writers use two labels for relative clauses: restrictive and nonrestrictive. You don’t need fancy grammar to use them well. You just need to know what the clause does to the noun.

Restrictive means “it filters the noun”

A restrictive clause limits the noun. It tells the reader which one you mean. Delete the clause and the noun becomes vague or changes reference.

Sample: “Students which miss the deadline lose points.” The clause filters “students” down to a smaller group, so there’s no comma.

Nonrestrictive means “it adds a side detail”

A nonrestrictive clause adds a side detail about a noun that’s already identified. Delete the clause and the noun still points to the same thing.

Sample: “My laptop, which I bought in 2020, still runs fine.” The buying detail is extra, so commas fit.

One clause in the middle, two commas

When a nonrestrictive clause sits in the middle of a sentence, you usually need two commas. Treat it like a parenthetical insert.

Right: “The report, which was due Friday, is finished.” Wrong: “The report, which was due Friday is finished.”

Putting A Comma Before Which In Nonrestrictive Clauses

This is the classic comma-before-which setup: the noun is already pinned down, and the which-clause adds a detail you can cut without changing the target noun.

When the noun is already specific

Proper names and one-of-one nouns often point to a single thing. That makes the which-clause feel like a side note.

  • “Dhaka, which gets heavy rain in monsoon months, can flood fast.”
  • “My phone, which is on silent, won’t ring.”

When which points to the whole idea

Sometimes which sums up the whole idea that came earlier. In that case, a comma is the usual choice.

Sample: “He forgot the attachment, which slowed the project down.” Here, which points to the forgetting, not to “attachment.”

When You Skip The Comma Before Which

A comma before which is wrong when the which-clause is restrictive. In that role, it selects the correct noun out of a set.

When you’re choosing among options

If the noun could refer to many things, and the which-clause selects one, skip the comma.

  • “Send the file which has the updated chart.”
  • “I like movies which end quietly.”

When a comma flips your meaning

Commas can flip meaning. Compare these two:

  • “Students, which miss the deadline, lose points.” This reads like all students miss the deadline.
  • “Students which miss the deadline lose points.” This targets a subset of students.

If your comma version implies “all of them,” and that’s not what you mean, remove the comma.

Which Vs That In Style Guides

If you write for class, work, or a publication, the house style may matter as much as grammar. Two widely cited guides put the main idea in plain terms.

Purdue’s online writing lab explains that vs. which in restrictive and nonrestrictive clauses as a choice tied to clause type. The UNC Writing Center page on relative clauses also notes that nonrestrictive relative clauses are set off with commas.

A Steady Approach To Stick With

  1. Decide if the clause is restrictive or nonrestrictive.
  2. If it’s nonrestrictive, add commas around it.
  3. If it’s restrictive, skip the commas.
  4. Then choose that, which, who, or where based on what the clause refers to.

If your teacher enforces “that for restrictive,” follow that rule on that assignment. Consistency often matters more than winning a punctuation debate, too.

Common Spots Where Which Commas Go Wrong

These patterns cause most second-guessing. Learn them once, and you’ll fix most comma-before-which issues on sight.

Category nouns

Broad nouns like “people,” “students,” “cars,” and “phones” can turn fuzzy. A comma can make it sound like you’re talking about the whole category.

Try this: if you mean “some,” write a restrictive clause with no comma. If you mean “all,” rewrite the sentence so the claim is clear.

End-position which-clauses

When the which-clause sits at the end, you only see one comma. That’s normal, because there’s no text after the clause to close it off.

Sample: “I turned in the draft on time, which surprised me.” If you can drop “which surprised me” and the core statement still stands, keep the comma. If the clause picks a specific noun, rewrite so the reader can’t misattach the clause to the wrong word.

Which after a preposition

You’ll see “in which,” “for which,” and “by which.” The comma rule still depends on clause type.

  • Nonrestrictive: “The lab, in which we worked late, was quiet.”
  • Restrictive: “The lab in which we worked was quiet.”

Long noun phrases

Long noun phrases can hide the real target noun. Find the head noun, then run the two tests.

Sample: “The first draft of the policy which lists attendance rules needs edits.” If you mean one draft among several, no comma. If you mean a known draft and you’re adding detail, add commas and tighten the wording.

Editing Moves That Fix Most Which Problems

When you’re editing, you don’t need to label each clause in a notebook. You need a sentence that won’t be misread.

Swap which for that when the clause is restrictive

If your clause is restrictive and you’re free to choose, switching to that can quiet the comma question.

Try: “The course that meets on Monday is full.” You don’t feel tempted to add a comma.

Split a crowded sentence

If the noun and its verb drift apart, readers can lose the thread. Splitting can make the point cleaner.

Try: “The report is finished. It was due Friday.” Short, clear, done.

Turn “which” into a new sentence when it sums up an idea

When which points to a whole idea, a new sentence can read smoother.

Try: “He forgot the attachment. That slowed the project down.”

At this point you can answer the question “do you put a comma before which” in your own drafts with a quick scan. Extra detail gets commas. A filter clause doesn’t.

Second-Pass Checklist For Comma Before Which

Use this table when you’re editing fast and you want a clean, repeatable routine.

What you see What to do Quick check
One comma before which in the middle of a sentence Add the second comma, or remove both If it’s a side note, it needs two commas
A category noun plus a comma before which Remove the comma or rewrite Comma can imply “all of them”
Which refers to the whole sentence Keep the comma or split the sentence Replace with “This” and see if it fits
Long noun phrase before which Find the head noun, then apply the tests Underline the noun the clause modifies
Restrictive clause with which feels clunky Swap which to that (if allowed) If “that” reads clean, use it
Nonrestrictive clause at the end Use a comma before which Drop the clause; if meaning stays, comma
Which used for a person Use who or that, then set commas by clause type People usually take who
Too many commas on one line Split into two sentences If you trip while reading, split

Practice Set To Try Now

Take these sentences and decide whether the which-clause is restrictive or nonrestrictive. Then add commas only when the clause is extra detail.

Sentences to mark up

  1. The sandwich which is on the left is mine.
  2. The sandwich, which is on the left, is mine.
  3. I saved the article which explains the rubric.
  4. I saved the article, which explains the rubric, in my notes.
  5. We postponed the exam, which made the class groan.
  6. Choose a topic which you can research with sources you trust.

What to learn from the set

Some pairs are both possible, but they don’t mean the same thing. When both versions sound fine, pick the version that matches your intent.

Last-Run Notes For Essays And Blog Posts

Before you hit submit, run this routine:

One edit now saves time later when you revise for tone.

  1. Circle each which.
  2. Check whether the clause is extra detail or a filter.
  3. Fix comma pairs when the clause sits in the middle.
  4. Scan for any “which” that points to a whole idea; split it if it reads muddy.

One last time, in plain words: when you ask “do you put a comma before which,” you’re asking whether the clause after which is extra detail. If it is, use commas. If it isn’t, don’t.