Genetic variation accounts for much of the risk for developing a substance use disorder, but the underlying genetic factors and their genetic effector mechanisms are mostly unknown. Inbred mouse strains exhibit substantial and heritable differences in the extent of voluntary cocaine self-administration. Computational genetic analysis of cocaine self-administration data obtained from twenty-one inbred strains identified Nav1, a member of the neuron navigator family that regulates dendrite formation and axonal guidance, as a candidate gene. To test this genetic hypothesis, we generated and characterized Nav1 knockout mice. Consistent with the genetic prediction, Nav1 knockout mice exhibited increased voluntary cocaine intake and had increased motivation for cocaine consumption. Immunohistochemistry, electrophysiology, and transcriptomic studies were performed as a starting point for investigating the mechanism for the Nav1 knockout effect. Nav1 knockout mice had a reduced inhibitory synapse density in their cortex, increased excitatory synaptic transmission in their cortex and hippocampus, and increased excitatory neurons in a deep cortical layer. Collectively, our results indicate that Nav1 regulates the response to cocaine, and we identified Nav1 knockout induced changes in the excitatory and inhibitory synaptic balance in the cortex and hippocampus that could contribute to this effect.