The calculator, like others found on this site for inflation, uses U.S. Bureau of Labor Statistics data -- specifically, "12-Month Average Gasoline (all types) in U.S. city average." It adjusts for gasoline inflation through June using BLS data published on July 11, 2024. Data through July will be available August 14, 2024.