Homeothermy requires increased metabolic rates as temperatures decline below the thermoneutral zone, so homeotherms typically select microhabitats within or near their thermoneutral zones during periods of inactivity. However, many mammals and birds are heterotherms that relax internal controls on body temperature and go into torpor when maintaining a high, stable body temperature, which is energetically costly. Such heterotherms should be less tied to microhabitats near their thermoneutral zones and, because heterotherms spend more time in torpor and expend less energy at colder temperatures, heterotherms may even select microhabitats in which temperatures are well below their thermoneutral zones. We studied how temperature and daily torpor influence the selection of microhabitats (i.e., diurnal roosts) by a heterothermic bat (Myotis thysanodes). We (1) quantified the relationship between ambient temperature and daily duration of torpor, (2) simulated daily energy expenditure over a range of microhabitat temperatures, and (3) quantified the influence of microhabitat temperature on microhabitat selection. In addition, warm microhabitats substantially reduced the energy expenditure of simulated homeothermic bats, and heterothermic bats modulated their use of daily torpor to maintain a constant level of energy expenditure across microhabitats of different temperatures. Daily torpor expanded the range of energetically economical microhabitats, such that microhabitat selection was independent of microhabitat temperature. Our work adds to a growing literature documenting the functions of torpor beyond its historical conceptualization as a last‐resort measure to save energy during periods of extended or acute energetic stress.