Michigan residents reported an average income of $64,041 on their 2017 federal tax returns, according to the most current state-level data from the Internal Revenue Service.

That’s up 3.5% from the previous year and 33% from 2009, the depth of the recession, the data shows.

Meanwhile, the state’s collective adjusted gross income increased from $218 billion to $300 billion, or 37%, between 2009 and 2017, the result of both income growth and higher employment.

Those 2017 numbers are record highs in current dollars. But when factoring inflation, it’s still below 1999 and 2000, just before Michigan’s manufacturing sector began to slump.

Here are some other highlights from the most recent IRS income data for Michigan, which covers income received in 2017 and reported on tax returns filed in 2018.

Note this data set does not show the impact of the 2018 federal tax cuts, which were first used in calculating tax returns filed last year.

Oakland County had the highest average AGI in 2017

Almost 4.8 million individual returns were filed from Michigan in 2017, and they had an average adjusted gross income of $62,917. (AGI is gross income minus certain deductions, such as business expenses and contributions to retirement and health savings accounts.)

Oakland had the highest average AGI, $96,135. Also in the top five: Washtenaw ($86,141), Midland ($85,847), Leelanau ($804,98) and Livingston ($80,029).

The bottom five, all in the northern Lower Peninsula: Montmorency ($39,105), Oscoda ($40,150), Ogemaw ($40,183), Lake ($40,285) and Missaukee ($41,532).

Here’s an online database that allows you to look up the numbers for any Michigan ZIP Code. Note these numbers are IRS estimates based on samples vs. exact numbers. You can search by county, community or look up a specific ZIP Code.

If you click on “details,” you can see the numbers for 2009.

Berrien County had the biggest increase in total AGI between 2009 and 2017

The IRS data reflects the growing affluence of Michigan’s lakeshore communities: Berrien, Leelanau and Grand Traverse are among the five counties with the biggest increase in total AGI between 2009 and 2017.

Berrien’s total AGI increased 96%; Leelanau, 86%, and Grand Traverse, 72%. Also in the top five: Oakland, up 75%, and Kent, up 73%. In all five cases, the spikes resulted from both more households filing tax returns as well as healthy increases in average household income.

The bottom five: Ontonogan (up 15%), Luce (15%), Gogebic (23%), Ogemaw (23%) and Tuscola (24%).

The first three are in the Upper Peninsula, Ogemaw is in the northern Lower Peninsula, and Tuscola in the Thumb region.

Below is an interactive map shows that shows change in total AGI by county between 2009 and 2017; click on a county to see the underlying data.

Average AGI is skewed by high-income households

Of the 4.8 million individual tax filers, 61% had an adjusted gross income of less than $50,000 and 38% had an income under $25,000 -- which includes young adults who filed returns but are listed as dependents on their parents’ tax returns.

Meanwhile, 10% of Michigan’s total AGI came from 0.2% of returns -- the 10,010 filers with an AGI of at least $1 million.

About 61% of Michigan tax filers in 2017 had an adjusted gross income of under $50,000.

Average income for single filers was much lower than for married couples

About 54% of single filers had an adjusted gross income below $25,000, while 37% of married couples filing jointly had an AGI over $100,000.

About 49% of Michigan’s 2014 returns were from single filers, 37% from married couples filing jointly, 12% from those filing as head of household, and 1% from married couples filing separately.

73% of returns with an adjusted gross income under $25,000 were filed by single individuals, while 85% of returns with an AGI over $100,000 were filed by a married couple.

Average tax liability in 2017 was $8,367

Federal income tax averaged $8,367 per Michigan federal tax return.

That average was skewed considerably by high-income households, who paid the bulk of federal taxes. In 2017, the federal government collected a total of $40 billion in income taxes from Michigan households, of which $20 billion came from those earning $200,000 or more.

About 30% of Michigan filers paid no federal income tax in 2017. That included 0.4% of those with an AGI of at least $100,000.

Wages and salaries were 69% of income in 2017

Of the $304 billion in income reported to the IRS by Michiganders:

$209 billion, or 69%, came from wages and salaries;

$45 billion, or 15%, from retirement income, including pensions, annuities, Social Security and distributions from Individual Retirement Accounts;

$29 billion, or 10%, from investment income, including taxable interest, dividends and capital gains.

$25 billion, or 8%, from self-employment or business partnerships.

High-income filers most likely to have other sources of income

No surprise, high-income households were mostly likely to have investment income.

For filers with an AGI of under $100,000, only 3% of all income reported came from investments -- taxable interest, dividends or capital gains.

By contrast, investments accounted for 41% of all income reported by those with an AGI of at least $1 million.

Moreover, the top 0.2% collected 60% of the all the capital gains reported by Michigan residents, a third of the dividends reported, and 27% of taxable interest payments.

1 in 6 filers qualified for the Earned Income tax credit

About 16% of 2017 filers qualified for the Earned Income Credit for low-and moderate-income Americans with dependents. The average size of the credit, which is based on income and family size, was $2,478 for Michigan recipients in 2017.

The credit is applied against filers’ tax liability; if the credit is larger than their tax bill, they get the excess as a refund.

Average refund was $3,119

More than 77% of tax filers qualified for a federal tax refund, and the average refund was $3,119, which includes those who elected to apply that amount to their 2018 taxes.