The 30-share index started the day on a firm footing at 19,970.02, higher by 118 points from yesterday's close. It, however, erased some of the early gains during the day and closed 97.50 points, or 0.49 per cent higher at 19,948.73.
Sensex had closed down by 183.25 points in the previous session.
Similarly, the wide-based National Stock Exchange index Nifty gained 18.05 points, or 0.30 per cent, to close at 5,973.30.
They said a better earning by companies like Infosys and HDFC Bank for the first quarter further supported the uptrend.
More From This Section
A firming trend inthe Asian region ahead of Federal Reserve Chairman Ben S Bernanke's address to the US Congress, further influenced the sentiment, they added.
Out of the 30 BSE components, 15 stocks ended higher led by Hindustan Unilever rising 9.86 per cent to Rs 684.75, followed by NTPC (3.18 per cent) and Wipro (2.96 per cent).