Riyad Hossain burned by co-worker at Salauddin Filling Station at Jurayeen in the capital's Shyampur area, finally died.
Dhaka Medical College Hospital (DMCH) police camp in charge Bacchu Mia confirmed that Riyad died on Friday night.
Riyad died at Sheikh Hasina Burn and Plastic Institute while he had been undergoing treatment.
Riyad was an undergraduate student at Siddeshwari college. Alongside his study, he would work at the filling station.
His co-worker Mahmudul Hasan, 22, set Riyad on fire by pouring octane at the filling station early on Tuesday.
Riyad's father Farid Hossain filed a case against three people including Mahmudul.
Two other accused are operator Fahad Ahmed and operator Shahidul Islam. Police arrested all of them.