(NEXSTAR) – Small towns are often idealized as family-friendly, safe havens of comfortable living. But does the reality live up to the perfect image?

MoneyGeek had researchers analyze FBI crime data of smaller towns and cities where the population is between 30,000 and 100,000. They used the crime data to calculate the cost of crime in each area.

The cost of crime includes impacts to victims, like the loss of stolen property and medical bills, MoneyGeek explained, as well as the cost to the justice system. Violent crimes typically result in a higher cost than nonviolent crimes, MoneyGeek said.

After crunching the numbers, and comparing the list of smaller cities to its data on crime in large cities, researchers found the stereotype to generally be true – with some noteworthy exceptions. Petersburg, Virginia, for example, was the most dangerous small city analyzed. Its per capita cost of crime was a whopping $9,022, according to MoneyGeek.

Federal Way, Washington, which is just outside Tacoma, had a cost of crime per capita the same as New York City. Federal Way’s population is under 100,000, while New York’s is over 8 million.

But that’s enough about the sneakily dangerous small towns of America. MoneyGeek also ranked the safest of the spots.

The top-10 safest small towns or cities, ranked by their low cost of crime per capita, are:

  1. Buffalo Grove, Illinois ($22 per capita)
  2. Franklin, Massachusetts ($32 per capita)
  3. Carmel Town, New York ($35 per capita)
  4. Shrewsbury, Massachusetts ($38 per capita)
  5. Bartlett, Illinois ($39 per capita)
  6. Monroe Township, New Jersey ($39 per capita)
  7. Long Beach, New York ($42 per capita)
  8. Orland Park, Illinois ($49 per capita)
  9. Yorktown Town, New York ($53 per capita)
  10. Lexington, Massachusetts ($59 per capita)

Parkland is the safest town in Florida, but it barely missed the top 10, coming in at No. 12.

According to the study, the town’s population is 35,773, and the cost of crime was just $62 per capita.

The rate of violent crime in Parkland is 22.4 per 1,000 residents during a standard year. The property crime rate was 561.9.

No other Florida cities made it in the top 100. The next safest was Cooper City, Florida at No. 129. The cost of crime in Cooper City was $198 per capita. The population is 36,714.

The full list, as well as the safest town or city in every state, can be found here.