If you’re taking diphenhydramine for short-term insomnia, your tablets will either be 25mg or 50mg in strength. You should take a tablet 20 minutes before you go to bed.