Gastrointestinal nematodes are responsible for economic losses in bovines and are characterized by reduced milk production, decreased working efficiency, and even death. In our study, the effect of different anthelmintic treatments on nematode control in different parity cattle (Friesian crossbreds) at calving and their effect on milk yield were evaluated. The economics of anthelmintics and farm benefits in terms of increased milk production after deworming was also calculated. We screened cattle of first and second parity for nematodes. Animals were randomly selected in each group. In first parity animals, there were 23 positive cattle found, which were divided into 3 different groups, while in second parity animals there were 20 positive cattle which were also divided into 3 groups. For treatment of gastrointestinal nematodes, we used albendazole (velbazine) at 10 mg/kg body weight and levamisole (Nilverm®) at 7.5 mg/kg. In this study, both drugs were found effective in controlling nematode infections in cattle. Percentage reduction of eggs per gram (EPG) by albendazole was 48.20, 85.34, and 93.90% and 51.54, 81.43, 91.74% on day 7, 14, and 21 in first and second parity animals, respectively. Percentage reduction of EPG by levamisole was 44.45, 76.92, and 88.03% and 46.60, 73.78, 85.43% on day 7, 14, and 21 in first and second parity animals, respectively. The average increase in milk production in albendazole-treated groups was 0.39 and 0.92 L per day while increases in levamisole treated groups were 0.27 and 0.55 L per day in first and second parity cattle, respectively. After treatment, albendazole increased the milk fat by 0.07 and 0.1% while levamisole decreased by 0.02 and 0.05% in first and second parity cattle, respectively. It is concluded that anthelmintic treatments of recently calved cattle have a significant effect on milk production due to the nematode control. Milk production increased significantly in second parity cattle following anthelmintic treatment as compared to first parity animals. Levamisole had a negative effect on fat concentration in cattle while albendazole-treated cattle showed a positive effect. Albendazole has been found more efficient in reducing EPG of helminths in both parity animals as compared to levamisole-treated animals while the cost–benefit ratio of levamisole was greater than albendazole.