The treatment and management of insomnia depends on its underlying cause. Transient or intermittent insomnia may not need treatment since it lasts only a few days. When treatment is needed it may involve lifestyle changes, medications, and other treatments.

The first step in treating insomnia is to identify and treat any underlying medical or psychological problems. The ultimate goal is to achieve a normal and restorative pattern of sleep.

Treatment involves the following: