Cocrystallization of ibuprofen and nicotinamide in hot melt extrusion process has been subject of many studies addressing low ibuprofen bioavailability. However, it is observed that the process of cocrystal formation of ibuprofen and nicotinamide might be incomplete. We hypothesized that formation of dimers of ibuprofen-ibuprofen or dimers nicotinamide- nicotinamide might be the cause of such poor cocrystalization process by altering the phase behaviour of the mixture. This paper addresses the molecular thermodynamics of mixtures of ibuprofen and nicotinamide, with special focus on the possibility of formation of these dimers and their corresponding interplay with mixture phase behaviour. For this purpose, density functional theory calculations are used to calculate electron donor-acceptor sizes on each molecule and accordingly possible dimers of each molecule are analysed. The free energies and phase diagram are determined for (1) when a dimer is formed or (2) no dimer is formed, over a wide operating temperature range of 273.15K-390K. The binding and solvation energies are calculated to identify/rank dimers. Calculations showed that formation of dimers requires an energy input which can be accessible noting to the external heating in hot melt extrusion process. The calculated solvation energies of the dimers suggest that addition of liquid binder (water) can mitigate the risk of dimer formations. Addition of proper binder/excipient is an easy route to compensate such dimer formation and to engineer ibuprofen and nicotinamide cocrystallization behaviour.