Immune cells rely on the transcription factor NFAT5 to adapt to hypertonic stress. The hypertonicity-dependent role of NFAT5 in T cells in vivo remains unclear because mouse models of NFAT5 deficiency have produced substantially different T cell phenotypes. In this study, we analyzed the T cell compartment in NFAT5-null and T cell-specific NFAT5 knockout mice. We found that NFAT5-null mice had constitutive, pronounced hypernatremia and suffered a severe immunodeficiency, with T cell lymphopenia, altered CD8 naive/memory homeostasis, and inability to reject allogeneic tumors. By contrast, T cell-specific NFAT5 knockout mice had normal plasma tonicity, rejected allogeneic tumors, and exhibited only a mild, low-penetrance memory bias in CD8 cells. Notably, when T cells from these mice were cultured ex vivo in hypernatremic media, they exhibited features found in NFAT5-null mice, with pronounced naive/memory imbalance and impaired homeostatic survival in response to IL-7, as well as a severe inhibition of their mitogen-induced proliferation. By analyzing surface receptors whose expression might be affected in NFAT5-deficient cells, we identified CD24 as a novel NFAT5 target induced by hypertonicity both in vitro and in vivo, and required to sustain T cell expansion under osmostress. NFAT5 bound to the Cd24 promoter in response to hypertonicity facilitated the local derepression of chromatin and enhanced the expression of CD24 mRNA and protein. Altogether, our results indicate that the systemic hypernatremia of NFAT5-null mice is a major contributor to their immunodeficiency, and highlight the role of NFAT5 and CD24 in the homeostasis of T cells under osmostress in vivo.