The operation will be done in the Dallas area by Dr. Keith Meister.
Purdy was originally scheduled to have surgery on Feb. 22, but Meister delayed it because there was too much swelling in the right elbow. Meister met again with Purdy last week and cleared him for the operation.
Purdy tore the ulnar collateral ligament in his right elbow on the first drive of a 31-7 loss in the NFC title game to Philadelphia on Jan. 29.
He is expected to be able to start a throwing program about three months after the operation and should be fully recovered in about six months, putting his status for the start of the 2023 season in question.
Purdy went from the last pick of the draft to starter in the conference title game in an impressive rookie season for the 49ers. He won his first seven starts before the loss to Philadelphia in the conference title game.
Purdy's injury will give 2021 first-round pick Trey Lance time to work with the first-team offense. Lance began this past season as the starter before a season-ending ankle injury in Week 2.
Lance needed a second operation in late December and has just started throwing recently.
The Associated Press contributed to this report.