5138 in words is written as :

Five Thousand One Hundred and Thirty Eight