To study various properties of a gas has been a subject of rational curiosity in pneumatic sciences. A gaseous system, in general, is studied by using four measurable parameters namely, the pressure, volume, number of moles and temperature. In the present work, an attempt is made to study the variation of energy of an ideal gas with the two measurable parameters, the mass and temperature of the gas. Using the well known ideal gas equation, PV = nRT where symbols have their usual meanings and some simple mathematical operations widely used in physics, chemistry and mathematics in a transparent manner, an equation of state relating the three variables, the energy, mass and temperature of an ideal gas is obtained. It is found that energy of an ideal gas is equal to the product of mass and temperature of the gas. This gives a direct relationship between the energy, mass and temperature of the gas. Out of the three variables, the energy, mass and temperature of an ideal gas, if one of the parameters is held constant, the other two variables can be measured. At a constant temperature, when the power or energy is stabilized, the increase in the mass of the gas may affect the new works and an engine can therefore be prevented from overheating.