The effect of dispersion of the excitation pulse in two-photon microscopy is examined with a photon-counting microscope in both stationary and scanning modalities, and it is demonstrated that transform-limited pulses provide the best signal yield despite increased bleaching rates.