To form methanol (a carbon-based compound), a methane molecule and an OH group are needed. Methane, CH4, takes away one of its hydrogen atoms and replaces it with the OH group to form a chemical formula CH3OH.