(CNN) - Wyoming is the most expensive state to own and operate a car, according to Bankrate.
Bankrate ranked states based on the price of gas, insurance and car repairs to come up with the cost of owning and operating a car in each state.
The national average cost of owning a car is about $2,200 a year.
In Wyoming, drivers pay about $2,700 a year because drivers log more miles and have to buy more gas.
Louisiana and Florida come in as the second and third most expensive states to operate a car in, at more than $2,500 a year.
The cheapest place to own a car is the Midwest. Drivers in Iowa, Ohio and Illinois spend less than $2,000 a year.
Copyright 2014 CNN. All rights reserved.