It is well established that the hole density in the prototypical superconductor La 2−x Sr x CuO 4 is very inhomogeneous due to Sr-dopant induced disorder. On the other hand, the hole distribution in HgBa 2 CuO 4+δ and Bi 2 Sr 2 CaCu 2 O 8+δ doped by interstitial oxygen is believed to be much more uniform. Recent nuclear magnetic resonance measurements indicate, however, that the charge inhomogeneity in HgBa 2 CuO 4+δ is close to that in La 2−x Sr x CuO 4 . Calculations performed in the present paper confirm this observation. We also show that the charge inhomogeneity is most pronounced at the surface layer that can be probed by scanning tunneling microscope. Our simulations demonstrate that, despite having similar amplitudes of charge inhomogeneity, the hole mean free path in HgBa 2 CuO 4+δ is substantially longer than that in La 2−x Sr x CuO 4 . The screening of the Coulomb repulsion in HgBa 2 CuO 4+δ is also stronger. These two reasons might explain the difference in the superconducting critical temperatures between these two compounds.