Deciding when to use a comma before which is easy. If you can remove the clause after it from a sentence, you need to use a comma.