Buying in financial, technology, power, pharma, auto and oil marketing companies' shares helped the markets to stay on the higher side throughout the session.
Over 0.9 per cent gain in European markets and 0.6 per cent rise in US index futures also aided.
But selling in oil & gas exploration and select metal stocks deterred the gains.
Bharti Airtel reduced by 3.4 per cent.
The Sensex closed at 16,886.43, up 145.13 points while Nifty at 5020.20.
Nifty at 5000; ITC, Infy rise
At 1:00 pm, the Nifty maintained a 5000 mark while financials, technology, oil marketing, auto, pharma, power and FMCG stocks witnessed buying interest along with Reliance Industries.
European markets, which gained nearly 0.6 per cent was another supporting factor.
However, selling in Bharti Airtel, Sterlite Industries, ONGC, SAIL, Hindalco, Tata Steel, HCL Tech, PNB, Tata Communication and Ambuja Cements slowed and affected the gains.
In the largecaps, HDFC, Ranbaxy Labs, BPCL, Tata Motors, ITC, Hero Honda and Infosys increased from 1.5 to 4.5 per cent.
Midcaps like P&G, 3M India, Allcargo Global, Bajaj Finserv and Monsanto India gained 8-14% while Bharat Forge, Jubilant, Gujarat NRE Coke, Blue Dart and Shree Cements decreased by 2 to 4 per cent.
In the smallcap space, Ankur Drugs, Transport Corp, Hatsun Agro, Ajmera Realty and Hinduja Venture rose from 10 to 17 per cent while Geekay Finance, KGN Industries, Austral Coke, Ramco Ind and Advani Hotels were reduced by 5 per cent.
Sensex moves higher; RIL gains, Bharti falls
At 11:39 am, The Sensex traded higher with buying in technology, banking, capital goods, FMCG, auto, oil marketing and power stocks.
Reliance Industries was also the gainer.
But due to continuous selling in Bharti and Sterlite Industries both dipped to 2.5 per cent.
In the largecaps, BPCL, Tata Motors and HDFC rose by 3 per cent.
Hero Honda, Maruti and ITC gained 1.5 to 2 per cent.
Jindal Cotex, RNRL, KS Oils, Reliance Industries, Reliance Communication, SBI, Infosys, Unitech and Tata Motors were active on the bourses.
Top percentage gainers were RR Finance, Associated Stone, Magna Electro, Suave Hotels, Bambino Agro, TTK Prestige, Ajmera Realty, Goa Carbon, Subros and Transport Corp. They rose from 10 to 20 per cent.
Transcorp Int, Kilburn Chemica, Nicco Parks, LKP Finance, Terai Tea, IFB Industries, ILandFS, Lotus Eye Care, Ramco Ind and Sutlej Textiles were reduced from 5 to 9 per cent.
Market opens at choppy Sensex; BPCL, IOC gain
At 9:56 am, the Sensex opened 28 points at 16,769 with Reliance Industries, Bharti, Sun Pharma, Tata Steel, Cairn, HPCL, BPCL, IOC, Nalco and Jindal Steel and Power gaining.
However, Sterlite, ITC, HCL Tech and SBI lost.
In the midcap space, TTML increased rose by three per cent while Ballarpur Industries increased by 5.5 per cent post its quarterly plus full year numbers.
Kingfisher Airlines, IVR Prime, Orbit Corporation, Parsvnath, Glenmark Pharma, Natco Pharma, Liberty Shoes and Visa Steel increased by 1 to 5 per cent.
On the other hand, Asian markets showed a mixed trading.