Billionaire Bill Gates reveals his biggest regrets and best advice for today's 20-somethings

Chesnot | Getty Images

In honor of graduation season, CNBC Make It is rolling out the speeches and pieces of advice that America's leaders are most excited to share with the Class of 2017. Follow along using the hashtag #MakeItNewGrads.

Though Microsoft co-founder and billionaire Bill Gates never got a college degree, he knows what it takes to have a real impact on the world. And he wants to share his top tips for success with every recent college graduate.

In a series of posts on Twitter, Gates offers the insight he wish he had in his 20s.

Here is the tech mogul's advice:

1. Consider going into one of these 3 sectors

Artificial intelligence, energy and the biosciences — these are three fields you should strongly consider, according to Gates.

The reason isn't simply because areas like technology and science are expected to add many jobs to the economy over the next several years. Gates says that people with a background in "AI, energy, and biosciences" will be the most in-demand employees moving forward. If he were starting out today, he says, those are the subjects he would study.

Bill Gates tweet 1

Workers proficient in those subjects will be "the agents of change for all institutions," Gates tells LinkedIn Executive Editor Daniel Roth.

2. Choose your relationships wisely

Gates has been friends with Warren Buffett for over a quarter of a century and believes that his friendship with the legendary investor has greatly helped his career.

The businessman says that who you keep in your inner social circle will impact not only your personal life, but your work life, too. "Surround yourself with people who challenge you, teach you, and push you to be your best self," he says.

Like his COO Sheryl Sandberg, who recently advised young people to "marry the nerds," Gates also seems to be encouraging millennials to make smart romantic choices.

tweet 2

3. Learn more about the world's problems

Gates opens up about his biggest personal regret, which is that he didn't learn more about global inequality until later in life.

Being more aware of the problems humanity faces, he says, will make you better equipped to work to solve them.

tweet 5

4. Stay energized

"This is an amazing time to be alive," he writes. "I hope you make the most of it."

Check out why Bill Gates and Warren Buffett say your friends are crucial to your career. And look for more exclusive pieces of advice from icons like Melinda Gates, Dave Ramsey and others over the next few weeks. Follow along using the hashtag #MakeItNewGrads.