Use commas with the phrase 'for example' Generally, use a comma before and after the phrase 'for example' in a sentence.