Skip to main content
FishtownFish wrapped around the rod of AsclepiusMedicine
Philadelphia Primary Care
Articles
Digital Health Literacy
Cut through health misinformation
Symptoms
What your body is telling you
Treatments
Protocols, prescriptions, therapies
Longevity
Medicine 3.0 strategies
Heart Health & Risk
Protect your heart & vessels
Metabolism
Insulin, blood sugar, weight
Hormones
TRT, thyroid, menopause, andropause
Performance
VO2 max, muscle, sleep, gut
Playbooks
Step-by-step frameworks
About
Meet Dr. Ash
Your Physician
GER·O·SPAN
Our Clinical Framework
What People Say
124 patient reviews across 6 platforms
Pricing & Membership
Transparent membership pricing
FAQ
Common Questions
Tell Dr. Ash
Cant Sleep? Fix the Root Cause.
Fishtown Medicine•8 min read
4.96 (124)

Cant Sleep? Fix the Root Cause.

Ashvin Vijayakumar MD

Medically Reviewed

Ashvin Vijayakumar MD•Updated July 17, 2026
On This Page
  • Why Do I Wake Up at 3 AM Even Though Im Tired?
  • 1. The Metabolic Wake-Up: Nocturnal Hypoglycemia
  • 2. The Hormonal Wake-Up: Low Progesterone or High Cortisol
  • 3. The Histamine Wake-Up: Histamine Intolerance and MCAS
  • How Do I Know If My Insomnia Is Behavioral or Biological?
  • Why does short sleep flare skin and inflammatory conditions?
  • When Should I See a Doctor for Insomnia?
  • Actionable Steps in Philly
  • ✦Key Takeaways
  • Common Questions
  • Do you prescribe Ambien or Lunesta for insomnia?
  • Do you do sleep studies in your Philadelphia practice?
  • Will magnesium help with insomnia?
  • Can poor sleep make my skin or an autoimmune condition flare?
  • Can men have hormonal insomnia?
  • Is melatonin safe to take every night?
  • How long does it take to fix insomnia at the root?
  • Can shift workers ever sleep well?
  • What about CBT-I?
  • Deep Questions
  • What are the safest sleep supplements to try first?
  • How does alcohol affect my sleep cycles?
  • Can SSRIs cause insomnia?
  • Is sleep insomnia different during pregnancy?
  • What about insomnia in perimenopause specifically?
  • Can ADHD cause insomnia?
  • How do I know if I have sleep apnea even if Im not overweight?
  • What if I have anxiety and insomnia together?
  • Are weighted blankets useful?
  • Can mold in old Philly row homes cause insomnia?
  • How is insomnia connected to long COVID?
  • Should I avoid caffeine if I have insomnia?
  • Can THC or CBD help me sleep?
  • How does short sleep raise inflammation markers like NLR?
  • What labs should I ask my doctor to run for insomnia?
  • Scientific References
  • Related at Fishtown Medicine

Get a preventive doctor that knows you.

Consult Dr. Ash
TL;DR30-second take

Insomnia in healthy adults is often a biology problem rather than a hygiene problem. The 3 AM wake-up is usually driven by a blood sugar dip, a cortisol spike, low progesterone, or a histamine surge. When you fix the underlying biology instead of reworking sleep habits alone, you start to stay asleep through the night.

Falling asleep was never the hard part for you. You go down fine, and then it's 3:15 AM, your eyes are open, your heart is going, and your head is already on the inbox and the leak in the roof. You're not groggy and drifting back off. You're awake, in a way that feels like your body made the decision without you.

So you do the sensible thing and see a sleep doctor at one of the big health systems, and you come home with a home sleep test.

  • Result: "No sleep apnea."
  • Solution: "Try CBT-I, or I can give you something like Ambien."

A home sleep test is worth having, and CBT-I helps plenty of people, so neither of those is a bad answer. But when your airway checks out and your thinking wasn't what pulled you awake, something else did, and that something is usually findable.

Dr. Ash
"In my practice the 3 AM wake-up is almost never a discipline problem. It's your brain deciding something is wrong enough to get you on your feet, and my job is to work out what it noticed."

