Generic diphenhydramine is ZzzQuil, generic doxylamine is Unisom, and store-brand melatonin is the same molecule as the famous gummies. The FDA requires identical active ingredients, so they work the same for about half the price. And low-dose melatonin works as well as the high-dose products, so the big numbers on the box are marketing. Here is every option by real cost per dose, and which actually suit regular use.
Prices reviewed 31 July 2026 . Typical cost per dose, in USD. Not medical advice; see a doctor for ongoing sleep problems.
We costed 11 OTC sleep aids by cost per dose. Generic melatonin is a few cents a dose; generic diphenhydramine (ZzzQuil) and doxylamine (Unisom) are 5 to 10 cents, versus 20 or more for the brands. All are the same active ingredients. Two truths save you the most: buy the generic, and buy low-dose melatonin, because more milligrams do not work better.
Method: typical cost per standard dose from common US pack prices. Generic and brand versions of each drug are the same active ingredient at the same strength and FDA-bioequivalent. Antihistamine sleep aids are for occasional use; melatonin is best low-dose for timing sleep. Prices are indicative and change. Cite this: "usefulHQ Sleep Aid Cost Study 2026", usefulhq.com/sleep-aid-cost/.
OTC sleep aids are for occasional use. If you need one most nights for more than a week or two, see a doctor rather than a bigger bottle.
| Sleep aid | Type | Per dose | Cost / year | Total over term | Best for | |
|---|---|---|---|---|---|---|
| Generic melatonin (1-3mg)Best value The same melatonin as the brands; a low dose works as well as high, for pennies. Best for timing sleep. |
Melatonin | $0.03 | $5 | $5 | Cheapest, gentlest | Check price |
| Generic diphenhydramine The same drug as ZzzQuil and Benadryl; sedating, but builds tolerance, so keep it for occasional nights. |
Antihistamine | $0.05 | $8 | $8 | Cheapest antihistamine | Check price |
| Amazon Basic Care sleep aid Amazon's own diphenhydramine, the generic of ZzzQuil, in tablets or liquid. |
Antihistamine | $0.06 | $9 | $9 | Cheapest on Amazon | Check price |
| Generic PM pain reliever Acetaminophen or ibuprofen with diphenhydramine; the generic of Tylenol PM or Advil PM, for pain that keeps you up. |
Antihistamine | $0.06 | $9 | $9 | Pain plus sleep | Check price |
| Generic doxylamine The same drug as Unisom SleepTabs; a stronger, longer-lasting sedative (more next-day grogginess). |
Antihistamine | $0.08 | $12 | $12 | Same as Unisom | Check price |
| Magnesium glycinate Magnesium may support relaxation and sleep; gentler than antihistamines for semi-regular use. |
Other | $0.10 | $16 | $16 | Gentle nightly option | Check price |
| Valerian / herbal blend Valerian, chamomile and similar; evidence is mixed, and priced as a supplement. |
Other | $0.15 | $23 | $23 | Herbal option | Check price |
| Melatonin + L-theanine blend Convenient blend, but you pay for the mix versus plain generic melatonin plus separate L-theanine. |
Other | $0.18 | $28 | $28 | Combo formula | Check price |
| Melatonin gummies (brand) Natrol, vitafusion and similar; the same melatonin as generic, often overdosed, at a premium. |
Melatonin | $0.20 | $31 | $31 | Brand gummies | Check price |
| ZzzQuil (brand) Diphenhydramine; the exact same drug as the generic at roughly four times the price. |
Antihistamine | $0.20 | $31 | $31 | Brand nighttime | Check price |
| Unisom SleepTabs (brand) Doxylamine; identical to the generic, you pay for the name. |
Antihistamine | $0.22 | $34 | $34 | Brand SleepTabs | Check price |
Yes. Generic diphenhydramine is ZzzQuil (and Benadryl); generic doxylamine is Unisom SleepTabs, the identical drugs at the same dose, FDA-bioequivalent, for about half. Store-brand melatonin is the same molecule as the branded gummies.
No. Low-dose melatonin (0.5 to 3 mg) works as well as 5 or 10 mg for falling asleep, with fewer side effects and no hangover. The high-dose products are marketing; buy plain low-dose generic and take it a couple of hours before bed.
Plain generic melatonin at a few cents a dose, also the gentlest for timing sleep. Generic diphenhydramine and doxylamine are 5 to 10 cents. Store and Amazon brands are the same drugs as ZzzQuil and Unisom for roughly half.
They are meant for occasional use. Diphenhydramine and doxylamine build tolerance within days and cause next-day grogginess, and carry more risk in older adults. For ongoing sleep problems, fix sleep habits and see a doctor rather than using them nightly.