The unitary Cayley graph Xn has vertex set Zn={0, 1,…, n-1} and vertices u and v are adjacent, if gcd(u-v, n)=1. In [A. Ilic, The energy of unitary Cayley graphs, Linear Algebra Appl. 431 (2009) 1881–1889], the energy of unitary Cayley graphs is computed. In this paperthe Wiener and hyper-Wiener index of Xn is computed.