After a survey from Waze listed Greensboro as the best place to drive in the country, a WalletHub list of the best and worst states to drive in was equally kind to North Carolina.

In fact, financial website WalletHub named the Tar Heel state as the fifth-best in the country for driving.

RELATED: Greensboro Is the Best Place to Drive In The U.S. | Waze

RELATED: How Greensboro Was Chosen As Best City For Drivers

The rankings are based on four key factors: the cost of ownership and maintenance, traffic and infrastructure, safety, and access to vehicles and maintenance. And within those categories, are smaller elements that look at gas prices, the number of days with precipitation, traffic fatality rate and car dealerships per capita.

NC ranked third for cost of ownership and maintenance and 11th in access to vehicles and maintenance. South Carolina fared worse, ranking 30th overall.

Texas ranked first overall while Kansas, Nebraska, Iowa and NC rounded out the top 5.

So where are the places you should avoid driving?

California, Washington, Maryland and, especially, Hawaii all have a lot of work to do, according to WalletHub.

Hawaii ranked poorly for most days with precipitation, high average gas prices, high auto maintenance costs, fewest car washes per capita and fewest auto repair shops per capita.

Source: WalletHub

Follow WFMY News 2 on Facebook and Twitter

► Make it easy to keep up to date with more stories like this. Download the WFMY News 2 App now