The time it takes for insomnia drugs to work varies depending on the specific medication, but it can range from 15 minutes to an hour.