Quantifying the costs of mating is key for understanding life-history trade-offs. As a reflection of metabolic rate, body temperature is one metric for assaying these costs. However, conventional methods for measuring body temperature are invasive and unsuitable for the study of free-living populations of endangered species, including great apes. A promising proxy for body temperature is fecal temperature, the internal temperature of fecal deposits shortly following defecation. We validated this method with humans, finding that maximum fecal temperature is a reliable proxy for rectal temperature. We then applied this method to wild chimpanzees (Pan troglodytes schweinfurthii) at Ngogo, Kibale National Park, Uganda. We collected and analyzed 101 fecal temperature measurements from 43 adult chimpanzees (male: N = 28; female: N = 15). Chimpanzee fecal temperature ranged from 33.4 to 38.9 °C, with a mean of 35.8 °C. Although fecal temperature was not predicted by sex, age, or ambient temperature, male fecal temperature was 1.1 °C higher on days when sexually receptive females were present and was positively correlated with male dominance rank. Post hoc analyses showed that overall copulation rates, but not aggression rates, were positively correlated with fecal temperature, suggesting that sexual physiology and behavior best explain mating-related temperature variation. Together, these results indicate fecal temperature is a reliable proxy for core body temperature in large-bodied mammals, captures metabolic costs associated with male mating behavior, and represents a valuable noninvasive tool for biological field research.