The Indian stock market ended higher on Tuesday after a volatile session, with Sensex gaining 287 points and Nifty rising 115 points. Pharma, PSU banks and consumer durables led sectoral gains, while private banks and metals declined. IndiGo, Adani Ports, Infosys and Trent gained, while Eternal and HCLTech fell.