Can I Take Medications Before an MRI?

Most everyday medications can and should be taken on your normal schedule before an MRI. Unlike some surgeries or blood tests, a standard MRI scan does not require you to stop your prescriptions or skip your morning pills. The exceptions are specific and mostly tied to whether contrast dye is being used, whether you wear a medication patch on your skin, or whether the scan is a specialized type like functional brain imaging. Knowing which situations call for a change makes the difference between a smooth appointment and an avoidable complication.

Why Most Medications Are Fine

An MRI uses strong magnetic fields and radio waves to produce images of your body. It does not involve radiation, and it does not interact chemically with the vast majority of drugs circulating in your bloodstream. Blood pressure pills, cholesterol medications, thyroid hormones, antidepressants, birth control pills, antibiotics you’re in the middle of a course for, and most other oral medications have no effect on image quality and are not affected by the scanner. Your radiology team will almost always tell you to take these as usual, including on the morning of the scan, with a small sip of water if you’ve been told to fast.

The confusion often comes from mixing up MRI prep with surgical prep. Before surgery or certain procedures with anesthesia, you may be told to stop eating, drinking, and sometimes taking medications hours in advance. A routine MRI without sedation rarely requires fasting. When it does, such as for certain abdominal scans, the fasting instruction is about keeping your stomach empty for image quality, not about medication safety. Even then, most centers will say to swallow your pills with a small amount of water.

Metformin and Contrast Dye

If your MRI involves gadolinium-based contrast (the dye injected through an IV to make certain tissues show up more clearly), the conversation shifts slightly for people who take metformin for diabetes. Metformin is cleared through the kidneys, and on rare occasions, contrast agents can stress the kidneys enough to slow that clearance. The concern is not that metformin reacts with the contrast, but that if your kidney function dips temporarily after the injection, metformin could build up to unsafe levels.

Guidelines from the European Society of Urogenital Radiology indicate that patients whose kidney function is normal, with an estimated filtration rate at or above 60, can continue taking metformin without interruption around contrast administration.1PubMed. Contrast induced nephropathy: updated ESUR Contrast Media Safety Committee guidelines For people with reduced kidney function, the typical instruction is to pause metformin for about 48 hours after the contrast injection and get a blood test confirming kidney function before restarting. Your radiology team or prescribing doctor will tell you whether this applies to you based on recent lab work. The key point is that you generally still take your metformin before the scan and only hold it afterward if needed.

Medication Patches on Your Skin

This is one of the genuinely dangerous medication-related MRI hazards, and it catches people off guard. Many transdermal patches, the kind you stick on your skin to deliver drugs like fentanyl, nicotine, nitroglycerin, estrogen, or testosterone, contain a thin layer of metal in their backing. That metallic component can act as an antenna for the radiofrequency energy the MRI scanner puts out, concentrating heat in a small area and causing burns on the skin underneath.

Published case reports have documented serious burns in patients who went into the scanner wearing metallic-backed patches.2Hospital Pharmacy. Safety Concerns Involving Transdermal Patches and Magnetic Resonance Imaging (MRI) – Section: Abstract The fix is straightforward: remove any transdermal patch before the scan, note the time and location so you can apply a new one afterward, and let the MRI technologist know what you were wearing. Some newer patches are designed without metallic components, but unless you’ve confirmed with the manufacturer that your specific patch is MRI-safe, removing it is the standard precaution. If the patch delivers a time-sensitive medication like fentanyl for chronic pain, talk with your prescribing physician in advance about how to manage the gap.

Anxiety Medications and Sedation for Claustrophobia

Far from being something you need to avoid, anti-anxiety medication is one of the most commonly prescribed drugs specifically for MRI appointments. Claustrophobia and general anxiety are among the leading reasons scans get cancelled or produce unusable images because the patient cannot hold still. Benzodiazepines such as lorazepam and midazolam are the go-to options.

