Naperville has been ranked the richest city in the Midwest with at least 65,000 residents in a list by personal finance website NerdWallet.

The city topped the region — and came in at No. 19 in the nation — in the rankings announced Monday.

Arlington Heights and Palatine took the third and seventh spots, respectively, in the list of wealthiest Midwestern cities. Bolingbrook, Schaumburg, Aurora and Elgin also made the top 20.

NerdWallet rated cities based on data from the U.S. Census Bureau, Zillow Research and credit bureau Experian. In the Midwest, the runner-up — Carmel, Indiana — bested Naperville in only one category, with a median household income of $109,375, according to NerdWallet.

Other numbers that placed Naperville at the top of the list:

• $104,419 median household income

• $364,300 median home price

• $67,075 average credit limit

For the full rankings, visit Nerdwallet.com.