Electroporation has established itself as a critical method for transferring specific genes into cells to understand their function. Here, we describe a single-cell electroporation technique that maximizes the efficiency (~80%) of in vitro gene transfection in excitatory and class-specific inhibitory neurons in mouse organotypic hippocampal slice culture. Using large glass electrodes, tetrodotoxin-containing artificial cerebrospinal fluid and mild electrical pulses, we delivered a gene of interest into cultured hippocampal CA1 pyramidal neurons and inhibitory interneurons. Moreover, electroporation could be carried out in cultured hippocampal slices up to 21 days in vitro with no reduction in transfection efficiency, allowing for the study of varying slice culture developmental stages. With interest growing in examining the molecular functions of genes across a diverse range of cell types, our method demonstrates a reliable and straightforward approach to in vitro gene transfection in mouse brain tissue that can be performed with existing electrophysiology equipment and techniques.