Trazodone can help you sleep, and sleepiness is a side effect of the medication. Doctors will sometimes prescribe trazodone for insomnia, particularly for people who have both depression and difficulty sleeping. However, the benefit of taking trazodone for insomnia is not well established. The American Academy of Sleep Medicine recommends that trazodone and other antidepressants only be used for insomnia when other treatments have failed or in patients who also have depression.