The Sensex closed with a gain of 124 points, or 0.15 per cent, at 81,548.73, while the Nifty 50 settled at 25,005.50, up 32 points, or 0.13 per cent. The BSE Midcap index climbed by 0.14 per cent, but the Smallcap index ended flat.