A retrospective survey was designed to identify diagnostic subgroups and clinical factors associated with odontogenic pain and discomfort in dental urgency patients. A consecutive sample of 1,765 patients seeking treatment for dental pain at the Urgency Service of the Dental School of the Federal University of Goiás, Brazil, was selected. Inclusion criteria were pulpal or periapical pain that occurred before dental treatment (minimum 6 months after the last dental appointment), and the exclusion criteria were teeth with odontogenic developmental anomalies and missing information or incomplete records. Clinical and radiographic examinations were performed to assess clinical presentation of pain complaints including origin, duration, frequency and location of pain, palpation, percussion and vitality tests, radiographic features, endodontic diagnosis and characteristics of teeth. Chi-square test and multiple logistic regression were used to analyze association between pulpal and periapical pain and independent variables. The most frequent endodontic diagnosis of pulpal pain were symptomatic pulpitis (28.3%) and hyperreactive pulpalgia (14.4%), and the most frequent periapical pain was symptomatic apical periodontitis of infectious origin (26.4%). Regression analysis revealed that closed pulp chamber and caries were highly associated with pulpal pain and, conversely, open pulp chamber was associated with periapical pain (p<0.001). Endodontic diagnosis and local factors associated with pulpal and periapical pain suggest that the important clinical factor of pulpal pain was closed pulp chamber and caries, and of periapical pain was open pulp chamber.