Research on severely claustrophobic patients found that a low dose of an oral benzodiazepine before the scan substantially improved the odds of completing the exam.3Clinical Imaging. Determining the efficacy of low-dose oral benzodiazepine administration and use of wide-bore magnet in assisting claustrophobic patients to undergo MRI brain examination – Section: Results However, the timing matters more than many facilities appreciate. A survey of outpatient MRI practices found that about 40% of patients received their sedation medication too early, arriving at the scanner before the drug had reached its peak effect.4PubMed. Evaluation of adult outpatient magnetic resonance imaging sedation practices: are patients being sedated optimally? Lorazepam was the most popular choice among the facilities surveyed, though midazolam was favored at centers that had formal sedation protocols.

Even with proper timing, oral sedation does not work for everyone. One study testing oral midazolam at a standard dose for claustrophobic patients found that half of the scans still had to be cancelled, and among those who did go through with it, most still reported insufficient anxiety relief.5PubMed. Low-dose intranasal versus oral midazolam for routine body MRI of claustrophobic patients For patients with severe claustrophobia, alternative delivery routes, higher doses under medical supervision, or open-bore scanners may be needed.

If you are prescribed a benzodiazepine for your MRI, the practical advice is to bring someone to drive you home, take it at the time your doctor specifies (not earlier), and be honest with the technologist about whether you feel calm enough to proceed. The risk with these drugs is respiratory depression, particularly in older adults, people with sleep apnea, or anyone already taking opioids or other sedating medications.6Nursing2026. Safety concerns associated with the use of benzodiazepines during MRI Facilities with standardized sedation protocols tend to be better equipped for monitoring, so it is worth asking about that when you schedule.

Allergy Premedication Before Contrast MRI

If you have a history of allergic reactions to contrast dye, you may be prescribed a combination of corticosteroids and antihistamines to take in the hours before your scan. This practice has been standard at many imaging centers for decades. Typically the protocol involves oral prednisone or methylprednisolone at 12 hours, then again at 2 hours before contrast, sometimes with diphenhydramine added shortly before the injection.

Here is where the science has gotten more interesting in recent years. There is growing evidence that these pretreatment protocols may not actually be very effective, and they carry their own side effects.7PubMed. CAR/CSACI Practice Guidance for Contrast Media Hypersensitivity A Canadian radiology and allergy joint guideline has noted that the evidence supporting this practice is weak and outdated, and that the medications themselves can cause drowsiness, elevated blood sugar, and other harms. Breakthrough allergic reactions have been documented even in patients who completed the full premedication protocol. In a series of patients with known prior reactions to contrast agents, allergic-type reactions still occurred after premedication, though most were mild to moderate in severity.8PubMed. Allergic-like breakthrough reactions to gadolinium contrast agents after corticosteroid and antihistamine premedication

This does not mean you should skip premedication if your radiologist prescribes it. It does mean the field is shifting, and some centers are moving toward alternative strategies like allergy testing and switching to a different contrast agent rather than loading up on steroids. If you’ve been told to take premedication, follow through, but ask your doctor whether newer approaches might be appropriate for your situation.

Antispasmodic Drugs Given at the Appointment

For abdominal and pelvic MRI, you may not need to bring any medication from home, but the radiology team might give you something on the spot. Bowel movement is one of the biggest sources of blurry images during abdominal scans. To counteract this, many imaging centers administer antispasmodic drugs, most commonly glucagon or butylscopolamine (known as Buscopan outside the U.S.), through injection right before or during the scan.

These medications temporarily slow down the churning of your intestines, giving the scanner a more stationary target. When given intravenously, glucagon starts working in about a minute and its effect lasts roughly 23 minutes; butylscopolamine kicks in slightly slower but lasts a similar duration.9PubMed. Evaluation of the anti-peristaltic effect of glucagon and hyoscine on the small bowel: comparison of intravenous and intramuscular drug administration Butylscopolamine has been shown to provide better visual definition of the small bowel and the lower colon compared to alternative bowel prep methods or no medication at all.10PubMed. Bowel preparation in MRI for detection of endometriosis: Comparison of the effect of an enema, no additional medication and intravenous butylscopolamine on image quality

