West Texas Intermediate crude oil on the New York Mercantile Exchange added 99 cents to $96.55 per barrel.
Gasoline prices gained 3.13 cents to $2.8583 a gallon. Home heating oil lost 0.29 cents to $2.9177 a gallon. Natural gas added 14.8 cents to $3.975 per million British thermal units.
At the pump, the average price of a gallon of regular unleaded gasoline was $3.539 Tuesday, up from Monday's $3.525, the AAA Fuel Gauge Report said.
Pistorius testifies he didn't consciously pull trigger when he shot girlfriend
'Happy' fan videos make Pharrell cry [VIDEO]