Based on the principles of conservation of energy and momentum, a mathematical formula has been derived for the squares of detonation velocities of a large set of explosives. The equation is a function of the total energy and molecular weight of an explosive compound considered. A regressed equation has been obtained for a pool of explosives of various types including nitramines, aliphatic and aromatic nitro compounds. Also another regressed equation for nitramines only is given. For the regression, the total energies are obtained using DFT (UB3LYP/6-31G(d)). The regression statistics are given and discussed.