

Whether you should use a comma before or after but depends on the sentence construction. Recognizing the structure of a sentence will help you identify when you should use it. A few tips will make this task easy. But remember, there is always that pesky exception the rule.
Independent Clauses
Let’s begin with an example of a complete sentence.
- I want the cookies.
This simple string of words contains a subject, verb and object. It is also an independent clause. It can stand on its own without adding another word. Compare that one with another one.
- The store is closed.
It is also a complete sentence and an independent clause even though it doesn’t have an object as in the first example.
We can join the two clauses with a conjunction. These words function as joiners that link two sentences. They include words such as and, or and but. We can add a conjunction to our examples.
- I want the cookies, but the store is closed.
- He bought groceries, but he didn’t get any bread.
You’ll notice that we added a comma before but. That is because the two clauses are independent, making the comma necessary. You can test it by ending each clause with a period to see if it is a standalone sentence.
Dependent Clauses
With dependent clauses, these strings are not complete and cannot stand on their own. They include phrases missing a part of a complete sentence. We can join the two clauses with a conjunction.
- I want the cookies but forgot them.
- She was going to go the movie but stayed home to watch TV instead.
In this case, we didn’t add a comma because the phrase after but was a dependent clause. The bridge between the two clauses must be seamless, therefore, no comma before or after but.
What About Commas After But?
There is one situation in which you will find a comma after but. It occurs in cases where the writer makes a deliberate choice for literary effect. That’s where interrupters come into play.
An interrupter does just what the name implies. It breaks a sentence flow with a word, phrase or clause for effect. Here’s an example.
- But, if you must know the truth, I never owned a lead pipe or a candlestick.
The clause, if you must know the truth, stops the flow of the sentence to interject this point. As you can see, there is a comma after but. The punctuation with an interrupter is meant to offset it from the rest of the sentence. It will always have a comma before and after its placement to draw attention to its inclusion.
- Everyone was home, but, and this is important, no one heard him knocking at the door.
This goal of this sentence is to emphasize the unusual situation with an interrupter. In these cases, it’s helpful to understand the context to determine if the comma is necessary.
You should always use a comma before but when joining two independent clauses. A comma after but is only necessary if you’re using it as literary device to draw attention to something.