By Chris Isidore

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

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.

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.

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