In this paper, we examine the behavior of the charged compact star model PSR J0740+6620. To achieve this, we solve the Einstein field equations within an anisotropic framework. We model the star’s structure using a Gaussian density profile. Our analysis focuses on assessing the stability of the star and verifying whether its physical properties are consistent with the conditions required for equilibrium. In particular, we consider the Reissner-Nordstr o ¨ m spacetime configuration as an outer li