Metabolic rate at rest is calculated by measuring Resting Metabolic Rate(RMR) which is directly related to your lean body mass and body surface area.Factors like Age,sex,height etc should also be taken into consideration during measurement.Exact measure of the metabolic rate can only be done in the laboratory settings,however,for an idea BMR calculator can be used.