Is masturbating a sin?

I’ve only done this a couple times. Every single time I do this, I think to myself after, is it a sin or not? I sometimes in my mind think, this is not a sin, and at the same time, this is a sin.

Can you help me? I’m really confused…

The following links should assist you in better understanding the Catholic Church’s teaching on masturbation. If you have any further questions or concerns that are not answered by these links, please contact Catholic Answers directly.

Recommended Reading:
Is this a sin when I tried to stop?
How do we cope with habitual sin?
How does one discern the morality of habitual sin?

DISCLAIMER: The views and opinions expressed in these forums do not necessarily reflect those of Catholic Answers. For official apologetics resources please visit www.catholic.com.