The heat capacity at constant volume is given by

where 
 is the internal energy. Given that an ideal gas has no interatomic potential energy, the only term that is important is the  kinetic energy of an ideal gas, which is equal to 
. Thus 

One has

for an ideal gas this becomes:

where 
 is the molar gas constant.
References
- Donald A. McQuarrie "Statistical Mechanics" (1976) Eq. 1-1
 
- Landau and Lifshitz Course of Theoretical Physics Volume 5 Statistical Physics 3rd Edition Part 1 Equation 42.11