Gram (g) the basic unit of weight (mass) of the metric system, originally intended to be the weight of 1 cubic centimeter of water .