A kilogram is one thousand grams. This means that to get kilograms from grams, you just need to divide the number of grams by 1,000. In our example, we would get kilograms by dividing 20,000 grams by 1,000. 20,000/1,000 = 20