By Chris Isidore

PHILADELPHIA (CNN) — Want to be on the road with the nation’s safest drivers? Head to Madison, Wisconsin.

READ MORE: Man Critically Injured After Shot Multiple Times In North Philadelphia

The state capital and college town tops a list of the ten safest cities for driving from Allstate insurance. The rankings are based on data such as the average time between auto accident claims to how often drivers need to slam on their brakes while driving.

READ: Your Smartphone Knows If You’re A Good Driver

The rankings are adjusted for population density. New York City comes in as the fourth safest city, thanks to its tightly packed population, even though it has more frequent insurance claims and drivers there have to slam on the brakes more often than in other cities on the top 10 list.

READ MORE: Family Members Say 28-Year-Old Leslie Lizet Basilio Was Delaware Metro PCS Manager Killed In Attempted Robbery

New York is actually the only big city to make the list. The second safest city is Brownsville, Texas, followed by Boise, Idaho. Milwaukee is No. 5, behind New York, with Wichita, Hialeah, Florida, McAllen, Texas, Olathe, Kansas and Lincoln, Nebraska.

READ: NJ Ranks #4 On Worst Drivers In America List

The braking information is based on six years of data from Allstate’s Drivewise telematics program, which sends a car’s driving history electronically to the company for drivers who enroll in the program.

MORE NEWS: Balloon Release Held To Remember 16-Year-Old High School Basketball Player Gunned Down In Southwest Philadelphia

The-CNN-Wire ™ & © 2016 Cable News Network, Inc., a Time Warner Company. All rights reserved.