The S&P BSE Sensex gained 226.85 points to close at 76,759.81, while the NSE Nifty50 added 86.40 points to end at 23,249.50.