Sanchez underwent the procedure to repair an injury dating from his time at the University of Southern California when he dislocated his left kneecap during practice in August 2008.
The quarterback said he opted for arthroscopic surgery to stabilize his patella with team physicians Drs. Ken Montgomery and Elliott Hershman doing the operation.
A message on the Sanchez Twitter site stated: "Out of surgery. Doc says it went exceptionally well. Thx to Dr Montgomery. Thx to family, friends & tweeps for the love and well wishes."
He is expected to be healthy enough to take part in the Jets' training camp in July.
Sanchez is coming of a rookie season in which he helped the Jets to the AFC title game. He completed 53.8 percent of his passes for 2,444 yards with 12 touchdowns and 20 interceptions. New York won playoff games against Cincinnati and San Diego but dropped the AFC final to Indianapolis.