Crude oil futures for May gained Rs 21, or 0.40%, to Rs 5,229 per barrel in 12,394 lots.
At the Multi Commodity Exchange (MCX), the June contract moved up by Rs 19, or 0.36%, to Rs 5,257 per barrel in 1,721 lots.
Prices rose as speculators created fresh positions.
Firming trend in Asia as a surprise rise in German industrial production that brightened the market's outlook for European and global growth supported the trade.
On the New York Mercantile Exchange (NYMEX), June contract advanced by 5 cents to $96.97 a barrel.