You would have to know the specific gravity of each liquid to use grams, so it would be better to simply use milliliters.