Hey everyone I've been trying to quit masturbation for 2-3 years, been addicted since I was 14-15 until now (almost 25), so almost a decade of my life.
First year of trying to quit was hell, kept lying to myself and saying "next time, next time, next time" and cheating all the time.
Second year I realized that I was actually addicted and how I was acting like an addict with myself, so I started taking real steps like no longer cheating, no longer watching porn, settings goals etc.
Third year will end this summer I think, and it's the best year yet. From spring last April when I joined these forums up to today I masturbated less than or about 30 times, so that's 2-3 times a month, versus masturbating almost daily 2-3 years ago.
The trick if you're starting out is to:
Set goals: promise yourself you'll allow yourself to masturbate after say 5 days or 10 days, then when you reach that period do it. Repeat and keep lenghtening this period, the more often you do it the easier it gets. When you reach 5 days you don't even HAVE to masturbate, you can try going longer.
Never do it twice when you give up. Do it once, whether it was amazing or meh, then reset the counter for your goal.
One of the most important things: don't ever, ever watch porn. Porn leads to hand down your pants, leads to edging, leads to you feeling guilty for not controlling yourself, leads to orgasm.
Study, exercise, find a job, keep yourself busy.
After going 2-3 weeks a couple of times you realize your sex drive diminishes after that time frame and it even becomes easier. You start feeling weird like "why don't I feel like masturbating?". That's normal lol. That's your brain no longer being dependant on the pleasure drugs from orgasms like it was before.
Good luck, for many people the results in both mental and skin health are great, me being one of them.