Gambling is placing something of value (such as money) on a random event with the hope of winning something else of value. It includes games where skill can impact the outcome – for example, playing poker or betting on horse races – as well as those where chance dominates – like football matches or scratchcards.

Problem gambling is an impulse control disorder that can affect people from all walks of life and cause them to lose control over their behavior. It can also lead to serious financial consequences and strain relationships and careers. Whether you’re betting on sports, lottery tickets, roulette, video poker or slots at a casino or online, it’s easy for gambling to become an unhealthy obsession.

Depending on the severity of a person’s condition, there are different treatments available. The most effective is to seek professional help, which is usually offered in outpatient programs or residential treatment facilities. Inpatient programs are generally reserved for those with more severe problems and who cannot function without around-the-clock care.

The first step in treating a gambling addiction is admitting that you have one. It can take tremendous strength and courage, especially if your addiction has cost you a lot of money or has strained or broken relationships with family and friends. The next step is to build a support network and find other ways to get the social interaction you need. This could mean joining a book club, attending a religious service, taking a class, or volunteering for a charity. You may also want to consider a peer support group like Gamblers Anonymous, which is based on a 12-step program similar to Alcoholics Anonymous.

While it is difficult to say precisely when gambling becomes problematic, there are certain warning signs that you should look out for. These include:

A compulsion to gamble is a sign of underlying mental health issues, which is why it is important to speak with your doctor if you feel you have a gambling problem. Getting help early is key to breaking the habit and restoring your finances and relationships.

It’s also important to set limits for yourself before you go to a casino or gamble online. Choose a fixed amount of money that you are willing to spend and stick to it. Accept that you will likely lose some of that money, but treat the money you do win as a bonus. This will help you stay in control and avoid overspending.