Neural activity throughout the cortex is correlated with perceptual decisions, but inactivation studies suggest that only a small number of areas are necessary for these behaviors. Here we used virtual reality combined with optical recording and perturbation methods to show that the number of required cortical areas and their dynamics vary across related tasks with different cognitive computations.