The gas mass fraction in galaxy clusters has been widely used to determine cosmological parameters. This method assumes that the ratio of the cluster gas mass fraction to the cosmic baryon fraction ($$\gamma (z)$$
γ
(
z
)
) is constant as a function of redshift. In this work, we look for a time evolution of $$\gamma (z)$$
γ
(
z
)
at $$R_{500}$$
R
500
by using both the SPT-SZ and Planck Early SZ (ESZ) cluster data, in a model-independent fashion without any explicit dependence on the underlying cosmology. For this calculation, we use a non-parametric functional form for the Hubble parameter obtained from Gaussian Process regression using cosmic chronometers. We parameterize $$\gamma (z)$$
γ
(
z
)
as: $$\gamma (z)= \gamma _0(1+\gamma _1 z)$$
γ
(
z
)
=
γ
0
(
1
+
γ
1
z
)
to constrain the redshift evolution. We find contradictory results between both the samples. For SPT-SZ, $$\gamma (z)$$
γ
(
z
)
decreases as a function of redshift (at more than 5$$\sigma $$
σ
), whereas a positive trend with redshift is found for Planck ESZ data (at more than 4$$\sigma $$
σ
). We however find that the $$\gamma _1$$
γ
1
values for a subset of SPT-SZ and Planck ESZ clusters between the same redshift interval agree to within $$1\sigma $$
1
σ
. When we allow for a dependence on the halo mass in the evolution of the gas depletion factor, the $$4-5\sigma $$
4
-
5
σ
discrepancy reduces to $$2\sigma $$
2
σ
.