There is not a wide range of evidence to suggest that sleeping tablets themselves cause erectile dysfunction, however how sleeping pills interact with other drugs and more widely, the sleep disorder that a patient is suffering from (such as insomnia) could impact sexual health, leading them to experience ED.