Converting grams to cubic liters is a conversion from a mass measurement (grams) to a volume measurement (cubic meters). Therefore, converting grams to cubic liters can be very difficult because there is no standard conversion. This is because matter with the same volume can have very different masses. For example, compare a liter of oxygen to a liter of water  the water has a greater mass than the oxygen even though their volumes are the same.
Things You'll Need
 Calculator

Determine the density of the matter you want to convert from grams into cubic meters. Search online for a table of common densities, or see Resources. For example, you have 9,000 grams of water at 100 degrees Celsius. The density of water at 100 C is 958.4 kilograms per meter cubed.

Multiply the density of the material by 1,000. In the example, 958.4 x 1000 = 958400.

Divide the weight of your material in grams by your answer. In the example, 9000/958400 = 0.00939065109. Your sample of water represents 0.00939 cubic meters.
References
 Photo Credit Comstock/Comstock/Getty Images