The homodimers and the heterodimers of two amides, two boronic acids, and two carboxylic acids have been calculated in the gas phase and in N,N-dimethylformamide (DMF) and CCl(4) solvents using the DFT (M06-2X and M06-L) and the MP2 methods in conjunction with the 6-31G(d,p) and 6-311+G(d,p) basis sets. Furthermore, their pairwise coencapsulation was studied to examine its effect on the calculated properties of the hydrogen bonds at the ONIOM[M06-2X/6-31G(d,p);PM6], ONIOM[MP2/6-31G(d,p); PM6], and M06-2X/6-31G(d,p) levels of theory. The present work is directed toward the theoretical rationalization and interpretation of recent experimental results on hydrogen bonding in encaptulation complexes [D. Ajami et al. J. Am. Chem. Soc. 2011, 133, 9689-9691]. The calculated dimerization energy (ΔE) values range from 0.74 to 0.35 eV for the different dimers in the gas phase, with the ordering carboxylic homodimers > amide-carboxylic dimers > amide homodimers > boronic-carboxylic dimers > amide-boronic dimers > boronic homodimers. In solvents, generally smaller ΔE values are calculated with only small variations in the ordering. In the capsule, the ΔE values range between 0.67 and 0.33 eV with practically the same ordering as in the gas phase. The calculated % distributions of the encapsulated dimers, taking into account statistical factors, are in agreement with the experimental distribution, where the occurrence of boronic homodimer dominates, even though it is calculated to have the smallest ΔE.