Abstract. An elegant formula for coordinates of carbon atoms in a unit cell of a single-walled nanotube (SWNT) is presented and the potential of neon (Ne) inside an infinitely long SWNT is analytically derived out under the condition of the LennardJones potential between Ne and carbon atoms. Specific heats of dilute Ne inside long (20,20) SWNT are calculated at different temperatures. It is found that Ne exhibits 3-dimensional (3D) gas behavior at high temperature but behaves as 2D gas at low temperature. Especially, at ultra low temperature, Ne inside (20, 20) nanotubes behaves as lattice gas. A coarse method to determine the characteristic temperature