The Nifty 50 closed at 23,995.95, up 228.50 points or 0.96 per cent, while the Sensex gained 776.01 points or 1.02 per cent to settle at 76,835.78