Three-dimensional numerical simulation of detonations in both a circular tube and a coaxial tube are simulated to reveal characteristics of single spinning and two-headed detonations. The numerical results show a feature of a single spinning detonation which was discovered in 1926. Transverse detonations are observed in both tubes, however, the single spinning mode maintains the complex Mach reflection whereas the two-headed mode develops periodically from the single Mach reflection to the complex one. The calculated cell aspect ratio for the two-headed mode changes from 1.09 to 1.34 as the radius of axial insert increases from r1/R = 0.1 to 0.9. The calculated cell aspect ratio for r1/R = 0.1 is close to the experimental results without an axial insert. The formation of an unreacted gas pocket behind the detonation front was not observed in the single spinning mode; however, the two-headed mode has unreacted gas pocket behind the front near the axial insert.