Intelligence quotient (IQ) is a standardized measure of human intellectual capacity that takes into account a wide range of cognitive skills. IQ is generally considered to be stable across the lifespan, with scores at one time point used to predict educational achievement and employment prospects in later years. Neuroimaging allows us to test whether unexpected longitudinal fluctuations in measured IQ are related to brain development. Here we show that verbal and non-verbal IQ can rise or fall in the teenage years, with these changes in performance validated by their close correlation with changes in local brain structure. A combination of structural and functional imaging showed that verbal IQ changed with grey matter in a region that was activated by speech, whereas non-verbal IQ changed with grey matter in a region that was activated by finger movements. By using longitudinal assessments of the same individuals, we obviated the many sources of variation in brain structure that confound cross-sectional studies. This allowed us to dissociate neural markers for the two types of IQ and to show that general verbal and non-verbal abilities are closely linked to the sensorimotor skills involved in learning. More generally, our results emphasize the possibility that an individual's intellectual capacity relative to their peers can decrease or increase in the teenage years. This would be encouraging to those whose intellectual potential may improve, and would be a warning that early achievers may not maintain their potential.