In this article, we find the possibility of generalized wormhole formation in the galactic halo due to dark matter using observational data within the matter coupling gravity formalism. Keeping this as a target, we specifically employ f(R, T) gravity with (i) a variational approach concerning the metric, and (ii) the anisotropic source of matter. To understand the features of the wormholes, we thoroughly calculated and analyzed the energy conditions under f(R, T) gravity. We discuss the second embedded wormhole solution, known as the generalized Ellis–Bronnikov spacetime (ultrastatic wormhole model), in terms of the tortoise coordinate. Thereafter we generate and compare different wormhole solutions depending on the parametric values. In the second part of our investigation, we presented dark matter halos and provided interesting features by considering a couple of profiles. For the dark matter halos models, we particularly use the observational data of the M87 galaxy and the Milky Way galaxy.