This paper studies differences in the effect of temperature on cognitive performance by gender in a large controlled lab experiment (N = 543). We study performance in math, verbal and cognitive reflection tasks and find that the effects of temperature vary significantly across men and women. At higher temperatures, women perform better on a math and verbal task while the reverse effect is observed for men. The increase in female performance in response to higher temperature is significantly larger and more precisely estimated than the corresponding decrease in male performance. In contrast to math and verbal tasks, temperature has no impact on a measure of cognitive reflection for either gender. Our findings suggest that gender mixed workplaces may be able to increase productivity by setting the thermostat higher than current standards.