Gen. Zahir Azimi, spokesman for the Ministry of Defense (MoD), said the Afghan soldiers were martyred in the past 24 hours.
He did not disclose further information regarding the exact location of the incident.
The anti-government armed militant groups have not commented regarding the incident so far.
Taliban militants and insurgents from the other militant groups frequently use improvised explosive device (IED) as the weaopn of their choice to target the security forces.
According to security officials, the Afghan army deaths stands at 4 service members daily on average which is mainly caused due to improvised explosive device (IED) attacks.
Roadside bombs are also one of the major contributors to civilian casualties in Afghanistan.