Hippocampal pyramidal neurons exhibit diverse spike patterns and gene expression profiles. However, their relationships with single neurons are not fully understood. In this study, we designed an electrophysiology-based experimental procedure to identify gene expression profiles using RNA sequencing of single hippocampal pyramidal neurons whose spike patterns were recorded in living mice. This technique involves a sequence of experiments consisting of in vivo juxtacellular recording and labeling, brain slicing, cell collection, and transcriptome analysis. We demonstrated that the expression levels of a subset of genes in individual hippocampal pyramidal neurons were significantly correlated with their spike burstiness, submillisecond-level spike rise times or spike rates, directly measured by in vivo electrophysiological recordings. Because this methodological approach can be applied across a wide range of brain regions, it is expected to contribute to studies on various neuronal heterogeneities to understand how physiological spike patterns are associated with gene expression profiles.