Caffeine is the most widely used stimulant in Western countries. Some people voluntarily reduce caffeine consumption because it impairs the quality of their sleep. Studies in mice revealed that the disruption of sleep after caffeine is mediated by blockade of adenosine A2A receptors. Here we show in humans that (1) habitual caffeine consumption is associated with reduced sleep quality in self-rated caffeine-sensitive individuals, but not in caffeine-insensitive individuals; (2) the distribution of distinct c.1083T>C genotypes of the adenosine A2A receptor gene (ADORA2A) differs between caffeine-sensitive and -insensitive adults; and (3) the ADORA2A c.1083T>C genotype determines how closely the caffeine-induced changes in brain electrical activity during sleep resemble the alterations observed in patients with insomnia. These data demonstrate a role of adenosine A2A receptors for sleep in humans, and suggest that a common variation in ADORA2A contributes to subjective and objective responses to caffeine on sleep.