Xywav works by activating GABA-B receptors in the brain, promoting deep, restorative sleep that reduces daytime sleepiness and cataplexy in people with narcolepsy or idiopathic hypersomnia. Its active ingredient is oxybate, the salt form of gamma-hydroxybutyrate (GHB), a substance your brain naturally produces in small amounts. What makes Xywav distinct from its predecessor Xyrem is a reformulated mix of mineral salts that contains 92% less sodium.
How Oxybate Affects the Brain
Your brain has a signaling system built around a chemical called GABA, which acts as a brake on nerve activity. Xywav’s active component, oxybate, binds to GABA-B receptors, which are one type of docking site for this calming chemical. When oxybate locks onto these receptors, it slows down brain activity in a way that consolidates nighttime sleep, particularly the deep, slow-wave stages that people with narcolepsy and idiopathic hypersomnia often lack.
The downstream effects of better nighttime sleep are what actually treat symptoms during the day. By restoring more normal sleep architecture at night, oxybate reduces excessive daytime sleepiness and, in people with narcolepsy type 1, decreases episodes of cataplexy (sudden muscle weakness triggered by emotions). The medication doesn’t just sedate you; it restructures how your brain cycles through sleep stages so the sleep you get is more effective.
What Makes Xywav Different From Xyrem
Xyrem, the earlier version of this medication, uses sodium oxybate as its only salt. At therapeutic doses, that adds a significant amount of dietary sodium, which can be a problem for people managing blood pressure or heart health. Xywav replaces most of that sodium with calcium, magnesium, and potassium oxybates, cutting sodium content by 92%. The oxybate itself, the part that acts on the brain, is the same. The clinical effects are equivalent; the difference is entirely in the mineral carrier.
How You Take It
Xywav is a liquid taken in two doses each night. You prepare both doses before bed by diluting each one in about a quarter cup of water using pharmacy-provided containers. You take the first dose at bedtime, then set an alarm and take the second dose 2.5 to 4 hours later. The split dosing is necessary because the drug is absorbed and cleared quickly, so a single dose wouldn’t sustain its effects through the full night.
The starting dose is 4.5 grams per night, split evenly between the two doses (2.25 grams each). From there, your prescriber increases the dose by up to 1.5 grams per week until you reach an effective level, typically somewhere in the 6 to 9 gram per night range. Doses above 9 grams per night have not been studied. Any prepared solution should be used within 24 hours.
Conditions It Treats
Narcolepsy
Xywav is FDA-approved for treating cataplexy and excessive daytime sleepiness in narcolepsy. In the phase 3 REST-ON trial, all tested doses produced significant improvements in both cataplexy frequency and daytime sleepiness scores compared to placebo. At the highest dose studied (9 grams), patients experienced roughly 6 to 7 fewer weekly cataplexy episodes than those on placebo. For daytime sleepiness measured on the Epworth Sleepiness Scale, the number needed to treat ranged from three to six depending on dose, meaning most people who take it see a meaningful benefit.
Idiopathic Hypersomnia
Xywav is also approved for idiopathic hypersomnia (IH), a condition defined by chronic, overwhelming sleepiness without the cataplexy that characterizes narcolepsy type 1. In the pivotal trial, patients stabilized on Xywav were randomly split into two groups: one continued Xywav, the other switched to placebo. The results were stark. Patients pulled off Xywav saw their sleepiness scores jump by a median of 8 points on the Epworth scale, while those who stayed on Xywav had essentially no change. When patients rated their own symptoms, 88% of the placebo group said they had worsened, compared to just 21% of those who continued Xywav.
Side Effects and Risks
The most important safety concern is central nervous system depression. Because oxybate powerfully slows brain activity, it can cause significant respiratory depression and a deep state of unconsciousness, even at recommended doses. This risk increases sharply when combined with alcohol, sedatives, or other drugs that depress the nervous system.
Xywav also carries warnings about abuse and misuse. Its active component is the same molecule as GHB, which has a well-documented history of illicit use. Misuse of GHB, particularly in combination with other depressants, is associated with seizures, coma, and death. For this reason, Xywav can only be obtained through a tightly controlled distribution program called the XYWAV and XYREM REMS. Prescribers must certify and enroll, pharmacies must complete training assessments, and patients must formally enroll before the medication can be dispensed. It ships directly to patients overnight and is limited to a 30-day supply for the first shipment and 90-day supplies after that.
What the Nightly Experience Looks Like
Taking Xywav requires a consistent routine. You eat dinner at least two hours before your first dose, since food significantly affects absorption. You prepare both doses, get into bed, drink the first one, and go to sleep. When your alarm goes off a few hours later, you take the second dose without getting up for any extended activity. Most people fall back asleep quickly after the second dose.
The adjustment period during dose titration, which takes several weeks, is when side effects are most likely. As your body adjusts and the dose stabilizes, the nightly routine becomes more predictable. The twice-nightly dosing schedule is the most common point of frustration for patients, since it interrupts sleep and requires planning around travel and schedule changes. Some patients with idiopathic hypersomnia may take Xywav as a single nightly dose, though twice-nightly dosing is more common for narcolepsy.