These are handled entirely by the imaging team. You don’t need to pick them up at a pharmacy beforehand. The main thing to know is that glucagon can cause mild nausea, and butylscopolamine should be avoided if you have certain heart conditions or glaucoma, so make sure the radiology staff knows your full medical history.

Pain Medications and Holding Still

One practical concern that doesn’t get enough attention is pain management before the scan. An MRI requires you to lie on a hard, flat table, often for 30 minutes or more, without moving. If you have chronic back pain, shoulder injury, arthritis, or any condition that makes it painful to stay still, taking your usual pain medication before the appointment is generally a good idea. In fact, allowing pain to go untreated can produce motion artifacts that ruin the images.

Research on shoulder MRI specifically found that when pain was managed with a local anesthetic during the procedure, motion-related image degradation dropped significantly compared to patients who were not given pain relief.11PubMed. Shoulder MR arthrography: intraarticular anesthetic reduces periprocedural pain and major motion artifacts but does not decrease imaging time While that study used an injected anesthetic rather than an oral pill, the takeaway is clear: pain during the scan leads to movement, and movement degrades image quality. If you typically take acetaminophen, ibuprofen, or a prescription pain medication, check with your ordering physician, but in most cases taking it before the scan helps rather than hurts.

Caffeine and Functional Brain MRI

Standard structural MRI, the type used to look at your knee, spine, or brain anatomy, is not affected by caffeine. But if you are undergoing a functional MRI (fMRI), which measures brain activity in real time through blood-flow changes, your morning coffee becomes relevant. Caffeine is a vasoconstrictor: it narrows blood vessels and reduces cerebral blood flow. One study measured roughly a 35% decrease in blood flow to the visual cortex after caffeine intake.12PubMed Central. Caffeine-induced uncoupling of cerebral blood flow and oxygen metabolism: a calibrated BOLD fMRI study

fMRI works by detecting the blood-oxygen-level-dependent (BOLD) signal, essentially tracking where blood flow increases when you perform a task or think about something. Caffeine disrupts the relationship between neural activity and blood flow, which can shrink or distort the BOLD signal in some brain regions. Research using simultaneous brain electrical recordings and fMRI showed that caffeine reduced the BOLD response in visual and motor areas even though the underlying neural signals, measured electrically, remained unchanged.13PubMed Central. Separating neural and vascular effects of caffeine using simultaneous EEG-FMRI: differential effects of caffeine on cognitive and sensorimotor brain responses In frontal brain regions associated with attention, caffeine actually increased the signal, making interpretation even more complicated.13PubMed Central. Separating neural and vascular effects of caffeine using simultaneous EEG-FMRI: differential effects of caffeine on cognitive and sensorimotor brain responses

If you are scheduled for an fMRI, whether for presurgical brain mapping or a research study, expect to be told to avoid caffeine for at least 12 to 24 hours beforehand. For a regular diagnostic MRI of the brain or any other body part, your coffee is not a concern.

Continuous Glucose Monitors and Insulin Pumps

People with diabetes often worry about whether their wearable devices need to come off for an MRI. Insulin pumps, which contain metal components and electronics, generally do need to be removed before entering the scanner room. The magnetic field can damage the pump’s motor and electronics, and the metal can heat up or be pulled by the magnet.

Continuous glucose monitors (CGMs) are a different story and the data is more reassuring. Laboratory testing of several CGM sensors found that the force exerted on them by a 3-Tesla MRI, the most powerful scanner type commonly used in clinical settings, was far too weak to pull them off the body. One study measured displacement forces more than 100 times smaller than what it would take to actually dislodge a sensor from the skin, and temperature increases of less than 2°C.14PubMed Central. Safety and Functional Integrity of Continuous Glucose Monitoring Components After Simulated Radiologic Procedures A follow-up study under high-exposure conditions confirmed that patients can continue wearing and using their CGM sensors during and after MRI.15PubMed Central. Safety and Functional Integrity of Continuous Glucose Monitoring Sensors When Used During Radiologic Procedures Under High Exposure Conditions

