In the crystal structure of the title compound, C16H20FN3O2S, the dihedral angle between the pyrimidine and benzene rings is 47.91 (12)degrees. Weak pi-pi stacking interactions help to determine the crystal packing.