Treatment will depend on the situation. In some cases, your doctor will recommend switching to another medicine that's not as likely to cause weight gain. This is especially likely if you have gained a lot of weight and your health is affected.
In other cases, it may not be possible to stop taking the medicine that is causing your weight gain. There might not be another medicine available that can effectively treat your symptoms. For example, people with certain mental health conditions might do well with only one or two medicines. In that case, you might be able to switch to a lower dose of the medicine.
If you are concerned that a medicine is causing you to gain weight, make an appointment to talk with your doctor. Never stop taking a medicine without talking with your doctor first. Then during the visit, you can discuss all of your treatment choices. Together you can make sure the benefits of the medicine outweigh the risks from weight gain.
If you need to keep taking a medicine, you still have choices. Your doctor may advise that you see a dietitian and possibly a psychologist to help you learn to make better eating choices. Getting more exercise can also help treat weight gain. Limiting your portion sizes and eating more slowly at meals can also help. Your doctor can give you more tips about your weight-loss choices.