A relativistic virial theorem is derived for atoms in a general manner. The virial ratio consists of the usual V/T term and a correction term W/T, where T, V, and W are the kinetic energy, the potential energy, and correction terms, respectively. Explicit forms of W are presented for four speci®c nuclear potential models. Numerical calculations for a uniform nuclear charge model show that the magnitude of the correction term W/T increases with increasing atomic numbers and that it modi®es the ratio V/T considerably for atoms with large atomic numbers in particular.