(WHDH) — Boston is among the five most caring cities in America, according to a new ranking released by WalletHub.

WalletHub compared the 100 largest cities across 36 key indicators of a compassionate spirit. Some indicators included homelessness rates, percentage of income donated to charity and special-education teachers per capita.

Boston ranked fifth overall on the list. The city was ranked first in “Caring for the Community,” 35th in “Caring for the Vulnerable,” and 25th in “Caring for the Workforce.”

Madison, Wisconsin, was ranked the most caring city. Virginia Beach, Virginia, and Lincoln, Nebraska, rounded out the top 3.

View the full ranking below:

(Copyright (c) 2020 Sunbeam Television. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)