This paper explores anisotropic spherical structures within metric $$ f(R) $$ gravity, where $$ R $$ is the Ricci scalar, extending general relativity to include functions of $$ R $$ modified gravitational effects. We analyze compact stars using Finch–Skea solutions under the models; $$f(R) = R + \alpha R^2, f = R + \alpha R^2 (1 + \gamma R), $$ and $$f = R + \alpha R \left( e^{-\frac{R}{\gamma }} - 1 \right) .$$ These models help us examine how gravity modifications affect the internal structure and behavior of neutrons and strange stars. We investigate material variables such as density, pressures, anisotropy, and forces (gravitational, hydrostatic, anisotropic) through graphical analysis. The physical viability of the stellar models is assessed by evaluating energy conditions (NEC, WEC, SEC, and DEC) and the equation of state (EoS) parameter. We also examine the role of anisotropy in stability and structure, comparing the results with general relativity to highlight the implications of $$ f(R) $$ gravity on compact stars. This study aims to enhance the understanding of how modified gravity theories could impact the properties of compact astrophysical objects.