Why Do I Wake Up at 3 AM Even Though Im Tired?

When a healthy adult wakes at 3 AM, the cause is usually something happening in the body rather than something wrong with the bedtime routine. Your brain has read an internal emergency and is doing the job it evolved to do, which is get you conscious and moving. Here are the 3 patterns I run into most often with my Philly patients.

1. The Metabolic Wake-Up: Nocturnal Hypoglycemia

Nocturnal hypoglycemia means your blood sugar falls too low while you're asleep, and it turns up most after a heavy carb dinner or a few drinks. Your brain treats a falling glucose level the way it would treat a fire alarm, so it sends out adrenaline and cortisol, your stress hormones, and those are what pull you out of sleep and send you looking for food. The pounding heart you notice at 3 AM is that adrenaline arriving.

  • My Fix: I want a Continuous Glucose Monitor (CGM) on you for a couple of weeks, which is a small sensor you wear on the back of your arm that reads blood sugar around the clock. Then we sit down together and see whether the nights you woke are the same nights your glucose fell. If they are, I'll give you what I call a Bedtime Anchor, a small snack of protein and fat that holds you steady until morning.

2. The Hormonal Wake-Up: Low Progesterone or High Cortisol

In women the usual driver is progesterone, the calming hormone that holds you down in deep sleep. Through perimenopause, the years leading up to menopause that often begin in the late 30s or the mid 40s, progesterone drops fast, and broken sleep is frequently the first symptom a woman notices. In men the pattern looks different: evening cortisol that stays high when it should be falling, or testosterone low enough to break the night into pieces.

  • My Fix: For women I draw Day 21 hormones, which is the point in the cycle where progesterone ought to be at its highest, and if that number comes back low we talk about bio-identical progesterone to rebuild sleep architecture. For men I want the cortisol curve mapped across the whole day and a full sex-hormone panel in front of me before I change anything.

3. The Histamine Wake-Up: Histamine Intolerance and MCAS

Histamine is the messenger your body uses for allergies and for digestion, and it doubles as an excitatory signal that keeps the brain switched on. Mast Cell Activation Syndrome, or MCAS, is the condition where mast cells, a kind of immune cell, release more histamine than the moment calls for. Add aged cheese, wine, and last night's leftovers, or a damp Philly basement with mold in the walls, and your histamine bucket fills up until it overflows in the middle of the night. That shows up as itching, a racing heart, and the wide-awake feeling that arrives with no story attached to it.

  • Our Fix: We try eating low-histamine for 2 to 4 weeks and see what your nights do with that, and if the sleep comes back we add mast cell stabilizers, which are medications that settle those cells down so you can widen the diet again.

How Do I Know If My Insomnia Is Behavioral or Biological?

The timing tells you most of it. If your mind starts racing the moment you get into bed and you lie there unable to drop off, that pattern is usually behavioral, and CBT-I (Cognitive Behavioral Therapy for Insomnia) is the gold standard for treating it, because by then you have learned to dread your own bed. If you fall asleep without trouble and then can't stay asleep, the cause is usually biological.

You can't behavior your way out of a hypoglycemia crash, so I clear the biology first. If the biology is handled and you still can't sleep, I'll send you to a CBT-I therapist I trust to retrain the brain, and I stay in it with you while that work happens.

Why does short sleep flare skin and inflammatory conditions?

Short sleep flares skin and inflammatory conditions because a night or 2 under about 6 hours raises cortisol and tilts your immune signaling toward a more inflamed state, and that tilt happens body-wide rather than only in the brain that's keeping you awake. If you live with eczema, psoriasis, or another inflammatory or autoimmune condition, you have probably noticed your skin or your joints getting louder during the same stretch your sleep came apart. It runs in both directions too, since a flare will wake you up on its own.

