Insomnia is repeated difficulty going to sleep or staying asleep, or both. Whether you have insomnia is not defined by a specific amount of sleep. Different people need different amounts of sleep, and you may need more or less sleep at different times of your life.