← All datasets

Cars

Every vehicle the US EPA has rated for fuel economy since 1984, 50,407 model variants from the public-domain fueleconomy.gov dataset, one row per make, model, year, engine and transmission. Columns: make, model, model year, vehicle class, drive, transmission, cylinders, engine size in litres, primary fuel type, alternative-fuel type (conventional, hybrid, plug-in hybrid, electric, flex-fuel and the like), city, highway and combined MPG (MPGe for electrics), tailpipe CO2 grams per mile, annual petroleum use in barrels, estimated annual fuel cost and electric range. The 2,099 electrics carry a range, and the most efficient on record is the 2025 Lucid Air at 146 MPGe. A rich dataset for automotive analytics: fuel economy and CO2 trends across four decades, the rise of hybrids and electrics, and how engine size, cylinders and vehicle class drive consumption. Eight acceptance tests, one enforcing the 25 percent fill rule on every column, electric range excepted since it is blank for gas cars by definition.
50,407 rows 1 file last pulled 2026-10-24
Where would you start?
Pick a question, or ask your own and answer it; publish what you find as an insight. The same question can carry many insights from different angles.
  • How has horsepower per liter evolved by decade?
  • Which countries' cars lead efficiency in each class?
  • Is curb weight rising even as engines shrink?
Cars 50,407 rows × 17 columns
MakeModelYearVehicle_ClassDriveTransmissionCylindersEngine_LitersFuel_TypeAlt_Fuel_TypeCity_MPGHighway_MPGCombined_MPGCO2_g_per_miAnnual_Petroleum_BarrelsAnnual_Fuel_Cost_USDEV_Range_Miles

Questions and answers

What is the Cars dataset?

Every vehicle the US EPA has rated for fuel economy since 1984, 50,407 model variants from the public-domain fueleconomy.gov dataset, one row per make, model, year, engine and transmission. Columns: make, model, model year, vehicle class, drive, transmission, cylinders, engine size in litres, primary fuel type, alternative-fuel type (conventional, hybrid, plug-in hybrid, electric, flex-fuel and the like), city, highway and combined MPG (MPGe for electrics), tailpipe CO2 grams per mile, annual petroleum use in barrels, estimated annual fuel cost and electric range. The 2,099 electrics carry a range, and the most efficient on record is the 2025 Lucid Air at 146 MPGe. A rich dataset for automotive analytics: fuel economy and CO2 trends across four decades, the rise of hybrids and electrics, and how engine size, cylinders and vehicle class drive consumption. Eight acceptance tests, one enforcing the 25 percent fill rule on every column, electric range excepted since it is blank for gas cars by definition.

How big is the Cars dataset?

50,407 rows in one CSV file, with 17 columns in total: Make, Model, Year, Vehicle_Class, Drive, Transmission, Cylinders, Engine_Liters, Fuel_Type, Alt_Fuel_Type, City_MPG, Highway_MPG, Combined_MPG, CO2_g_per_mi, Annual_Petroleum_Barrels, Annual_Fuel_Cost_USD, EV_Range_Miles.

Where does the data come from?

It is built by programmatically scraping fueleconomy.gov, last pulled on 2026-10-24. Datasets are versioned; older versions stay downloadable.

Is the dataset free to download?

Yes. Every CodeSights dataset is completely free as a CSV download; a free account is all it takes. Anyone can preview the data without signing in.

Can I see the code that built this dataset?

Yes. The exact Python scraper that built it is viewable on the dataset page by any signed-in member, so every number is reproducible.

Can the data contain errors?

Automated scraping leaves room for error and the underlying sources change over time, so no version is guaranteed accurate or complete. If a number matters, verify it against the original source.

Browse every free dataset on CodeSights