Dendritic spines mediate most excitatory inputs in the brain. Although it is clear that spines compartmentalize calcium, it is still unknown what role, if any, they play in integrating synaptic inputs. To investigate the electrical function of spines directly, we used second harmonic generation (SHG) imaging of membrane potential in pyramidal neurons from hippocampal cultures and neocortical brain slices. With FM 4-64 as an intracellular SHG chromophore, we imaged membrane potential in the soma, dendritic branches, and spines. The SHG response to voltage was linear and seemed based on an electro-optic mechanism. The SHG sensitivity of the chromophore in spines was similar to that of the parent dendritic shaft and the soma. Backpropagation of somatic action potentials generated SHG signals at spines with similar amplitude and kinetics to somatic ones. Our optical measurements of membrane potential from spines demonstrate directly that backpropagating action potentials invade the spines.second-harmonic imaging ͉ backpropagation ͉ action potential ͉ pyramidal ͉ cortex S pines mediate most excitatory contact in the mammalian nervous system, so they are likely to be crucial for brain function (1). Although their role in calcium compartmentalization has been demonstrated (2), nonspiny neurons can also compartmentalize calcium with similar spatial restriction (3), so it is likely that spines serve additional functions in dendritic integration. In particular, there is a long-standing controversy related to the electrical function of dendritic spines (4). On the one hand, it has been argued that spines could have a significant effect on the excitatory postsynaptic potentials (EPSPs) (5-7). Spines could either enhance the depolarization generated by EPSPs (8) or even filter and dampen EPSPs, as they are transmitted to the dendritic shaft or the soma. ¶ On the other hand, cable models constrained by morphological or diffusional measurements indicate that spines may not play a significant electrical role (9, 10). Thus, assuming a passive membrane, the spine neck could have a negligible effect in altering the EPSPs, so spines may play no significant electrical role and merely serve as biochemical compartments.Recent data have reopened this debate and suggest that spines could have a significant effect on altering synaptic transmission. First, active conductances, including calcium (2), potassium (11), and probably even sodium (12) channels, seem to be located in spines, rendering passive models inadequate to explore the effect of the spine on EPSPs. Second, spines with different morphologies have differences in calcium compartmentalization (13) and in amplitude and kinetics in response to glutamate uncaging (14), raising the suspicion that the spine neck has a major functional role.Direct measurement of electrical function of spine has eluded scientists due to lack of suitable experimental approaches. Although fluorescent voltage-sensitive dyes have been used to image dendrites (15), their lack of sensitivity, partly resulti...