To identify genes involved in regulating the behavioral and brain transcriptomic response to the potentially addictive drug cocaine, we performed genome-wide association studies (GWASs) for intravenous self-administration of cocaine or saline (as a control) over 10 days using a panel of inbred and recombinant inbred mice. A linear mixed model increased statistical power for these longitudinal data and identified 145 loci for responding when saline only was delivered, compared to 17 for the corresponding cocaine GWAS. Only one locus overlapped. Transcriptome-wide association studies (TWASs) using RNA-Seq data from the medial frontal cortex and nucleus accumbens identified 5031434O11Rik and Zfp60 as significant for saline self-administration. Two other genes, Myh4 and Npc1, were nominated based on proximity to loci for multiple endpoints or a cis locus regulating expression. All four genes have previously been implicated in locomotor activity. Our results indicate distinct genetic bases for saline and cocaine self-administration, and suggest some common genes for saline self-administration and locomotor activity.