500g and 500ml are two different qualities and unit of volume. However, if a substance (such as water) with a specific gravity of 1 is involved, 500 grams is about 500 ml. This is because the mass of 1 ml water is about 1 g under standard conditions. However, if other substances are involved, the density of the substances needs to be considered.
In chemical experiments, it is usually necessary to accurately convert the units of mass and volume. So we need to know the density of matter in order to accurately convert it. At the same time, the density of different substances will also be affected by environmental factors such as temperature and pressure, so it is necessary to pay attention to the calculation with reference to standard conditions.