Carbon can sometimes form a double bond with oxygen when they meet. In that instance, carbon can also bond with two more hydrogens to form a new carbon-based compound called formaldehyde. Formaldehyde's chemical formula is CH2O.