The heats of formation of 1H-imidazole, 1H-1,2,4-trizazole, 1H-tetrazole, CH3NO2, CH3N3, CH3NH2, CH2CHNO2, HClO4, and phenol, as well as cations and anions derived from some of the molecules have been calculated using ab initio molecular orbital theory. These molecules are important as models for compounds used for energetic materials synthesis. The predicted heats of formation of the heterocycle-based compounds are in excellent agreement with available experimental values and those derived from proton affinities and deprotonation enthalpies to <1 kcal/mol. The predicted value for the tetrazolium cation differs substantially from the experimental value, likely due to uncertainty in the measurement. The heats of formation of the nitro and amino molecules, as well as phenol/phenolate, also are in good agreement with the experimental values (<1.5 kcal/mol). The heat of formation of CH3N3 is predicted to be 72.8 kcal/mol at 298 K with an estimated error bar of +/-1 kcal/mol on the basis of the agreement between the calculated and experimental values for DeltaH(f)(HN3). The heat of formation at 298 K of HClO4 is -0.4 kcal/mol, in very good agreement with the experimental value, as well as a W2 literature study. An extrapolation of the CCSD(T)/aug-cc-pV(Q,5) energies was required to obtain this agreement. This result suggests that very large basis sets (> or =aug-cc-pV5Z) may be needed to fully recover the valence correlation energy contribution in compounds containing elements with high formal oxidation states at the central atom. In addition tight d functions are needed for the geometry predictions. Douglas-Kroll-Hess (DKH) scalar relativistic corrections for HClO4 and ClO4- at the MP2 level with correlation-consistent DKH basis sets were predicted to be large, likely due to the high formal oxidation state at the Cl.