Grignard reagents are typically formed by reacting an alkyl or aryl halide with magnesium in an anhydrous ether solvent. The general formula for a Grignard reagent is RMgX, where R is an alkyl or aryl group, and X is a halogen. The resulting reagent acts as a nucleophile, attacking electrophilic carbon atoms in various substrates.