Tokyo stocks closed higher Tuesday, and the Nikkei passed the 10,000 threshold for the first time since last August, but profit-taking erased much of the gains and it ended below 9,900.

The 225-issue Nikkei stock average rose 103.56 points, or 1.06 percent, to close at 9,898.72, its highest finish since Aug. 27, which was also the last time it passed 10,000 on an intraday basis.

Before losing steam Tuesday, it reached 10,027.60.