This paper examines the viable characteristics of anisotropic compact stars in f(ℜ,T2) theory (ℜ is the Ricci scalar and T2=TαβTαβ). In this perspective, we use Tolman–Kuchowicz solutions (μ=wr2+2lnz and ν=ln(1+xr2+yr4)) to examine the configurations of static spherically symmetric structures. The unknown constants are found by the first fundamental form of Darmois junction conditions. We analyze the behavior of fluid parameters in the interior of 4U 1538-52, PSRJ 1614-220, EXO 1785-248 and SAXJ 1808.4-3658 compact stars correspond to different models of this theory. Furthermore, the stability of the proposed compact stellar objects is examined through sound speed and adiabatic index methods. The satisfaction of requisite conditions ensures that stable compact objects exist in this framework.