The serviceman's death is not thought to be the result of hostile action, although an investigation is ongoing.
The member of 104 Force Support Battalion was attached to 4 Close Support Battalion, Royal Electrical and Mechanical Engineers (REME). His next of kin have been informed.
Lieutenant Colonel Richard Parry, spokesman for Joint Force Support (Afghanistan), said: "It is with deep sadness that I must report the death of a soldier from 4 Close Support Battalion, REME, at Camp Bastion.
"The condolences of all personnel serving with Joint Force Support Afghanistan are with the soldier's family and friends at this extremely difficult time."