5 g x 0.001 = 0.005 kg
5 g = 0.005 kg
Multiply the value in grams by 0.001 to get kg.
Open grams to kg converter