Insomnia is more than just difficulty falling asleep or staying asleep. Insomnia affects sleep quality. A person with insomnia may experience insomnia temporarily or suffer from it chronically (long-term). Short-term insomnia refers to a sleep problem lasting less than three weeks, while chronic insomnia lasts at least three weeks but no more than three months.