Share on FacebookShare on TwitterShare on LinkedinShare via emailShare via Facebook Messenger

When to Use a Comma Before Which

Updated on August 12, 2022Grammar
  • Use a comma before which when it introduces a nonrestrictive phrase.
  • Don’t use a comma before which when it’s part of a prepositional phrase, such as “in which.”
  • Don’t use a comma before which when it introduces an indirect question.

Commas can be tricky, but they don’t have to trip you up. Grammarly’s writing assistant can help you make sure your punctuation, spelling, and grammar are tip-top on all your favorite websites.

Give your writing extra polish
Grammarly helps you communicate confidently

Comma before which in nonrestrictive phrases

A nonrestrictive phrase adds a little bit of extra (but not essential) information about a noun phrase that you’ve already mentioned in your sentence.

Jeff’s new car, which is less than a month old, already started leaking oil.

In the sentence above, which introduces a nonrestrictive phrase (highlighted in gray). Therefore, you need a comma before which and another one at the end of the nonrestrictive phrase. How can you tell that it’s a nonrestrictive phrase? Try taking it out of the sentence.

Jeff’s new car already started leaking oil.

The meaning of the sentence didn’t change—it just contains slightly less detail now. You’re still talking about Jeff’s new car.

If a phrase is restrictive instead of nonrestrictive, it means that you can’t take it out of the sentence without changing the meaning. Restrictive phrases are usually introduced by that instead of which, especially in American English.

Cars that Jeff buys always seem to break down.

The highlighted phrase in the sentence above is restrictive. If you try taking it out of the sentence, the meaning changes: Cars always seem to break down. You’re not talking about cars in general; you’re specifically talking about the cars that Jeff buys. That means the phrase is restrictive and you should not use commas with it.

Here are a few more examples of sentences that require a comma before which:

My mother’s house, which is in a nice neighborhood, needs a new coat of paint.

Tom’s second book, which he spent ten years writing, is now a best seller.

Rob tripped over his shoes, which he had left lying in the middle of the floor.

Everyone loved Robin’s video, which she had filmed in her garage.

Which in prepositional phrases

You don’t need a comma before which when it’s part of a prepositional phrase such as of which, in which or on which.

We heard three speeches, the longest of, which went for an hour.

We heard three speeches, the longest of which went for an hour.

The envelope in, which the letter arrived had no return address.

The envelope in which the letter arrived had no return address.

The platform on, which we built our program is very stable.

The platform on which we built our program is very stable.

Which in questions

You don’t need to use a comma before which when it introduces a question. That’s not much of a problem for direct questions, since which is usually the first word:

Which bus should I take?

But when a sentence contains an indirect question, which might not be the first word. Either way, you don’t need to put a comma before it.

I asked Sam, which bus I should take.

I asked Sam which bus I should take.

Your writing, at its best.
Works on all your favorite websites
iPhone and iPad KeyboardAndroid KeyboardChrome BrowserSafari BrowserFirefox BrowserEdge BrowserWindows OSMicrosoft Office
Related Articles
Writing, grammar, and communication tips for your inbox.