NEW YORK — Gasoline and crude oil jumped to new records Thursday, with gas rising 3 cents to an average national price of nearly $3.65 a gallon and oil crossing $124 a barrel for the first time.

At the pump, the average price of a gallon of regular gas nationwide rose 2.7 cents to a record $3.645, according to a survey of stations by AAA and the Oil Price Information Service. Diesel prices also rose, adding 0.9 cent to match a record national average of $4.251 a gallon.

Light, sweet crude for June delivery rose 16 cents to reach a settlement record of $123.69 a barrel on the New York Mercantile Exchange Thursday after spending much of the day in negative territory. But in after-market electronic trading, prices rose to a new trading record of $124.49. Volume was quite low, making it easy for oil to keep pushing higher.