That said, the sensor’s readings may be inaccurate during the actual scan and for a short window afterward, so plan to check your blood sugar with a fingerstick if you need to know your level right after the exam. Always check the manufacturer’s specific labeling for your device model, since MRI compatibility varies between brands and sensor generations. If you wear an insulin pump, talk with your endocrinologist in advance about how to manage your basal insulin delivery during the time the pump is disconnected.

Parkinson’s Disease Medications

Patients with Parkinson’s disease face a unique situation. Levodopa and other dopaminergic medications are sometimes deliberately withheld before a brain MRI when the radiologist wants to see the brain in its “off” state, that is, without the medication masking tremor or other motor symptoms. This is not because the medication is unsafe in the scanner but because the imaging question may require seeing the unmedicated brain.

Research has shown that dopamine directly modulates brain activity in the thalamus, the relay station involved in resting tremor, and that patients whose tremor responds most to dopamine show the strongest changes in that brain region’s connectivity.16Brain. Dopamine controls Parkinson’s tremor by inhibiting the cerebellar thalamus If the purpose of your scan is to assess tremor circuitry or monitor disease progression, your neurologist may ask you to skip your morning dose. If the MRI is for something unrelated, like checking your lumbar spine, take your Parkinson’s medication as usual. Skipping it unnecessarily can lead to increased tremor during the scan, which causes motion artifacts and makes the images harder to read.

Sedation for Children

Young children often cannot hold still long enough for an MRI, so sedation is common. The medications used, typically oral chloral hydrate, midazolam, or general anesthesia for longer scans, are given at the facility, but the preparation starts at home. Many pediatric centers now use protocols that include modified fasting (to reduce aspiration risk) and a shorter night’s sleep beforehand so the child is drowsy and more responsive to sedation.

One hospital reported that implementing a formal protocol combining fasting instructions with sleep restriction the night before raised their MRI success rate from about 88% to nearly 99%, and more scans started on time.17PubMed. Sedation protocol with fasting and shorter sleep leads to magnetic resonance imaging success If your child’s MRI center sends pre-appointment instructions about bedtime and eating schedules, following those closely makes a real difference. And if your child takes daily medications, ask the sedation team which ones can be given with a tiny sip of water during the fasting window. Most essential medications, such as seizure drugs, are allowed.

Herbal Supplements and Over-the-Counter Products

Patients sometimes wonder about supplements, vitamins, and herbal products. In general, these do not interfere with MRI imaging or safety. There are no known interactions between the magnetic field and common supplements like fish oil, vitamin D, or multivitamins. The main exception would be iron supplements taken in very high doses, which could theoretically produce tiny susceptibility artifacts on certain sequences, but in practice this is not clinically significant for standard imaging.

Where supplements become relevant is the same place prescription drugs do: contrast dye. If you take anything that stresses the kidneys, whether it is high-dose creatine, certain herbal preparations, or NSAIDs like ibuprofen, and you are getting a contrast-enhanced scan, your kidney function matters. Let the imaging team know everything you take regularly so they can assess your risk.

What to Tell the MRI Team

The screening questionnaire you fill out before your MRI asks about implants, devices, and metal in your body, but it does not always ask specifically about every medication. Volunteer the information anyway. The items worth flagging include any medication patches on your skin, whether you take metformin, whether you used anti-anxiety medication before the appointment, whether you wear a CGM or insulin pump, and whether you have taken blood thinners if a contrast injection or any MRI-guided procedure is planned. Arriving with a written list of your current medications, including dose and timing, speeds up the screening process and lets the technologist and radiologist make the best decisions for your scan. In the vast majority of cases, the answer will be reassuring: keep taking your medications, and let’s get you imaged.