The annual salary of the president of the United States is $400,000. That’s probably more than what an average Finance101 reader makes but less than some corporate CEOs.

However, many American presidents could have probably done without this salary as they came from extreme wealth to begin with. Using information from publication 24/7 Wall St., we’ve ranked 30 of our richest presidents from least to most. Listed net worths have been adjusted for inflation to 2016 dollars. The wealthiest of all might surprise you…

2William McKinley

Net worth: $1 million
Term: 1897-1901
President #25
William McKinley didn’t have a significant inheritance unlike a lot of the presidents on our list. He made his dough working various public service positions for 30 years. This included serving as a local prosecutor and a member of the House of Representatives. It seems like public service can make you some substantial cash, but not as much as being a company exec can.

Unfortunately, Mr. McKinley went bankrupt during the Great Depression in 1893. At the time, he was governor of Ohio, says 24/7 Wall St. Even politicians were affected by the Great Depression! He was president until he was assassinated six months into his second term.
NEXT: At the time, the 14th president of the U.S. was the youngest man to assume the office.