In this work, a new compound, 2-(N-allylsulfamoyl)-N-propylbenzamide, has been synthesized via a tandem one-pot reaction under sonication. The rotational orientations of the allylsulfamoyl and the amide groups in the title molecule, C13H18N2O3S, are partly determined by an intramolecular N—H···O hydrogen bond. In the crystal, a layer structure is generated by N—H···O and C—H···O hydrogen bonds plus C—H···π (ring) interactions. A Hirshfeld surface analysis indicates that the most important contributions to crystal packing are from H···H (59.2%), H···O/O···H (23.5%), and H···C/C···H (14.6%) interactions. The optimized structure calculated using density functional theory at the B3LYP/6–311 G (d,p) level is compared with the experimentally determined structure in the solid state. The calculated highest occupied molecular orbital (HOMO) and lowest unoccupied molecular orbital (LUMO) energy gap is 5.3828 eV.