The general formula for alkanes, which are saturated hydrocarbons, is \(C_nH_{2n+2}\), where \(n\) represents the number of carbon atoms. Alkanes follow this formula, and examples include methane (\(CH_4\)), ethane (\(C_2H_6\)), and propane (\(C_3H_8\)).