To calculate the weight, use the following general formula: w = mg. Here, “w” is the weight of the object, “m” is the mass of the object, and “g” is the acceleration due to gravity. On earth, the value of g is 9.8 m / s2.