Skip to main content
Insomnia

Doxylamine vs. Diphenhydramine for Sleep: 4 Differences You Need to Know About

Tegan Smedley, PharmD, APhStacia Woodcock, PharmD
Written by Tegan Smedley, PharmD, APh | Reviewed by Stacia Woodcock, PharmD
Updated on November 17, 2026
Featuring Stacia Woodcock, PharmDReviewed by Sanjai Sinha, MD | September 16, 2025

Key takeaways:

  • You can take doxylamine (Unisom) or diphenhydramine (Benadryl, ZzzQuil) for up to 2 weeks to help with short-term sleep problems. These medications work similarly and have similar side effects.

  • Doxylamine stays in your system longer than diphenhydramine. So it may be more likely to cause next-day drowsiness.

  • Diphenhydramine and doxylamine can be used for allergies as well as for sleep. But be sure to read the package instructions for your product carefully, since the directions for use are different.

  • Doxylamine and diphenhydramine are available over the counter as brand-name medications. But you can also find them as lower-cost generics. If a healthcare professional writes you a prescription for doxylamine or diphenhydramine, GoodRx could help save you money.

Save on related medications

Looking for an over-the-counter (OTC) medication to help you sleep? You might find yourself choosing between doxylamine and diphenhydramine. Many popular OTC sleep aid brands, including the ZzzQuil and Unisom lines, use one of these two medications in their products.

Doxylamine and diphenhydramine are both first-generation antihistamines. You can take these older antihistamines to treat allergies. But they tend to cause a lot of drowsiness. So much drowsiness, in fact, that they’re also sold OTC as sleep aids.

But which one should you take for sleep? Although doxylamine and diphenhydramine have many similarities, there are four key differences you should know about. This can help you decide if one is right for you.

Keep in mind: OTC sleep aids, including doxylamine and diphenhydramine, aren’t recommended for long-term use. Cognitive behavioral therapy works best for insomnia and is the safest treatment option.

1. Doxylamine may cause more next-day drowsiness

Both doxylamine and diphenhydramine can cause next-day drowsiness. But doxylamine stays in your system longer. Doxylamine’s half-life, or the time it takes your body to clear half a dose, is roughly 10 hours. If you’re an older adult, it may take up to 15 hours to clear half a dose. It takes your body less time — roughly 9 hours — to get rid of half a dose of diphenhydramine.

This means that doxylamine’s effects can last longer than diphenhydramine’s. But it also means that its side effects, such as lingering drowsiness, can last longer. So you may be more likely to experience next-day drowsiness with doxylamine.

Before taking any sleep aid, it’s important to ensure you’ll be able to get a full night’s sleep. For most adults, that’s about 7 to 9 hours of sleep. But keep in mind that, even after a full night’s sleep, doxylamine or diphenhydramine’s effects may need more time to completely wear off.

2. Diphenhydramine is usually taken at higher doses

If you compare the packages of OTC sleep aids that contain doxylamine with those that contain diphenhydramine, you’ll notice the recommended dosages are different. The usual doxylamine dosage for sleep is 25 mg taken 30 minutes before bedtime. The typical diphenhydramine dosage for sleep is 50 mg taken 30 minutes before bedtime.

These doses should provide similar effects. Even though the number of milligrams is different, doxylamine 25 mg is similar in potency to diphenhydramine 50 mg.

Be careful not to take a dose that’s higher than what’s on the OTC label for your product. If you’re feeling unsure about how doxylamine or diphenhydramine will affect you, you can try a lower dose. Some diphenhydramine products come as 25 mg pills. This gives you the option of trying a lower, 25 mg dose, which can be helpful if you’ve experienced bothersome side effects from the 50 mg dose. If you’re taking liquid diphenhydramine, you can also try taking a smaller amount of liquid. For example, you can try 15 mL instead of the standard 30 mL dose.

You can also check with your pharmacist to see if it’s OK to cut doxylamine or diphenhydramine tablets in half. Just be aware that, while they can help limit side effects, these strategies may also make the medications not work as well for sleep.

3. Diphenhydramine is more commonly used for allergies than doxylamine

Seasonal allergy symptoms are known for keeping people awake at night. Taking an antihistamine is one way to address both allergies and sleeplessness. Both doxylamine and diphenhydramine are antihistamines that can help relieve allergy symptoms. But it’s more common to see diphenhydramine products labeled for allergy relief.

This isn’t to say that OTC doxylamine isn’t ever labeled for allergies. There are products that contain doxylamine that are sold as nighttime allergy medications. But you’re more likely to find diphenhydramine labeled for this use.

Just be sure to carefully read the OTC label of your product. The recommended dosages for allergy relief are different from the dosages for sleep with doxylamine and diphenhydramine. If you’re unsure how much doxylamine or diphenhydramine to take, ask your pharmacist.

4. Doxylamine is more likely to be in cough and cold products

Sometimes, it feels impossible to sleep with a cold or the flu. But before you purchase a sleep aid, you should check the labels of any OTC cough and cold medications you’re taking. Often, you’ll find doxylamine as a listed ingredient in these medications.

Although cough and cold products may contain either doxylamine or diphenhydramine, doxylamine is more commonly used. You can find it in many popular OTC combination products, including certain NyQuil products. Usually, these products are labeled for nighttime relief, but not always.