You can see this on ordinary blood work. A rising neutrophil-to-lymphocyte ratio on a standard blood count is a stress fingerprint, and it tends to move during the same weeks a patient tells me were their worst for sleep; our guide to what your blood count reveals goes through how to read one. If you live with a flare-prone condition, write your sleep hours down next to your symptoms for a few weeks. The pattern is usually obvious once you have both columns in front of you, and our guide to eczema that won't settle walks through the fuller mechanism for one common example.

Get Real Answers

Tired of being told your labs are 'normal'? Dr. Ash digs deeper.

Start Your Investigation

When Should I See a Doctor for Insomnia?

Come see someone when the bad nights are running 3 or more a week and have been going for more than 3 months, or sooner than that if your work, your mood, or your driving is taking the hit. Insomnia predicts heart disease and Alzheimer's more strongly than smoking does, so it earns a full workup in my practice. Get evaluated if any of this sounds like you:

  • You lie there more than 30 minutes before you fall asleep, which we call sleep latency.
  • You wake in the night and stay awake more than 30 minutes, which we call WASO, or wake after sleep onset.
  • You have come to need alcohol or THC to get to sleep, and both of those suppress REM, the dreaming stage your brain uses to reset emotion and memory.

Actionable Steps in Philly

Where I'd start with stubborn insomnia.

  1. Steady the blood sugar. Have a small snack of protein and fat about 60 minutes before you go to bed, every night for 2 weeks, and keep a note on your phone of the nights you woke up so we have something to read later.
  2. Get light in your eyes early. Within an hour of waking, step outside and stay out there 10 minutes. The Delaware River trail is a few blocks away for a lot of you, and the walk to your coffee in Fishtown does the same job.
  3. Cool the room down. Put the thermostat at 65 to 67 degrees Fahrenheit, since your core temperature has to fall for deep sleep to happen and a warm bedroom stops it before it starts.
  4. Look hard at the nightcap. Go 2 weeks without alcohol and watch what your tracker tells you. Most of my patients are seeing deeper sleep by day 5.
  5. Get tested if it holds. If 2 weeks of the basics change nothing, ask for a CGM trial, a 4-point cortisol panel, and Day 21 hormones.
✦

Key Takeaways

  1. Glucose matters. Stable blood sugar usually means stable sleep.
  2. Alcohol is the enemy. It helps you pass out, but it almost guarantees a 3 AM cortisol spike.
  3. Temperature matters. Deep sleep needs a drop in core body temperature. 65 to 67°F is non-negotiable.
  4. Light is medicine. Morning sunlight sets the timer for tonights melatonin release.

Scientific References

  1. Riemann D, et al. "European guideline for the diagnosis and treatment of insomnia." Journal of Sleep Research. 2017.
  2. Morin CM, et al. "Cognitive behavioral therapy, singly and combined with medication, for persistent insomnia." JAMA. 2009.
  3. Walker MP. "Why We Sleep." Scribner, 2017.
  4. Sofer S, et al. "Greater weight loss and hormonal changes after 6 months diet with carbohydrates eaten mostly at dinner." Obesity (Silver Spring). 2011.
  5. Prather AA, et al. "Behaviorally Assessed Sleep and Susceptibility to the Common Cold." Sleep. 2015.

Related at Fishtown Medicine

  • Restless Legs: A Brain Running Low on Iron - a common, overlooked reason the legs will not let you sleep
  • Anxiety vs Physiology - the medical causes of anxiety-like symptoms
  • Memory Loss - the workup for memory concerns at any age
  • Low Libido - the biology, relationship, and mood factors in low desire
  • Eczema That Won't Settle - when short sleep is the biggest flare trigger
  • What Your Blood Count Reveals - reading the cortisol and stress fingerprint off a standard CBC
Medical Disclaimer: This resource provides clinical context for educational purposes. In the world of Precision Medicine, there is no "one size fits all". The right sleep protocol must be matched to your unique lab work, physiology, and goals. Consult Dr. Ash to determine if this approach is right for you, particularly if you have chronic health conditions or are taking prescription medications.

Related Articles:

  • The Importance of Sleep
  • Chronic Fatigue & HPA Axis
  • Metabolic Health

