SAN FRANCISCO — Yahoo’s chief executive, Marissa Mayer, will walk away with a $55 million severance package if the company’s auction of its Internet operations culminates in a sale that ousts her from her job.

The payout, which was disclosed in a regulatory filing on Friday with the Securities and Exchange Commission, would consist of cash, stock awards and other benefits if she is forced out within a year after a sale.

Although Yahoo’s board is still evaluating takeover offers, many investors are betting that the company will decide to sell its well-known brand and Internet businesses, including an email service and news sections focused on sports and finance.

Ms. Mayer, a former Google executive, has been largely unsuccessful in her efforts to turn around Yahoo’s fortunes. The company’s long-running slump has deepened during her reign, making her compensation — and whether she remains after a possible sale — a topic of great interest.