Talk to your pharmacist if you’re having trouble sleeping because of a cold or the flu. They can recommend an OTC cough and cold medicine that can also help you get a good night’s rest. Be careful about combining OTC products, even if one is for sleep and the other is for cold symptoms. Many have similar or overlapping ingredients beyond doxylamine, and combining them could lead to an accidental overdose.

How do you pick between doxylamine and diphenhydramine?

Doxylamine and diphenhydramine can both treat occasional insomnia. They work similarly and have comparable side effects. Which one is the better option usually comes down to personal preference. But there are still some other factors to keep in mind.

You may want to consider diphenhydramine if you’re worried about next-day drowsiness. But remember, diphenhydramine may also cause this side effect. Doxylamine might be the better choice for you if you feel like diphenhydramine wears off during the night.

When should you stop taking doxylamine or diphenhydramine?

Doxylamine and diphenhydramine are both intended for short-term use. You shouldn’t take either for longer than 2 weeks at a time without talking to a healthcare professional. Be aware that many experts don’t recommend taking antihistamines to treat insomnia, especially taking them long term. There isn’t a lot of strong evidence that they work for chronic sleep problems.

Who shouldn’t take doxylamine or diphenhydramine?

When taken for sleep, doxylamine and diphenhydramine are intended for adults and adolescents ages 12 and older. These medications should be avoided by people ages 65 and older. Older adults may have a higher risk of confusion, falls, and other side effects with first-generation antihistamines.

Talk to a healthcare professional before taking doxylamine or diphenhydramine if you:

You should also consult a healthcare professional if you are looking for a sleep aid for a child under age 12, as there may be better options.

Make sure you have time for a full night’s sleep before taking either doxylamine or diphenhydramine. Remember to use caution the next morning, as you may feel groggy and have trouble with activities like driving. And avoid drinking alcohol when taking either medication.

How to save on doxylamine and diphenhydramine

There are ways to save on doxylamine and diphenhydramine, which are available as brand-name and generic medications. If you have a healthcare professional write you a prescription for doxylamine or diphenhydramine, GoodRx could help you save over 50% off the average retail price.

You may be able to pay as low as $12.48 at certain pharmacies for 30 tablets of doxylamine 25 mg with a free GoodRx discount. And you may be able to pay as little as $10.58 in your area for 30 capsules of diphenhydramine 25 mg.

You may be able to save even more on doxylamine or diphenhydramine with a GoodRx Companion subscription. Over 250 medications are available for free, with hundreds more for under $10. The program also includes benefits to help you cut your self-pay costs, such as lower prices for online care visits, discounts on dental care, and other health service savings.

You can also sign up online to have coupons emailed to you for brand-name Unisom products. The Unisom line includes some products that contain doxylamine and others that contain diphenhydramine.

Frequently asked questions

In most cases, you should take only one antihistamine at a time. Taking two different antihistamines in one day raises the risk of side effects, such as drowsiness and dizziness. In severe cases, it can lead to an overdose, which can be fatal. It’s best to avoid combining antihistamines unless a healthcare professional tells you otherwise.

Most people should avoid taking Zyrtec (cetirizine) and Benadryl (diphenhydramine) on the same day. Taking Zyrtec and Benadryl together can lead to exaggerated side effects, such as severe drowsiness. It also raises the risk of experiencing an antihistamine overdose. You should only combine these two antihistamines if a healthcare professional tells you to do so.

It’s not recommended to take 100 mg of Unisom. This dose is too high. 

The recommended dosage for Unisom varies among products:

  • Unisom products containing doxylamine: Take 25 mg about 30 minutes before bedtime.

  • Unisom products containing diphenhydramine: Take 50 mg about 30 minutes before bedtime.

Read the OTC label of your Unisom product carefully. It will tell you how to take the product, along with the maximum recommended daily dose.

The bottom line

Choosing between doxylamine (Unisom) and diphenhydramine (Benadryl, ZzzQuil) can be tricky. Both medications can be helpful for short-term sleep problems, and they have similar side effects. But doxylamine may be more likely to cause next-day drowsiness. Diphenhydramine is commonly marketed for allergies, whereas doxylamine is more often included in nighttime cold medications.

Neither doxylamine nor diphenhydramine is recommended as a sleep aid for kids under age 12 or adults ages 65 and older. And it’s not recommended to take either for sleep issues long term. Be sure to carefully read the label of your doxylamine or diphenhydramine product, along with other over-the-counter (OTC) labels. Doxylamine and diphenhydramine are found in a number of OTC medications, so it can be easy to take too much if you’re using multiple products.

why trust our exports reliability shield

Why trust our experts?

Tegan Smedley, PharmD, APh, has 10 years of experience as a pharmacist. She has worked in a variety of settings, including retail, hospital, and ambulatory care.
Stacia Woodcock, PharmD, is a pharmacy editor for GoodRx. She earned her Doctor of Pharmacy degree from the University of Kentucky and is licensed in New York and Massachusetts.
Christina Aungst, PharmD, MWC is a senior pharmacy editor for GoodRx. She began writing for GoodRx Health in 2019.

References

2023 American Geriatrics Society Beers Criteria Update Expert Panel. (2023). American Geriatrics Society 2023 updated AGS Beers Criteria® for potentially inappropriate medication use in older adults. Journal of the American Geriatrics Society.

Brott., N. R., et al. (2023). Doxylamine. StatPearls.

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Latest articles