Nationwide gas prices hit an all-time high in the last two weeks, rising nearly 2 cents to just over $3 per gallon, according to a survey released Sunday.

The national average for self-serve regular stood at $3.0150 a gallon Friday, up 1.98 cents in the last two weeks, according to the Lundberg Survey of 7,000 gas stations across the country.

Click here to visit FOXBusiness.com's Energy page.

The price exceed the previous high of $3.0117 set in September last year, analyst Trilby Lundberg said.

A gallon of mid-grade gasoline averaged around $3.12, and premium at nearly $3.22.

Nationwide, the lowest price for regular was $2.77 a gallon in Charleston, S.C., while the highest — $3.28 a gallon — was in San Diego.