No matter what’s stealing your shuteye, lack of sleep can lead to problems in the boner department. That may be especially true if you have sleep apnea, a sleep disorder where your breathing pauses frequently throughout the night.
Nearly 70 percent of guys who have sleep apnea also have ED, according to the International Society for Sexual Medicine.
Sleep deprivation causes testosterone levels to plummet and can make you feel more stressed or anxious, Dr. Shusterman explains. And all of those things can kill your libido and make it harder to get an erection.