When your doctor puts you on a prescription medication, reading the list of potential side effects can be daunting. While it may be tempting to ignore that fine print completely—after all, the benefits of being on the medicine will likely outweigh the possible negatives—experts agree it's important to know what you might face.

"There are certain medications that are known to cause weight gain, but that doesn't mean that if you take one of them, gaining weight is inevitable," says Prudence Hall, MD, an integrative gynecologist at the Hall Center in Santa Monica, California. "If you know the medicine you're on may cause you to pack on the pounds, you can take steps to prevent that from happening." (Here are 7 weird reasons you could be gaining weight.)

Shilpi Agarwal, MD, a board-certified family physician in Washington, DC, agrees. "My biggest recommendation is to make sure you get an accurate starting weight before you even fill the prescription, and once you start taking it, check your weight again in 2 weeks," she says. "A lot of people gain weight without even realizing it, and if you don't catch it until you're 6 weeks in, that could mean you're up 10 or more pounds."

Here are 6 types of medications that tend to cause weight gain, and what to do to try to avoid this side effect.

Antidepressants

Agarwal says selective serotonin reuptake inhibitors (SSRIs)—such as Prozac, Zoloft, and Paxil—are some of the biggest weight-gain offenders. Why? SSRIs work by blocking a receptor in the brain that reabsorbs serotonin, which makes more of this "feel-good" chemical available to send messages between nerve cells. While that has a positive effect on mood, it also can affect appetite. "What we find is that these drugs can really increase cravings for carbohydrates," she says.

What to do: Talk to your doctor about going on an antidepressant that's known to cause the least amount of weight gain. Agarwal says bupropion (brand name, Wellbutrin) is a good option for many patients and may actually prompt weight loss—a nice perk for those patients who are already overweight, says Agarwal.

Related: Are You Bummed Out...Or Depressed?

Birth Control

Some contraceptives have been shown to cause weight gain, and Agarwal says the birth control shot (Depo-Provera) is chief among them. "Thanks to the dose of the hormone progesterone, it can increase appetite," she says. Other forms of birth control can also cause weight gain, though this is often due to water retention, she says.

What to do: The good news is that you have plenty of options when it comes to birth control, says Agarwal. "Oftentimes, my patients find that low-dose estrogen pills or IUDs that don't have hormones have no effect on their weight." If you're trying a new method, Agarwal suggests giving it one cycle and then talking to your doctor about another option if you're noticing unwanted weight gain. (Here are 8 ways out-of-control hormones can make you gain weight.)

Beta blockers and angiotensin-receptor blockers

These blood pressure and migraine-prevention medications are known to cause a 5- to 7-pound weight gain, says Agarwal. In fact, one recent study published in the journal Cell Reports found that angiotensin-receptor blockers make metabolism sluggish and may lead to obesity.

What to do: "Typically, the first line of treatment for high blood pressure is a diuretic, so if you've been prescribed one of these medications, it's probably because the diuretic didn't work," says Agarwal. If you're on one of these prescriptions for high blood pressure, you may not have many other options for treating your condition, so it's especially important to stay on top of the proven lifestyle tweaks that stave off weight gain, says Hall. "Eat a plant-based, low-sugar diet and get plenty of exercise and sleep," she says. Taking these steps can go a long way toward countering any potential weight gain these meds can cause.

Steroids

The key with this class of medications is to be on them for the shortest time possible to treat your condition, says Agarwal. "These medications tend to cause insomnia, increased appetite, and water retention," she says—a perfect storm for piling on the pounds. Hall adds that in her experience, around 75 percent of patients who take prednisone (a common prescription steroid) for an extended period of time gain weight.

What to do: Ask your doctor to put you on the shortest, most effective dose you can take, says Agarwal. And while you're taking a steroid, do what you can to prioritize good sleep (for example, avoid screen time a couple of hours before bedtime) so you have the best shot at sidestepping steroid-induced insomnia, which can prompt a big boost in your appetite. (Follow these 10 tips on preventing insomnia.)

Antihistamines

If you pop an antihistamine every day to avoid seasonal or pet allergies, here's reason to think twice: Research shows that chronic exposure to these over-the-counter and prescription allergy medications can cause weight gain—particularly in women. "While we don't know why, exactly, this happens, we think it's because blocking histamine production in the body can make us feel hungrier," says Agarwal.

What to do: Try alternative methods for allergy prevention and treatment, such as using a neti pot for nasal congestion and taking a supplement like quercetin, which may ease symptoms. Agarwal also recommends spot-treating your symptoms. "A lot of people take a pill when all they need is a nasal spray for their congestion," she says. "Why give the entire body medicine when only one small part needs it?"

Migraine-prevention meds

There are a variety of medications given for migraine headache prevention, says Agarwal, and many of them cause weight gain (tricyclic antidepressants and antiseizure and blood pressure medications are the biggest culprits).

What to do: If you have such severe migraines that you require daily medication, ask your doctor if you might be able to take an as-needed alternative, says Agarwal. "However, if you do this, it's even more important to figure out your triggers and steer clear of them completely," she says. For example, if you know red wine can set off a bad migraine, cut it out of your diet. "Sure, it can be tough to make these lifestyle changes, but the upside is that you're treating the root cause of the problem, which is always better than thinking you can solve all of your health woes by taking a pill," adds Hall. (This is what a migraine really feels like.)

This article originally appeared on Prevention.com.