Light, sweet crude for August delivery soared to an all-time high of $147.27 a barrel before settling at $145.08, up $3.43.
In Nymex trading, heating oil futures rose to a trading record of $4.1586 before settling at $4.0766 a gallon, up 3.92 cents.
Gasoline futures also rose to a new trading record of $3.631 a gallon before finishing at $3.5632, up 5.23 cents.
Natural gas futures fell 39.6 cents to $11.904 per 1,000 cubic feet, but only after rising as high as $13.694.
On London's ICE futures exchange, Brent crude settled at $144.49, up $2.46.