Whether or not you put a comma before and depends on how you’re using and. There’s no single rule that applies to all situations. You usually put a comma before and when it’s connecting two independent clauses. It’s almost always optional to put a comma before and in a list.
Comma Before And in Lists
A lot of people have strong feelings about putting a comma before and in a list.