Your primary care doctor is the right first stop for insomnia. They can screen for underlying medical causes, start initial treatment, and refer you to a specialist if needed. Where you go from there depends on what’s driving your sleep problems, whether that’s a physical condition, a mental health issue, or a behavioral pattern that needs restructuring.
Start With Your Primary Care Doctor
A primary care physician can do more for insomnia than most people expect. The first appointment typically focuses on your health history, current medications, and any medical problems that might be disrupting sleep. Many common conditions, from thyroid disorders to chronic pain to acid reflux, cause or worsen insomnia. Your doctor will likely order blood tests to rule out thyroid problems and other metabolic issues that interfere with sleep.
You’ll also be asked about your sleep history: how long you sleep each night, how well you sleep, whether you snore or gasp for air, and how long the problem has been going on. If you have a bed partner, your doctor may want to ask them questions too, since people with sleep apnea or restless leg syndrome often don’t realize what’s happening while they’re asleep. Many doctors will ask you to keep a sleep diary for one to two weeks before or after the first visit. This log tracks your bedtimes, wake times, caffeine and alcohol intake, medications, and daytime sleepiness. It gives your doctor a much clearer picture than a single conversation can.
Clinically, insomnia is diagnosed when sleep difficulties happen at least three nights per week. An episode lasting under three months is considered short-term, while symptoms persisting three months or longer are classified as chronic insomnia. Your doctor will use these benchmarks to determine how aggressively to pursue treatment and whether a specialist referral makes sense.
When You Need a Sleep Specialist
If your primary care doctor suspects something beyond straightforward insomnia, you’ll likely be referred to a sleep medicine specialist, formally known as a somnologist. These doctors come from a variety of medical backgrounds, including neurology, psychiatry, internal medicine, and ear, nose, and throat (ENT) medicine, and then complete additional fellowship training focused specifically on sleep disorders.
A sleep specialist is particularly useful when your symptoms point toward conditions like sleep apnea, restless leg syndrome, or extreme daytime sleepiness that doesn’t improve with better sleep habits. They have access to diagnostic tools your primary care doctor typically doesn’t, including overnight sleep studies that monitor your brain waves, breathing, heart rate, and movement throughout the night. These tests can reveal problems that are invisible during a standard office visit.
Sleep specialists also coordinate with other providers depending on what they find. If structural issues in your airway are contributing to snoring or apnea, an ENT doctor may get involved. If a neurological condition is disrupting your sleep-wake cycle, a neurologist steps in. The sleep specialist acts as a central hub, connecting you to the right people based on your specific diagnosis.
Therapy for Insomnia: Behavioral Sleep Medicine
For many people with chronic insomnia, the most effective treatment isn’t a medication. It’s a structured form of therapy called cognitive behavioral therapy for insomnia, or CBT-I. This approach targets the thoughts, habits, and anxieties that keep you awake, and it’s recommended as the first-line treatment by every major sleep medicine guideline. It typically involves techniques like stimulus control (retraining your brain to associate the bed with sleep), sleep restriction (temporarily limiting time in bed to build stronger sleep drive), and cognitive restructuring to address the racing thoughts that fuel sleeplessness.
The providers trained to deliver CBT-I are called behavioral sleep medicine specialists. Most hold doctoral degrees in psychology (Ph.D. or Psy.D.) and have completed specialized training in sleep. Some psychiatrists and other medical doctors also receive this training during fellowship programs. The credentialing body is the American Board of Sleep Medicine, which offers a certification in behavioral sleep medicine (CBSM). The catch is that there aren’t nearly enough of these specialists to go around. As of the last major count, fewer than a hundred providers held this certification nationwide, though the number has grown since then. That scarcity means wait times can be long, and many people end up working with therapists who have some CBT-I training but not the full board certification.
If you can’t find a certified behavioral sleep medicine specialist nearby, look for a licensed psychologist or therapist who lists CBT-I as a specialty. Several digital CBT-I programs also exist that walk you through the same techniques in a structured, self-paced format, and some have strong clinical evidence behind them.
Psychiatrists and Mental Health Providers
Insomnia and mental health conditions feed each other. Depression, anxiety, PTSD, and bipolar disorder all commonly disrupt sleep, and chronic insomnia raises the risk of developing these conditions in return. If your insomnia started around the same time as mood changes, persistent worry, or trauma, a psychiatrist or other mental health provider may be the most direct path to better sleep.
Psychiatrists can prescribe medication when appropriate and also evaluate whether a current medication you’re taking might be causing your insomnia. Antidepressants, stimulants, corticosteroids, and some blood pressure medications are well-known sleep disruptors. A psychiatrist can adjust dosages, switch medications, or add targeted sleep support without destabilizing treatment for your primary condition. Psychologists and licensed therapists, while they can’t prescribe in most states, are often the ones delivering CBT-I and addressing the anxiety or depression intertwined with your sleep problems.
The Role of Your Pharmacist
Pharmacists are an underused resource for insomnia, especially if you’re already taking sleep aids or considering over-the-counter options. A growing body of research supports pharmacists playing a more active role in insomnia care, including screening for sleep problems, reviewing whether your current medications might be interfering with sleep, and helping you taper off sedative sleep medications that may be doing more harm than good. A scoping review of 28 studies found that pharmacists with specialized training can effectively provide insomnia screening, basic behavioral therapy techniques, and medication deprescribing services.
This doesn’t replace a doctor visit, but it’s worth having a conversation with your pharmacist if you’ve been relying on sleep medications for a long time or if you’re juggling multiple prescriptions. They can flag drug interactions and timing issues that your other providers might miss.
How to Prepare for Your First Appointment
Whichever provider you see first, you’ll get more out of the visit if you arrive with data. The National Heart, Lung, and Blood Institute publishes a free sleep diary template designed for exactly this purpose. For at least one to two weeks before your appointment, track: what time you go to bed, how long it takes you to fall asleep, how many times you wake up during the night, what time you get up in the morning, any caffeine or alcohol you consumed and when, medications you took, and how sleepy or alert you felt during the day.
Also write down any patterns you’ve noticed. Does your insomnia get worse on work nights? After exercise? During certain seasons? This kind of context helps your provider distinguish between insomnia driven by habits, insomnia driven by an underlying condition, and insomnia driven by stress or mental health, each of which leads to a different treatment path. The more specific you can be, the faster you’ll get to the right provider and the right solution.

