The relativistic degrees of freedom (Neff) is one of the crucial cosmological parameters. The precise measurement of Neff at the time of cosmic microwave background formation, by Planck 2018 can be used to understand the new fundamental interactions, in particular involving light mediators. Presence of any new particle with sufficient energy density and sizeable interactions with Standard Model particles at the temperature around ∼MeV can significantly alter the neutrino decoupling and hence Neff. Thus the bound on Neff can place stringent constraints on various beyond Standard Model paradigms involving light particles. U(1)X models are among such scenarios and are widely studied in several aspects. In this work, we consider several popular U(1)X models with light Z′ boson like U(1)B−L, U(1)B−3Li, U(1)Bi−3Lj, U(1)Li−Lj; i,j=1,2,3 being the flavor indices and study their impact on Neff. We also examine the constraints from ground based experiments like Xenon1T, Borexino, trident, etc. Our analysis shows that for light mass MZ′≲O(MeV) the Neff provides the most stringent constraints on the Z′ mass and coupling, far exceeding the existing constraints from other experiments. Published by the American Physical Society 2024