Dr. Ash is a board-certified internal medicine physician at Fishtown Medicine in Philadelphia. He helps patients move from sedation to true restoration by fixing the biology of sleep.

Ashvin Vijayakumar MD (Dr. Ash)

Fishtown Medicine | Symptoms

2418 E York St, Philadelphia, PA 19125·(267) 360-7927·hello@fishtownmedicine.com·HSA/FSA Eligible

Start Your Intake

Frequently Asked Questions

Common Questions

I prescribe Ambien or Lunesta rarely, and only for short-term crises like grief or transcontinental travel. These drugs sedate you rather than giving you restorative sleep. They turn off awareness, but they do not let your brain do its overnight cleaning (a process called glymphatic clearance, where the brain washes out waste proteins).
Yes, I order home sleep tests, usually the WatchPAT, to screen for sleep apnea (a condition where breathing stops repeatedly during sleep). If you have complex apnea or need a CPAP machine fitted, I refer to my colleagues at Penn Sleep or Jefferson Sleep Centers for in-lab studies and titration.
Yes, magnesium often helps, particularly magnesium glycinate or magnesium threonate. Avoid magnesium citrate at night unless you also want a laxative effect. Magnesium calms NMDA receptors (the "go" switches in the brain), which lowers the background noise that keeps you wired.
Yes. Short sleep raises cortisol and shifts immune signaling toward a more inflamed state, and many patients with eczema, psoriasis, or autoimmune conditions can trace their worst flares to their worst stretches of sleep. Fixing the sleep is often one of the most effective, and most overlooked, levers for calming the flare. See our guide to eczema that won't settle for a detailed look at one common example.
Yes, men can have hormonal insomnia. High estradiol in men, often driven by belly fat that converts testosterone into estrogen, or low testosterone itself, can fragment sleep. Treating the underlying hormones often fixes the sleep problem at the same time.
Melatonin is safe for most adults at low doses (0.3 to 1 mg) used short term, but it is not meant to be a nightly sedative. Most over-the-counter doses (5 to 10 mg) are far higher than your body produces. I use melatonin for jet lag and shift work, not as a long-term sleep aid.
Most patients see meaningful change in 4 to 8 weeks once we identify the driver. Blood sugar fixes show up in about 2 weeks. Hormonal fixes (progesterone, thyroid) take 6 to 8 weeks. Histamine and mast cell work usually shows up at the 4-week mark.
Shift workers can sleep well, but they need a structured plan. We use blackout shades, timed light exposure, and sometimes short-term low-dose melatonin to anchor a new circadian rhythm. The key is consistency, even on days off.
CBT-I, or Cognitive Behavioral Therapy for Insomnia, is the gold standard for psychological insomnia (sleep anxiety). I highly recommend it as a companion to the biological work. The VA Insomnia Coach app, built by the Department of Veterans Affairs, is a free, evidence-based tool. I have seen many of my patients benefit from using it to retrain their sleep patterns.

Deep-Dive Questions

