Behavior arises from neuronal activity, but it is not known how the active neurons are distributed across brain regions and how their activity unfolds in time. Here, we used high-density Neuropixels probes to record from ~30,000 neurons in mice performing a visual contrast discrimination task. The task activated 60% of the neurons, involving nearly all 42 recorded brain regions, well beyond the regions activated by passive visual stimulation. However, neurons selective for choice (left vs. right) were rare, and found mostly in midbrain, striatum, and frontal cortex. Those in midbrain were typically activated prior to contralateral choices and suppressed prior to ipsilateral choices, consistent with a competitive midbrain circuit for adjudicating the subject's choice. A brain-wide state shift distinguished trials in which visual stimuli led to movement. These results reveal concurrent representations of movement and choice in neurons widely distributed across the brain.neurons in multiple brain areas during each recording session, for multiple days per mouse (n=92 probe insertions over 39 sessions in 10 mice, Fig 1h-j). We identified the firing times of individual neurons using Kilosort 33 and determined their anatomical locations by combining electrophysiological features with histological reconstruction of fluorescentlylabeled probe tracks (Fig 1g, see Methods). Across all sessions we recorded from 29,134 neurons (n=747 ± 38 neurons per session, mean±s.e.), of which 22,458 were localizable to one of 42 brain regions. Of these, 60.0% Figure 1 | Recordings in 42 brain regions during a two-alternative unforced choice task. a, Mice earned water rewards by turning a wheel to indicate which of two visual gratings had higher contrast, or not turning if no stimulus was presented. When stimuli had equal contrast, a Left or Right choice was rewarded with 50% probability. Grey rectangles with dashed dividers indicate the three computer screens surrounding the mouse. Arrows (not visible to the mouse) indicate the coupled movement of the visual stimulus with the wheel, and the colored dashed circle (not visible to the mouse) indicates the stimulus location at which a reward was delivered. b, Timeline of the task. Subjects were free to move as soon as the stimulus appeared, but the stimulus was fixed in place and rewards were unavailable until after an auditory go cue. If no movement was made for 1.5 s after the go cue, a NoGo was registered. The grey region is the analysis window, from 0 to 0.4 s after stimulus onset. c, Average task performance across subjects, n=10 subjects, 39 sessions, 9,538 trials. Colormaps depict the probability of each choice given the combination of contrasts presented. d, Reaction time as a function of stimulus contrast and presence of competing stimuli. e, Mice were head-fixed with forepaws on the wheel while multiple Neuropixels probes were inserted for each recording. f, Frontal view of subject performing the behavioral task during Neuropixels recording, with forepaws on wheel and lick spout for...