The Maxwell–Boltzmann statistics of the quantum ideal gas is studied through the canonical partition function by exactly counting discrete quantum states without the continuum approximation. Analytic expressions for energy, pressure, entropy, and heat capacity are expressed in terms of Jacobi theta functions and complete elliptic integrals. The results show typical effects of discrete energy levels in the low temperature limit while they reproduce thermodynamics of the classical ideal gas in the high temperature limit.