© 2021 Elsevier B.V.In the present manuscript, we have constructed an anisotropic solution for spherically symmetric space-time that satisfies Karmarkar's condition in the context of f(R,T) theory of gravity where R and T represent the Ricci scalar and the trace of Energy-momentum tensor, respectively. In order to achieve our goal, we chose a one of the gravitational potentials having regular behavior and obtained a closed form of the solution. This expression of the gravitational potential enables the embedding equation to be solved and the field equations to be integrated. The resulting current anisotropic solution is well-behaved and can be used to build realistic static fluid spheres. Our anisotropic solution represents compact structures like VelaX−1 and 4U1608−52 to a very high degree of precision. It has also been presented that our stellar model is physically accepted and satisfies all the physical criteria required to meet for a stable hydrostatic equilibrium configuration.