Prescription treatments for insomnia include Z-drugs (such as zolpidem), benzodiazepines, tricyclic antidepressants, orexin receptor antagonists, and melatonin receptor agonists.
Over-the-counter medicine for insomnia may include antihistamines such as diphenhydramine or doxylamine, as well as natural supplements like melatonin.
Other things that may help insomnia symptoms include cognitive behavioral therapy, sticking to a regular sleep schedule, maintaining a comfortable sleep environment, and winding down before bed.
Insomnia can be a short-term or chronic condition that is characterized by an inability to fall asleep. Those with insomnia may also experience an inability to stay asleep, or they wake up too early and are unable to fall back asleep. This disruption in sleep patterns can lead to excessive daytime sleepiness, irritability, not feeling well-rested, increased stress, and difficulties with memory, learning, and performing daily tasks. A chronic lack of sleep can often contribute to health problems, such as a weakened immune system, and negative effects on mood, such as depression and anxiety. Continue reading to learn more about insomnia and the different treatment options available, such as lifestyle changes and medications.
A healthcare provider will look to identify the cause of the insomnia in order to make a diagnosis and recommend treatment options. In some cases, you may be referred to a sleep specialist, psychiatrist, or other specialist. The different causes of insomnia may include stress, chronic pain, certain medical conditions or medications, mental health disorders, and lifestyle factors, such as taking naps late in the afternoon or overconsuming caffeine or alcohol.
During a diagnosis, a healthcare provider might assess for any risk factors that may be contributing to your insomnia. Risk factors for insomnia can include, but are not limited to, older age, medical conditions like GERD or asthma, medications like decongestants, and a disrupted sleep schedule.
Different tests and evaluations may be used to confirm a diagnosis of insomnia. A diagnosis may start with a physical exam and an evaluation of your complete medical history. A clinician may recommend a mental health exam to determine whether your emotional well-being may be affecting your ability to sleep. A healthcare provider may also order a blood test to get a full picture of your medical condition. Blood tests can help determine if other health conditions, such as thyroid problems, may be contributing to your insomnia. Other tools that may be used to diagnose primary insomnia include:
A clinician will attempt to get a full picture of your sleep history to help confirm a diagnosis of insomnia. They may ask you to keep a sleep diary every day for a couple of weeks that keeps track of different factors like how many naps you take throughout the day, what your exercise habits are like, and what you’re eating or drinking before bed. They may also ask questions like:
What time do you usually go to bed, and what time do you wake up?
Do you relax or work before bedtime?
Do you have the television on or a bright light turned on while attempting to sleep?
Are you able to fall back asleep with ease after waking up in the middle of the night?
What have you tried to help you sleep when you’re unable to sleep?
Also known as polysomnography, a sleep study is not usually recommended unless your healthcare provider suspects you have obstructive sleep apnea or another sleep disorder. This type of study is done in a sleep clinic where you will wear certain sensors to monitor brain waves, heart rate, oxygen levels, and body movements while you sleep.
This type of diagnosis tool can be done at home over days or weeks. Your healthcare provider will ask you to wear an actigraph, which is a device that is worn like a watch on your ankle or wrist to monitor different factors while you sleep.
Treatment will depend on the severity of insomnia and what may be causing it. Treatment usually starts with non-pharmacological options like lifestyle changes and cognitive behavioral therapy for insomnia (CBT-I). Exercising regularly and improving sleep hygiene habits, like winding down before bed and removing light and noise, can help manage insomnia. Cognitive behavioral therapy for insomnia is provided by a trained psychologist who will help identify anxieties that may be disrupting sleep patterns and replace those anxieties with positive beliefs about sleep. If non-pharmacological options are not enough, drugs to treat insomnia may be recommended.
Several different medications are approved by the Food and Drug Administration (FDA) to treat insomnia.
Benzodiazepines have sedative effects that can help calm a person and induce sleep. They work by slowing down activity in the brain. Some examples include Halcion (triazolam) and Restoril (temazepam). Benzodiazepines, which are controlled substances, are not typically recommended as first-line agents because of the potential for abuse and dependence.
Z-drugs are non-benzodiazepine sedatives that can help slow down activity in the brain and treat insomnia. These drugs include Ambien (zolpidem), Lunesta (eszopiclone), and Sonata (zaleplon). These medications are sometimes used in people with difficulty falling asleep or problems staying asleep.
Silenor (doxepin) is a tricyclic antidepressant FDA-approved to treat insomnia, particularly in people who have problems staying asleep. It is believed to work by blocking the histamine H1 receptor involved with wakefulness and sleep.
Quviviq (daridorexant), Dayvigo (lemborexant), and Belsomra (suvorexant) are FDA-approved for the treatment of insomnia. They are believed to work by blocking the actions of a chemical called orexin that is involved with wakefulness.
Over-the-counter antihistamines are typically used to treat allergy symptoms. However, certain antihistamines like Benadryl (diphenhydramine) and Unisom (doxylamine) have sedative effects, and are sometimes used short-term to treat insomnia. Melatonin is a natural hormone that is involved with the sleep-wake cycle, and it can be purchased as an over-the-counter supplement. Over-the-counter medications are usually only recommended for short-term insomnia. Check with a healthcare provider before using any OTC insomnia medicine, even if it is promoted as a natural supplement.
A melatonin receptor agonist, such as Rozerem (ramelteon), may help in certain cases where people have problems falling asleep. It works by acting like melatonin, which naturally helps regulate the sleep-wake cycle.
The best medication for insomnia depends on several factors, such as the severity of the condition, your overall medical history, and any medications you may be taking. Many people may react differently to the same medication. Therefore, it’s important to consult a healthcare provider for the best insomnia medication for you. The following insomnia medication list can give you an idea of what your healthcare provider may recommend.
| Drug name | See SingleCare price |
|---|---|
| Ambien | Get free coupon |
| Lunesta | Get free coupon |
| Zaleplon | Get free coupon |
| Belsomra | Get free coupon |
| DAYVIGO | Get free coupon |
| Quviviq | Get free coupon |
| Rozerem | Get free coupon |
| Silenor | Get free coupon |
| Restoril | Get free coupon |
| Banophen | Get free coupon |
| Melatonin | Get free coupon |
This is not an exhaustive list of insomnia medications. Always ask your healthcare provider for the best treatment for insomnia based on your health condition and medical history.
The most common side effects of prescription insomnia medications include:
Drowsiness during the day
Dizziness
Headache
Constipation
Diarrhea
Appetite changes
Stomach upset
Abnormal dreams
Fatigue
Memory problems
Problems with coordination
Sleep-related impairment while driving or operating machinery
Prescription sleeping pills can also cause serious side effects. The use of some prescription sleeping pills (notably the Z-drugs) comes with an increased risk of parasomnia, which can lead to dangerous behaviors without any awareness of what is happening. Sleep aids can also increase the risk of falls in older adults. Consult a healthcare provider about other possible side effects, drug interactions, warnings, and precautions before using a medicine for insomnia.
Create a consistent and regular sleep schedule to help synchronize your body’s biological clock. Maintaining a nighttime routine before bed can help you stay on track. That means finishing work and eating dinner well before it’s time for bed. It’s also best to limit or avoid napping throughout the day.
Light can interfere with regular sleep cycles and reduce the amount of time spent asleep. Make sure to turn off devices that can emit blue light, such as TVs and phones. Blue light is known to suppress the secretion of melatonin. Too much noise can also disrupt sleep patterns, so make sure to block out as much noise as possible.
Make use of a comfortable mattress and pillows. The temperature should not be too hot or too cold, although it is recommended to keep the temperature below room temperature since blankets and coverings can increase body temperature.
Nicotine, alcohol, and caffeine can affect sleep patterns, especially if consumed late in the day. One study found that smoking or drinking within four hours of bedtime can lead to increased sleep fragmentation.
It’s important to wind down at least 30 minutes before bed. You can implement muscle relaxation exercises, gentle breathing, or meditation to help prep the body and mind for deep and restful sleep.
"Having trouble sleeping can often lead to stress, and stress can make it harder to sleep, which can create a frustrating cycle," says Karen Berger, Pharm.D., member of the SingleCare Medical Review Board. "Making some lifestyle changes and talking to your healthcare provider about treatment options may help you get back to sleeping through the night."
There are many different possible causes of insomnia, including stress, poor sleep habits, and an irregular sleep schedule. Other medical conditions, like restless legs syndrome, and mental health conditions, like depression or anxiety, can also contribute to insomnia.
Experts often refer to two main types of insomnia: short-term insomnia and chronic insomnia. Short-term (acute) insomnia typically lasts for less than three months and is often caused by a stressful event, such as a loved one’s passing. Chronic insomnia is longer-lasting, and is when you have trouble falling or staying asleep at least three nights a week for three months or longer.
Depending on the cause, different treatments can be used to help improve insomnia. Lifestyle changes and prescription or over-the-counter sleep aids can help improve sleep quality, sleep maintenance, sleep onset, and sleep time. Cognitive behavioral therapy may also be recommended and include different techniques, such as sleep restriction therapy, stimulus control therapy, and biofeedback.
Insomnia is considered a sleep disorder, not a mental illness, according to the American Academy of Sleep Medicine. It may be a symptom of different mental health conditions like anxiety disorders or depression. In some cases, insomnia can also contribute to the development of medical and mental health conditions.
Good sleep is important for your physical health and well-being. If you’re having trouble sleeping on a consistent basis, you should consult a healthcare provider to determine the underlying cause. A healthcare provider can diagnose an insomnia disorder and recommend the best treatment option for you.
Insomnia, MedlinePlus (2024)
Insomnia, Cleveland Clinic (2026)
Insomnia overview: Epidemiology, pathophysiology, diagnosis and monitoring, and nonpharmacologic therapy, The American Journal of Managed Care (2020)
Who is at risk for insomnia?, Stanford Health Care
Blue light has a dark side, Harvard Health (2024)
What are the different types of insomnia?, Sleep Foundation (2025)
Insomnia treatment, National Heart, Lung, and Blood Institute (2022)
Sleep restriction and CBTI, Stanford Health Care
After receiving her doctorate from the University of Pittsburgh School of Pharmacy, Karen Berger, Pharm.D., has worked in both chain and independent community pharmacies. She currently works at an independent pharmacy in New Jersey. Dr. Berger enjoys helping patients understand medical conditions and medications—both in person as a pharmacist, and online as a medical writer and reviewer.
...Health education, drug info, wellness & more
SingleCare is a prescription discount service that offers free coupons on thousands of prescription drugs. It can be used whether you have insurance, Medicare, Medicaid, or none of the above, but it cannot be combined with insurance.
SingleCare provides transparent drug pricing, so you can compare discounts at pharmacies near you. Browse singlecare.com to find drug discounts, helpful information about your prescription, and resources to help you make informed health decisions.
Prescription savings vary by prescription and by pharmacy, and may reach up to 80% off cash price. This is a medical discount plan. This is NOT insurance. This program offers you the opportunity to locate providers of various types of medical services who will offer their services to you at discounted rates. The range of discounts for medical or ancillary services provided under the plan will vary depending on the type of provider and service received. You are fully responsible for paying for all health care services but will be entitled to receive a discount from those health care providers in accordance with the specific pre-negotiated discounted fee schedule. This program does not guarantee the quality of the services or procedures offered by the providers. Except for prescription drugs which you will pay directly to the pharmacy at the time of purchase, all other services received through a program provider will be charged to the credit card on file in your member account. The charge will include an administrative fee for use of the program. Towers Administrators LLC is the licensed discount medical plan organization with its administrative office located at 4510 Cox Road, Suite 111, Glen Allen, VA 23060. SingleCare Services, LLC is the marketer of the discount medical plan organization including its website, singlecare.com, with its corporate office located at 99 High Street, Suite 2800, Boston, MA 02110. For additional information, including an up-to-date list of providers, or assistance with any issue related to program membership, please contact member support any time at www.singlecare.com, or by calling toll-free 844-234-3057, 24 hours, 7 days a week (except major holidays). Pharmacy names, logos, brands, and other trademarks are the property of their respective owners.
Blog articles are not medical advice. They are intended for general informational purposes and are not meant to be a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition. If you think you may have a medical emergency, immediately call your physician or dial 911.
© 2026 SingleCare Administrators. All rights reserved
© 2026 SingleCare Administrators. All rights reserved