Tunable lenses make it possible to measure visual sensitivity to rapid changes in optical power, surpassing the limits imposed by mechanical elements. Using a tunable lens system, we measured, for the first time, the spatiotemporal defocus sensitivity function (STDSF), and the limits of human defocus perception. Specifically, we measured defocus sensitivity using a QUEST adaptive psychophysical procedure for different stimuli (Gabor patches of different spatial frequencies, natural images, and edges) and we developed descriptive models of defocus perception. For Gabor patches, we found on average (across seven subjects) that the maximum sensitivity to defocus is 0.22 D at 14 cpd and 10 Hz, and that the upper limits of sensitivity are 40 cpd and 40 Hz. Our results suggest that accommodation remains fixed while performing the defocus flicker-detection task. These results have implications for new technologies whose working principles make use of fast changes to defocus.