We report on systematic numerical and experimental investigations of electromagnetically induced transparency (EIT) to determine temperatures in an ultracold atomic gas. The technique relies on the strong dependence of EIT on atomic motion (i.e., Doppler shifts), when the relevant atomic transitions are driven with counterpropagating probe and control laser beams. Electromagnetically induced transparency permits thermometry with satisfactory precision over a large temperature range, which can be addressed by the appropriate choice of Rabi frequency in the control beam. In contrast to time-of-flight techniques, thermometry by EIT is fast and nondestructive, i.e., essentially it does not affect the ultracold medium. In an experimental demonstration we apply both EIT and time-of-flight measurements to determine temperatures along different symmetry axes of an anisotropic ultracold gas. As an interesting feature we find that the temperatures in the anisotropic atom cloud vary in different directions.