The Catechism in Questions & Answers

229. What is sin?

Sin is everything that opposes the will of God and is contrary to His being. This includes all words, deeds, and thoughts that are contrary to the will and being of God. It is also sin to intentionally neglect to do good (cf. James 4: 17). Human beings incur guilt with God with every sin they commit.