The chemical formula is C 8 H 10 N 4 O 2 . Caffeine has a molar mass of 194.19 grams (6.85 ounces). It is soluble in water and in many organic solvents, and it appears in pure form as white crystals. Caffeine can be prepared by extraction from natural sources or by synthesis from uric acid.