Functional Medicine
Insomnia & Sleep Issues Treatment
Bad sleep isn't a sleep problem. It's a hormone problem, a cortisol problem, a neurotransmitter problem, or a gut problem that shows up at night. We find the root cause and fix it without sleep medications that leave you groggy and dependent.

On This Page
- 01Why You Can't Sleep (And Why Melatonin Isn't the Answer)
- 02Testing and Treating the Root Cause of Poor Sleep
- 03What Causes Insomnia and Sleep Disorders?
- 04What Are the Treatment Options for Insomnia Without Medication?
- 05Why Do You Keep Waking Up at 3am Every Night?
- 06Insomnia in Perimenopause and Menopause
- 07Common Symptoms We See
- 08What We Test for This Condition
- 09Frequently Asked Questions
On This Page
- 01Why You Can't Sleep (And Why Melatonin Isn't the Answer)
- 02Testing and Treating the Root Cause of Poor Sleep
- 03What Causes Insomnia and Sleep Disorders?
- 04What Are the Treatment Options for Insomnia Without Medication?
- 05Why Do You Keep Waking Up at 3am Every Night?
- 06Insomnia in Perimenopause and Menopause
- 07Common Symptoms We See
- 08What We Test for This Condition
- 09Frequently Asked Questions
Why You Can't Sleep (And Why Melatonin Isn't the Answer)
You're exhausted all day. Then you lie down and your brain won't shut off. Or you fall asleep fine but wake up at 2am and stare at the ceiling for hours. Or you sleep 8 hours and feel like you got 3.
Your doctor prescribed trazodone or told you to take melatonin and practice "sleep hygiene." Maybe it helped for a week. Then it stopped working. That's because you're treating a symptom while ignoring the mechanism.
Sleep is regulated by hormones and neurotransmitters: cortisol should be low at night and rise in the morning. Progesterone is your natural sedative (and it drops in perimenopause). Testosterone affects sleep architecture in both sexes. GABA calms the nervous system. Serotonin converts to melatonin. If any of these systems are off, no amount of blue-light glasses and lavender spray will fix your sleep.
We also see sleep disruption from blood sugar instability (cortisol spikes to rescue low glucose at 2am), gut inflammation (the gut produces most of your serotonin), and chronic stress that keeps the sympathetic nervous system locked on.
Inside Med Matrix
Everything Under One Roof
Advanced testing, personalized protocols, and real results from a team that treats the whole picture.
Testing and Treating the Root Cause of Poor Sleep
Our approach starts with a full panel: hormones (testosterone, estrogen, progesterone, DHEA), cortisol patterns, thyroid function, blood sugar markers (fasting insulin, HbA1c), inflammatory markers, and nutrient levels (magnesium, B6, iron, vitamin D) that directly affect sleep quality.
- Cortisol dysregulation. If your cortisol is elevated at night, you won't sleep no matter what you try. We identify the pattern and address the HPA axis dysfunction causing it.
- Hormone optimization. Progesterone replacement for women in perimenopause often resolves insomnia within days. Testosterone optimization improves sleep architecture in men.
- Blood sugar stability. 2am wake-ups are frequently a blood sugar crash triggering a cortisol rescue spike. We fix the metabolic pattern.
- Neurotransmitter support. Targeted amino acids, magnesium glycinate, and specific nutrients to support GABA and serotonin production naturally.
- Gut health. 95% of serotonin is made in the gut. If gut function is compromised, neurotransmitter production suffers and sleep follows.
The goal is restorative sleep without pharmaceutical dependence. Most patients see improvement within 2-4 weeks once we address the underlying cause.
What Causes Insomnia and Sleep Disorders?
Most sleep problems aren't actually sleep problems. They're hormone problems, cortisol problems, blood sugar problems, or gut problems that show up when you lie down at night. Treating the symptom (insomnia) without finding the mechanism (why your body won't sleep) is why melatonin, trazodone, and sleep hygiene tips stop working.
- Cortisol that won't shut off. Cortisol should drop to its lowest point around 10pm. In patients with HPA axis dysfunction from chronic stress, cortisol stays elevated at night or spikes in the early morning hours. You feel wired at bedtime, or you fall asleep and snap awake at 2am with a racing mind. No amount of meditation fixes a cortisol pattern that's physiologically inverted. But it is fixable once identified through proper testing.
- Progesterone decline. Progesterone is your body's natural calming hormone. It activates GABA receptors in the brain, the same receptors that benzodiazepines target. In perimenopause (which can start as early as 35), progesterone is the first hormone to drop. Women who never had trouble sleeping suddenly can't fall asleep or stay asleep. Their doctor prescribes Ambien instead of checking progesterone. Bioidentical progesterone replacement often resolves the insomnia within days, not weeks.
- Blood sugar crashes at 2am. This is one of the most overlooked causes of middle-of-the-night waking. When blood sugar drops too low during sleep, your body releases cortisol and adrenaline to bring it back up. You wake up alert, anxious, heart pounding. It feels like stress or anxiety, but it's a metabolic event. Fasting insulin and HbA1c testing reveals the pattern. Dietary changes and metabolic support fix it.
Low serotonin from gut dysfunction. About 95% of your body's serotonin is produced in the gut. Serotonin converts to melatonin. If gut inflammation, bacterial imbalance, or poor absorption is compromising serotonin production, your body can't make enough melatonin on its own. Taking supplemental melatonin patches over the real issue. Restoring gut health restores the pathway.
What Are the Treatment Options for Insomnia Without Medication?
We don't start with a prescription pad. We start with lab work.
Your panel includes hormones (testosterone, estrogen, progesterone, DHEA), cortisol, full thyroid function, blood sugar markers (fasting insulin, HbA1c), inflammatory markers, and the nutrients that directly drive sleep chemistry: magnesium, B6, iron, and vitamin D.
Once we know what's off, treatment targets the specific mechanism. For some patients, it's a single fix. For others, it's a combination.
- Progesterone restoration. For women whose insomnia started in their mid-30s to 40s. This is the fastest fix we see. Many patients sleep through the night within the first week.
- Cortisol rhythm repair. Targeted adaptogens, phosphatidylserine, and lifestyle adjustments that bring the HPA axis back into a healthy pattern. This typically takes 4 to 8 weeks.
- Blood sugar stabilization. Dietary changes, strategic pre-bed nutrition, and metabolic support. Patients who wake at 2am and can't get back to sleep are often shocked when this simple intervention eliminates the problem.
- Magnesium glycinate supplementation. Not magnesium oxide (which is poorly absorbed). Glycinate crosses the blood-brain barrier and supports GABA activity. Lindsay, one of our patients, stopped a 3-year sleep medication after starting magnesium and addressing her metabolic health.
- Neurotransmitter support. Specific amino acid precursors (5-HTP, L-theanine, GABA) when serotonin or GABA production is low. These aren't sleeping pills. They give your body the raw materials to produce its own calming neurotransmitters.
Dr. Sasha Rose works with most of our sleep patients in South Portland. The goal is always restorative sleep without pharmaceutical dependence. We monitor progress and adjust the protocol until you're sleeping consistently.
Why Do You Keep Waking Up at 3am Every Night?
Waking at the same time every night, usually between 2am and 4am, is rarely random. It almost always points to a physiological trigger. The most common is cortisol: this stress hormone should stay low overnight, but chronic stress or an inverted rhythm can make it spike in the early morning and jolt you awake with a racing mind.
The second common cause is a blood sugar crash. When glucose drops too low during sleep, your body releases cortisol and adrenaline to bring it back up, and you wake alert with a pounding heart. It feels like anxiety, but it is a metabolic event. Declining progesterone in perimenopause is a third driver, especially for women whose sleep changed in their late 30s or 40s.
Because the fix depends on which mechanism is at work, we start with comprehensive testing of your cortisol rhythm, fasting insulin, HbA1c, and hormone levels rather than guessing.
Insomnia in Perimenopause and Menopause
New insomnia that begins in your mid-30s to 50s is often hormonal. Progesterone activates the same calming GABA receptors that prescription sleep aids target, and it is typically the first hormone to fall as perimenopause begins, which can be as early as 35. Women who slept fine their whole lives suddenly cannot fall asleep or stay asleep.
The standard response is a prescription for Ambien or trazodone, but that masks the pattern instead of correcting it. When testing confirms the decline, restoring progesterone often resolves the insomnia within days rather than weeks. We evaluate the full hormone picture, since thyroid shifts and blood sugar instability frequently overlap at this stage of life. Learn more about our approach to women's hormone health.
Common Symptoms We See
- Trouble falling asleep despite feeling exhausted
- Waking up between 2am and 4am and lying awake for hours
- Sleeping 7 to 8 hours but waking up unrefreshed
- Racing mind or anxiety at bedtime
- Relying on sleep medication that stops working over time
- Daytime drowsiness or needing afternoon naps
- Waking with a pounding heart or feeling of panic
- Sleep quality that declined in your mid-30s or 40s
- Feeling wired at night but dragging in the morning
- Restless legs or frequent tossing and turning
- Brain fog and poor concentration tied to bad sleep
In Their Words
“These glands have a complex relationship with each other. In conventional medicine there's this idea that the thyroid is off on an island, the adrenal glands are off by themselves, and the ovaries are separate. All of these hormones are in the blood together.”
Dr. Rose: The Hormonal Triangle
Provider Insight
“I was so anxious that I was really looking at getting on an anxiety medication, and then I know now that that was a function of my hormones. I don't feel like that anymore. I feel great.”
Cat: Anxiety Resolved Through Hormone Balance
Patient Story
“My old level was really probably closer to my baseline. And if you take that and cut it in half, even though my half was still in what medical professionals say is an acceptable range, that's not necessarily what's acceptable for my body.”
Ryan: Why 'Normal Range' Wasn't Normal for Him
Patient Story
“I wake up and not feel that, you're like, 'Wow.' My quality of life is completely different.”
Caleb: Quality of Life Completely Changed
Patient Story
“This is my health. I can go out and spend a ton of money on clothes, but this is my health, so it's worth it.”
Terry: Less Inflammation, Better Sleep, Energy Back
Patient Story
“There were things on there that I hadn't known. For example, Hashimoto's disease. I had asked my physician to test me for that and they didn't. And that did come up on there.”
Laura: Hashimoto's Discovered After Years of Being Dismissed
Patient Story
What We Test for This Condition
Progesterone
Natural sedative that activates GABA receptors. Drops in perimenopause and is the most common hormonal cause of new-onset insomnia in women.
Cortisol
Should be lowest at bedtime. Elevated nighttime cortisol keeps the nervous system on alert and prevents sleep onset.
Fasting Insulin
Identifies insulin resistance and blood sugar instability that causes 2am cortisol-rescue wake-ups.
HbA1c
Three-month blood sugar average. Reveals metabolic patterns that disrupt sleep architecture.
Magnesium (RBC)
Intracellular magnesium supports GABA activity and muscle relaxation. Serum magnesium misses most deficiencies.
Testosterone (Total + Free)
Affects sleep architecture and deep sleep phases in both men and women. Low levels reduce sleep quality.
Free T3
Low thyroid function causes fatigue but also disrupts sleep cycles. Thyroid and sleep are tightly linked.
Vitamin D (25-OH)
Deficiency is associated with poor sleep quality and shortened sleep duration. Most Maine residents are low.
Vitamin B6
Required for serotonin and melatonin synthesis. Low B6 impairs your body's ability to produce its own sleep hormones.
From Our Podcast
Our providers answer common questions about this condition on the Med Matrix Method podcast.
Why Do I Keep Waking Up at 3AM? Cortisol, the HPA Axis, and How to Fix It
- Q:What hormone imbalances cause insomnia?
- Q:Why does melatonin stop working for most people?
HPA Axis Dysfunction: How a Broken Cortisol Rhythm Drains Your Energy
- Q:How does chronic stress rewire your sleep-wake cycle?
- Q:What is the cortisol-sleep connection?
Perimenopause and Menopause Symptoms: The Toll the Change Takes on a Woman's Whole Body
- Q:Why does insomnia start in perimenopause?
- Q:How does progesterone affect sleep quality?
Who Treats This Condition
These providers specialize in this area and review every patient's case personally.
Free Resource
Get Your Free Practice Guide
Includes a $100 voucher toward your first visit
Everything you need to make an informed decision: pricing, testing catalog, process timeline, provider bios, and real patient stories. No commitment required.

Free Practice Guide + $100 Voucher
Everything you need before your first visit
STEP 1 OF 3
Enter your email to get instant access
We only accept a limited number of patients per week
EXPLORE
Related Content
Articles, patient stories, and podcast episodes about insomnia & sleep issues treatment.
FAQ
Insomnia & Sleep Issues Treatment FAQ
We focus on fixing the root cause of poor sleep rather than masking it with sedatives. Occasionally we use short-term support while underlying issues resolve, but the goal is always natural, restorative sleep without ongoing medication.
Most patients who say this haven't had their hormones, cortisol patterns, and gut health properly tested. The interventions fail because they're treating the wrong thing. We find the actual mechanism first.
It depends on the cause. Progesterone-related insomnia can resolve within days. Cortisol dysregulation and gut-related issues typically take 3-6 weeks. We monitor and adjust your protocol based on response.
Cortisol is the hormone most often behind early-morning waking. It should sit at its lowest point overnight, but when it stays elevated or spikes early (often to rescue a 2am blood sugar drop), it pulls you into full wakefulness with a racing mind or pounding heart. We test your cortisol rhythm and blood sugar markers to find the trigger instead of masking it with a sedative.
Low magnesium, vitamin B6, and vitamin D are the deficiencies most commonly tied to fragmented, unrefreshing sleep. Magnesium supports GABA activity and muscle relaxation, B6 is required to produce serotonin and melatonin, and low vitamin D is associated with shorter, lighter sleep. Standard serum magnesium misses most deficiencies, so we test RBC magnesium along with B6 and vitamin D.
Yes. Progesterone is the body's natural calming hormone and it is usually the first to decline in perimenopause, which can begin as early as the mid-30s. Women who never had trouble sleeping suddenly struggle to fall or stay asleep. We check progesterone and the full hormone panel rather than defaulting straight to a sleep prescription.
We identify the specific mechanism keeping you awake, then correct it. For 2am wake-ups that is usually a cortisol or blood sugar pattern; for early-perimenopause insomnia it is often low progesterone. Fixing the underlying driver restores natural sleep, so most patients see improvement within 2 to 4 weeks without ongoing sedatives.
Functional medicine treats poor sleep as a symptom of an underlying imbalance rather than a condition to sedate. We run a full panel covering hormones, cortisol, thyroid, blood sugar, and sleep-related nutrients, then target whatever the testing reveals. The goal is restorative sleep without pharmaceutical dependence.
Related Services to Insomnia & Sleep Issues Treatment

Your Health, Your Terms
Start Feeling Like Yourself Again
Get your free practice guide and a $100 voucher toward your first visit. No commitment, no pressure.




