Abstract This paper is devoted to develop compact stellar configuration and to evaluate exact interior solutions in the background of f ( T , T ) gravity, where T be the torsion scalar and T be the trace of energy momentum tensor. We develop a new set up for embedding class I model under well-known Karmarkar condition for LMC X-4 and Vela X-1 compact stars using specific linear function f ( T , T ) = α T ( r ) + β T ( r ) + Φ , where α , β are any arbitrary constants and Φ be the cosmological constant. Considering static spherically symmetric space–time with perfect fluid distribution, we construct the background field equations, which describe the interior of a fluid sphere. To examine the physical viability of the obtained solutions, we have discussed all the relevant physical quantities (density, pressure, equation of state parameter, square speed of sound and equilibrium condition) analytically and graphically. It is observed that our calculated interior solutions for compact stars showed consistency with all necessary and sufficient physical conditions and hence are physically acceptable and interesting.