Median pay for women occupying the corner office rose to nearly $16 million, according to an annual survey by Equilar Inc. for The Associated Press.

Still, experts say there’s much more to be done to improve gender diversity in the corporate ranks and close the pay gap between men and women.

Jane Stevenson, vice-chair of board and chief executive officer services at organizational consulting firm Korn Ferry, says while it’s good that women CEOs’ pay rose, there’s still a lot to be done. “I think the danger is to look at those cases of CEOs making more than their peers and see a message about the pay gap being closed — it’s not.”

Read: Women held just 19% of board seats in 2019: Stats Can

Of the 340 CEOs in the latest survey of S&P 500 companies, 18 were women, up from 16 in 2020. Profits for S&P 500 companies rose roughly 50 per cent and the index gained about 27 per cent. Because the bulk of a CEOs’ compensation is tied to such performance, their pay packages ballooned after years of mostly moderating growth.

Female CEO median pay rose 26 per cent in 2021 to $15.8 million, with 15 of the 18 women CEOs in the survey seeing an increase. That was a bigger jump than male CEOs’ median pay, which rose 18 per cent to $14.4 million. The overall median pay increased 17 per cent to $14.5 million.

The few women who are CEOs of the largest U.S. companies typically make more money than their male counterparts. But last year they weren’t close to the top of the leaderboard for pay packages. Last year, the top earning CEO was Peter Kern of Expedia Group Inc., who received a pay package valued at $296.2 million.

Read: Pay transparency could help solve gender, racial wage inequities: experts

Lisa Su of Advanced Micro Devices Inc. was the highest paid woman CEO for the third year in a row, but her compensation, valued at $29.5 million, ranked just 22nd in the survey. Su’s pay rose nine per cent from last year. That was partly due to stock and stock options awards, which totalled $25.1 million as AMD’s stock surged 57 per cent. Her base salary was about $1.1 million.

Just behind her was Mary Barra, the CEO of automaker General Motors Co., whose pay jumped 25 per cent to $29.1 million, including a base salary of $2.1 million and stock and stock options awards worth $18.5 million.

Jayshree Ullal, CEO of cloud computing company Arista Networks Inc., saw the biggest jump in salary. Her pay more than doubled to $16 million, mostly due to stock awards valued at $15.4 million. Arista’s stock doubled in 2021 on strong demand for its cloud computing products.

Read: More work to be done on workplace gender equality: survey

The number of racially diverse CEOs is gradually increasing too. According to a survey of companies in the S&P 500 and Fortune 500 by executive recruitment firm Crist Kolder Associates, six had Black CEOs in 2021, 40 had Asian American CEOs and 20 had Latinx/Hispanic executives leading them.

If the ranks of women CEOs are to grow, there needs to be a better pipeline to promote women leaders, says Stevenson. “Pay tells a story. We have more stories of some women getting ahead. It’s great, but it does not a system make. What we do not have is a systemic path forward for women, generally speaking, in a sustainable way, to be on the path to top roles and top pay.”

Alison Cook, a professor of management at Utah State University who researches gender and diversity in the workplace, says there’s been a recent push to get more women on boards, rather than in top C-suite roles. “Hopefully, the push into the board of directors translates into more women getting to the C-suite pipeline and available to be CEOs.”

Read: New survey finds gender, generational gap in employee financial wellness