The safest first-line sleep supplements are magnesium glycinate (200 to 400 mg), L-theanine (200 mg), and apigenin (50 mg). All 3 calm the nervous system without producing sedation or dependence. I usually start with magnesium alone for 2 weeks before adding anything else.
Alcohol shortens the time it takes to fall asleep, but it blocks REM sleep (the dreaming stage that handles memory and emotion) for the first half of the night. As your liver clears the alcohol, you get a "REM rebound" plus a cortisol spike, which is why you wake up at 3 AM after wine with dinner.
Yes, SSRIs (a class of antidepressants like Lexapro, Zoloft, and Prozac) commonly cause insomnia, vivid dreams, and reduced REM sleep. If you started a new SSRI and your sleep tanked, that is a known side effect. Talk to your prescriber. Sometimes a dose-time change (morning instead of night) is all that is needed.
Yes, insomnia during pregnancy is its own beast. Rising progesterone helps in the first trimester but causes more middle-of-night wake-ups later. We avoid most sleep medications and instead focus on iron, magnesium, side-sleeping pillows, and managing reflux. Always coordinate with your OB.
Perimenopausal insomnia is one of the most common reasons women come to my Philly practice. As progesterone drops, deep sleep and the ability to stay asleep both fall apart. Hot flashes and night sweats add a layer of arousal on top. We test hormones, address vasomotor symptoms (hot flashes and night sweats), and often use cyclic bio-identical progesterone.
Yes, ADHD (Attention Deficit Hyperactivity Disorder) often comes with delayed sleep phase, where your body wants to fall asleep at 2 AM and wake at 10 AM. Stimulant medications can also keep you wired if dosed too late. We work on a hard cutoff time for stimulants and use morning light plus melatonin to move the rhythm earlier.
You can have sleep apnea even at a healthy weight. Look for loud snoring, witnessed pauses in breathing, morning headaches, dry mouth, or unrefreshing sleep. A small jaw, a thick neck, or a deviated septum all raise risk. A home sleep test settles the question in a single night.
Anxiety and insomnia almost always feed each other. We treat both at once. We address the biology (cortisol curve, blood sugar, magnesium) while also using CBT-I and, when needed, a short course of medication. Treating only one side rarely works.
Weighted blankets help some people, particularly those with anxiety or sensory sensitivity. The deep pressure stimulation activates the parasympathetic nervous system (your rest-and-digest mode). Aim for about 10% of your body weight. They are not a fix, but they are a low-risk add-on.
Yes, mold exposure can cause insomnia, particularly in older Philly row homes with damp basements. Mold-driven histamine release and inflammation can wake you at night. If you wake up congested or with itchy skin, a home inspection by a qualified mold remediator is a reasonable next step.
Long COVID often disrupts the autonomic nervous system (the system that runs heart rate, breathing, and digestion automatically). That can show up as insomnia, racing heart at night, and unrefreshing sleep. We test for orthostatic intolerance, run an Organic Acids Test, and use targeted nutrient support to rebuild mitochondrial function.
You do not have to cut caffeine, but most patients with insomnia do better with a hard 10 AM cutoff. Caffeine has a half-life of about 6 hours, which means a 2 PM coffee still has half its kick at 8 PM. If you are sensitive, switch to decaf after breakfast.
THC may help you fall asleep, but it suppresses REM sleep, the stage your brain uses to consolidate memory and process emotion. Long-term use can lead to tolerance and rebound insomnia when you stop. CBD is gentler and can help anxiety-driven insomnia, but the data is still emerging. I do not recommend nightly THC for sleep.
Short sleep raises cortisol, the body's main stress hormone, which pushes neutrophils up and pulls lymphocytes down, raising the neutrophil-to-lymphocyte ratio (NLR), a marker derived from a standard blood count. This is the same mechanism that fragments deep sleep and worsens skin and autoimmune flares, since the immune shift is not confined to one organ. Our guide to what your blood count reveals covers the full mechanism and what a basic panel leaves out.
Ask for fasting glucose and insulin, hemoglobin A1c (a 3-month blood sugar average), a full thyroid panel (TSH, free T3, free T4, reverse T3, antibodies), ferritin (iron storage), vitamin D, magnesium RBC, and a 4-point salivary cortisol. For women in perimenopause, add Day 21 progesterone and estradiol.

Ready when you are

Start your intake

Dr. Ash reads every intake himself, and answers questions personally - usually within a few hours.

Related Intelligence

Social Health Is Healthspan: What 80+ Years of Research Says About Relationships and Longevity

Social Health Is Healthspan: What 80+ Years of Research Says About Relationships and Longevity

More than 80 years of research connects relationships and community to how long and how well you live. A Philadelphia doctor on what to do about it day to day.

Read Deep Dive
Emotional Health and Longevity Philadelphia | Medicine 3.0

Emotional Health and Longevity Philadelphia | Medicine 3.0

Suicide and overdose are leading causes of death for adults under 45. How a Philadelphia primary care practice integrates emotional health into longevity care.

Read Deep Dive
Alzheimer's Prevention and Cognitive Optimization Philadelphia | Medicine 3.0 Brain Health

