The rally rich: Who gained the most from stocks

Meet the rally rich

For most Americans, the Dow 17,000 milestone is just a number. But for some corporate founders, the market rally this year has meant a fortune.

The Dow's total market capitalization has grown by $156.4 billion this year to $4.91 trillion, adding to pension funds, endowments and mutual fund holders.

Read MoreMillionaire millennials inherit riches

But the biggest beneficiaries are the top 10 percent of Americans who own some 80 percent of the stocks. And within that group, the largest windfalls have gone to corporate founders or big shareholders of certain stocks—especially in tech and energy.

Steve Ballmer, for instance, has made nearly $1.5 billion in paper wealth from his Microsoft stock this year, even though he's no longer CEO. That gain will pay about 75 percent of the cost of his planned $2 billion purchase of the LA Clippers basketball team.

Read MoreHere's what really troubles the rich

Harold Hamm, the fracking pioneer and head of Continental Resources, has gained $5.68 billion in paper wealth this year and is now worth nearly $20 billion. Hamm isn't well known outside energy circles but that may change quickly as his fortune soars.

Mark Zuckerberg
Getty Images

And one of the biggest winners of the year saw most of his gains in three days. GoPro founder Nicholas Woodman has seen his fortune grow by $1 billion since the company's IPO on Thursday. That works out to about $8 million an hour since Thursday (including weekend pay). The surfer/entrepreneur is now worth more than $2.5 billion.

Read MoreMeet the GoPro millionaires—and billionaires

Here is a list of some of the new "Rally Rich."

Rank Name Gain in value of shares owned Total market value of company stake
1Mark Zuckerberg$5.79 billion$29 billion
2Harold Hamm$5.68 billion$19.8 billion
3Steve Ballmer$1.47 billion$13.9 billion
4Larry Paige$1.12 billion$27 billion
4Sergey Brin$1.12 billion$27 billion
5Nicholas Woodman$1 billion$2.55 billion
6Kevin Plank$650,000$2.3 billion
7John Marriott$446,000$1.89 billion

—By CNBC's Robert Frank