### Abstract:

A measurement is presented of the effective leptonic weak mixing angle ( \({sin}^{2}{\theta }_{\text{eff}}^{\ell }\) ) using the forward–backward asymmetry of Drell–Yan lepton pairs ( \(\mu \mu \) and \(e\) \(e\) ) produced in proton–proton collisions at \(\sqrt{s}=8\phantom{\rule{0.166667em}{0ex}}\text{TeV}\) at the CMS experiment of the LHC. The data correspond to integrated luminosities of 18.8 and \(19.6\phantom{\rule{0.166667em}{0ex}}{\text{fb}}^{-1}\) in the dimuon and dielectron channels, respectively, containing 8.2 million dimuon and 4.9 million dielectron events. With more events and new analysis techniques, including constraints obtained on the parton distribution functions from the measured forward–backward asymmetry, the statistical and systematic uncertainties are significantly reduced relative to previous CMS measurements. The extracted value of \({sin}^{2}{\theta }_{\text{eff}}^{\ell }\) from the combined dilepton data is \({sin}^{2}{\theta }_{\text{eff}}^{\ell }=0.23101±0.00036\phantom{\rule{0.166667em}{0ex}}\text{(stat)}±0.00018\phantom{\rule{0.166667em}{0ex}}\text{(syst)}±0.00016\phantom{\rule{0.166667em}{0ex}}\text{(theo)}±0.00031\phantom{\rule{0.166667em}{0ex}}\text{(parton distributions in proton)}=0.23101±0.00053\).