Alzheimer's Prevention and Cognitive Optimization Philadelphia | Medicine 3.0 Brain Health

Address brain fog and protect long-term memory. A Philadelphia primary care practice helping APOE4 carriers and busy professionals build cognitive reserve.

Read Deep Dive

New patients

Talk it through with Dr. Ash.

Share where your weight and energy are now, what you have tried, and what you want the next year to look like. Dr. Ash reads every intake personally.

HSA/FSA eligible
No initiation or cancellation fees
No copays
Tell Dr. Ash what’s going on →
FishtownFish wrapped around the rod of AsclepiusMedicine
Philadelphia Primary Care
2418 E York St, Philadelphia, PA 19125Primary care in PhiladelphiaHome visits in Greater PhiladelphiaPricing & MembershipGER·O·SPAN: our clinical frameworkDigital Health Literacy

Serving Fishtown · Northern Liberties · East Kensington · Olde Richmond · Port Richmond · Old City · Callowhill · Poplar · Center City · Center City West · Art Museum · Bella Vista · Chestnut Hill · Fairmount · Fitler Square · Graduate Hospital · Logan Square · Manayunk · Queen Village · Rittenhouse · Roxborough · Society Hill · Southwark · Bryn Mawr, PA · Gladwyne, PA · Villanova, PA · Wayne, PA · Cherry Hill, NJ · Haddonfield, NJ · Medford, NJ · Moorestown, NJ · Voorhees, NJ

Explore by topic

Women’s Health
  • Perimenopause
  • Menopause 3.0
  • PCOS
  • Fertility
Men’s Health
  • Testosterone (TRT)
  • Sleep Apnea & Low T
  • Andropause
  • Low Libido
Metabolic
  • Medical Weight Loss
  • Ozempic vs Metformin
  • Fasting Protocols
  • Visceral Fat
Cardiovascular
  • apoB & Heart Health
  • apoB vs LDL
  • Lp(a) Cholesterol
  • ED & Heart Risk
Longevity + Performance
  • Healthspan vs Lifespan
  • Biological Age
  • VO2 Max
  • Zone 2 Training
Supplements
  • Magnesium
  • Creatine
  • Omega-3
  • Foundational Stack
  • Supplement Guides
Care in Philadelphia +
Direct Primary Care in Philadelphia, PAConcierge Medicine in Philadelphia, PAConcierge vs DPC in Philadelphia, PALongevity Medicine in Philadelphia, PAPreventive Care in Philadelphia, PAExecutive Physical in Philadelphia, PAAnnual Physical in Philadelphia, PAHealthspan Optimization in Philadelphia, PAFunctional Medicine in Philadelphia, PASame-Day Sick Visits in Philadelphia, PATestosterone Replacement Therapy in Philadelphia, PAPerimenopause Care in Philadelphia, PAMenopause Care in Philadelphia, PAThyroid Treatment in Philadelphia, PAPCOS Care in Philadelphia, PAGLP-1 Weight Loss in Philadelphia, PAMetabolic Health in Philadelphia, PAHormone Optimization in Philadelphia, PAAdvanced Lipid Testing in Philadelphia, PAVO2 Max Testing in Philadelphia, PADEXA Scan in Philadelphia, PACGM in Philadelphia, PALong COVID Care in Philadelphia, PAChronic Fatigue Treatment in Philadelphia, PAPOTS Treatment in Philadelphia, PAMCAS Treatment in Philadelphia, PALyme Disease Care in Philadelphia, PABrain Fog Treatment in Philadelphia, PASleep Disorders Treatment in Philadelphia, PAStrep Throat Treatment in Philadelphia, PAUTI Treatment in Philadelphia, PASinus Infection Treatment in Philadelphia, PASTI Testing in Philadelphia, PATravel Medicine in Philadelphia, PAPre-Op Clearance in Philadelphia, PASports Club Medicine in Philadelphia, PA

Made it this far? You’re already most of the way there. let’s get started → Dr. Ash reads every word personally.

Content is for educational purposes only and does not constitute medical advice.

TermsPrivacyScope of PracticeClinical Independence