The Neutral Gas and Ion Mass Spectrometer (NGIMS) aboard the NASA Mars Atmosphere and Volatile EvolutioN (MAVEN) mission measures the structure and variability of the Martian upper atmosphere. We use NGIMS density profiles to derive upper atmospheric temperature profiles and investigate the thermal structure of this region. The thermal structure of the upper atmosphere is a critical component of understanding atmospheric loss to space, the main science objective of MAVEN, and measured temperatures serve as inputs to and constraints on photochemical and global circulation models. We describe proper treatment of the NGIMS data and correct for the horizontal motion of the spacecraft. Temperature profiles from week-long, low-altitude excursions executed by MAVEN, called Deep Dips, are used to investigate the diurnal variation of the temperature and the thermospheric gradient, which varies between 1.33 ± 0.16 and 2.69 ± 0.33 K km −1 on the dayside. NGIMS measurements acquired on nominal MAVEN orbits over more than a Martian year further elucidate the diurnal and latitudinal variations of the temperature. Diurnal variations of about a factor of 2, from 127 ± 8 to 260 ± 7 K, are observed high in the exosphere, and latitudinal variations of 39 ± 17 K are observed in this region. Comparisons indicate broad agreement between temperatures derived from MAVEN NGIMS with previous in situ and remote sensing observations of upper atmospheric temperatures. NGIMS temperatures are also shown to be consistent with predictions of a 1-D model which includes solar UV and near IR heating, thermal conduction, and radiative cooling in the CO 2 2 15-μm band.