Pain-related sensory input is processed in the spinal cord before being relayed to the brain. That processing profoundly influences whether stimuli are correctly or incorrectly perceived as painful. Significant advances have been made in identifying the types of excitatory and inhibitory neurons that comprise the spinal dorsal horn (SDH), and there is some information about how neuron types are connected, but it remains unclear how the overall circuit processes sensory input. To explore SDH circuit function, we developed a computational model of the circuit that is tightly constrained by experimental data. Our model comprises conductance-based neuron models that reproduce the characteristic firing patterns of excitatory and inhibitory neurons. Excitatory neuron subtypes defined by calretinin, somatostatin, delta opioid receptor, protein kinase C gamma, or vesicular glutamate transporter 3 expression or by transient/central spiking/morphology, and inhibitory neuron subtypes defined by parvalbumin or dynorphin expression or by islet morphology were synaptically connected according to available qualitative data. Synaptic weights were adjusted to produce firing in projection neurons, defined by neurokinin-1 expression, matching experimentally measured responses to a range of mechanical stimulus intensities. Input to the circuit was provided by three types of afferents whose firing rates were also matched to experimental data. To validate our model, we ablated specific neuron types or applied other changes and compared model output with experimental data after equivalent manipulations. The resulting model provides a valuable tool for testing hypotheses in silico to plan novel experiments on SDH circuit dynamics and function.