In this paper, we study the temperature evolution of the Friedmann–Robertson–Walker (FRW) Universe filled with viscous generalised Chaplygin gas (VGCG) as a model of dark energy. We started the thermodynamical treatment of the VGCG, which is given by the equation of state \(p=-\frac{A}{\rho ^{\alpha }}\) with bulk viscosity in the framework of the Eckart theory. We investigated it in the cosmological model using the FRW metric in flat space–time, and we were able to determine its temperature as a function of redshift z. Besides, the expression for the fluid’s temperature in terms of redshift and the viscosity parameter \(\xi _{0}\) is derived. In our computation, we assumed that the value of the parameter \(\Omega _{x}\) would be 0.7 and that the current value of the temperature of the microwave background radiation would be given by \(T_{0}=2.7\) K. Using the decoupling redshift value \((z\approx 1100)\) and the viscous parameter, the decoupling temperature is computed. The optimum choices for the remaining parameters are \(\alpha =0.25\) , \(\Omega _{x}=0.75\) , \(\xi _{0}=-0.1930\) , yielding a decoupling temperature of \(T(z=1100)\approx 4000\) K and a redshift of \(z\approx 0.25\) . We also compute the decoupling temperature in this model at \(\ddot{a}=0\) and \(T_{0}=2.7\) K. In terms of z and \(\xi _{0}\) , we also examined other parameters, such as the Hubble parameter, the equation of state parameter, the adiabatic speed of sound, jerk, snap and Om diagnostic parameters. These values are then compared with the outcomes of earlier research on modified Chaplygin gas (MCG) and other Chaplygin gas. We have shown that this model is thermodynamically stable for \(\xi _0 < 0\) in the FRW Universe and studied the validity of the generalised second law of thermodynamics on the apparent and event horizons of the Universe in the FRW Universe dominated by various Chaplygin gas fluids. However, a perfect fluid with \(\omega _{\textrm{eff}}<-\frac{1}{3}\) would produce an acceleration phase but might not produce a feasible dark energy epoch in the early and late stages of the Universe that is consistent with the observational data.