Midland County was named the wealthiest county in Texas according to a financial advice website.

According to the Midland Reporter-Telegram, the financial website SmartAsset.com ranked Midland County number one in per capita income at $126,631, and number one in investment income at $59,283.

The only other Permian Basin county in the top 10 overall was Glasscock County which ranked sixth in the state.

But other Permian Basin counties ranked in the top 10 for per-capita investment income like Reeves county was third in per-capita investment income and third in per-capita income overall also. Martin County ranked fourth in the state in both per-capita income and per-capita investment income too.

Midland County also ranked 37th in overall wealth in the nation and 13th in per-capita income and per-capita investment income.

How did SmartAsset.com get its rankings? They compared all counties nationwide across three metrics, investment income, property value, and per-capita income. The combination of those metrics is how they got the wealth index for all U.S. counties.

Speaking of property value, the median home value in Midland was $279,569 according to the study. That put Midland County 20th in the state in that category. The median home value statewide was $154,965.

So how did the top five in Texas pan out? Here is how it went:

1. Midland County - Midland

2. Travis County - Austin

3. Kendall County - Boerne

4. Collin County - McKinney

5. Gillespie County - Fredericksburg

Statewide the average per-capita income was $55,129, and the average per-capita investment income was $12,090.

LOOK: Here are 25 ways you could start saving money today

These money-saving tips—from finding discounts to simple changes to your daily habits—can come in handy whether you have a specific savings goal, want to stash away cash for retirement, or just want to pinch pennies. It’s never too late to be more financially savvy. Read on to learn more about how you can start saving now. [From: 25 ways you could be saving money today]

KEEP READING: Here are the best places to retire in America