We introduce a generalized scaling law, Mtot= 10K Aa Bb, to look for the minimum scatter in reconstructing the total mass of hydrodynamically simulated X-ray galaxy clusters, given gas mass Mgas, luminosity L and temperature T. We find a locus in the plane of the logarithmic slopes a and b of the scaling relations where the scatter in mass is minimized. This locus corresponds to bM=−3/2aM+ 3/2 and bL=−2aL+ 3/2 for A=Mgas and L, respectively, and B=T. Along these axes, all the known scaling relations can be identified (at different levels of scatter), plus a new one defined as Mtot∝ (LT)1/2. Simple formula to evaluate the expected evolution with redshift in the self-similar scenario is provided. In this scenario, no evolution of the scaling relations is predicted for the cases (bM= 0, aM= 1) and (bL= 7/2, aL=−1), respectively. Once the single quantities are normalized to the average values of the sample under considerations, the normalizations K corresponding to the region with minimum scatter are very close to zero. The combination of these relations allows one to reduce the number of free parameters of the fitting function that relates X-ray observables to the total mass and includes the self-similar redshift evolution.