New York Knicks (2011–2012)
During the offseason, Lin worked to improve his jump shot by abandoning the shooting form he had used since the eighth grade. He also increased his strength, doubling the weight he could squat (from 110 pounds (50 kg) to 231 pounds (105 kg)) and almost tripling the number of pull-ups that he could do (from 12 to 30). He increased his body weight from 200 pounds (91 kg) to 212 (96), including 15 pounds (6.8 kg) of muscle. He added 3.5 inches (8.9 cm) to his standing vertical jump and 6 inches (15 cm) to his running vertical jump, and improved his lateral quickness by 32 percent. Due to the lockout, he never got a chance to work out for new Warriors coach Mark Jackson. On the first day of training camp on December 9, 2011, the Warriors waived Lin to free up salary cap space to make an offer to restricted free agent center DeAndre Jordan; Lin was due to make almost $800,000 that would have become fully guaranteed on February 10, 2012.
Lin was claimed off of waivers by the Houston Rockets on December 12, 2011, and played seven minutes in two pre-season games in Houston. Houston already had point guards Kyle Lowry, Goran Dragić and Jonny Flynn, and all three had guaranteed contracts. The Rockets waived Lin on December 24, before the start of the season, to clear payroll to sign center Samuel Dalembert.
The New York Knicks waived point guard Chauncey Billups for cap space to sign center Tyson Chandler. On December 27, after an injury to guard Iman Shumpert, the team claimed Lin off of waivers to be a backup behind Toney Douglas and Mike Bibby. Recently signed guard Baron Davis had also been injured, and was weeks away from being able to play. Because of the lockout, coaches had little opportunity to see Lin's play, and placed him fourth on the point guard depth chart. Lin stated that he was "competing for a backup spot", adding that people saw him "as the 12th to 15th guy on the roster"; he continued to arrive first at practice and leave last, intensely studied game film, and worked with coaches to improve his footwork and judgment.
Lin made his season debut with the Knicks on the road against the Warriors, where he was cheered in his return to Oracle Arena. In January, Lin was assigned to the Erie BayHawks of the D-League, and on January 20, he recorded a triple-double with 28 points, 11 rebounds, and 12 assists in the BayHawks' 122–113 victory over the Maine Red Claws. Three days later, Lin was recalled by the Knicks, but was so fearful of being cut again that he asked a chaplain at a pregame prayer service to pray for him.
On January 28, Davis postponed his Knicks debut due to an elbow infection and back pain. Contemplating signing another player, the Knicks were considering releasing Lin. However, after New York squandered a fourth quarter lead in a February 3 loss to the Boston Celtics, coach Mike D'Antoni—in desperation, according to experts—decided to give Lin a chance to play. "He got lucky because we were playing so bad", said the coach; three point guards had failed to run D'Antoni's offense, and fans demanded the team fire him. Lin had played only 55 minutes through the Knicks' first 23 games, and the team had lost 11 of its last 13 games; however, he unexpectedly led a Knicks resurgence.
On February 4, against the New Jersey Nets and All-Star guard Deron Williams, Lin had 25 points, five rebounds, and seven assists—all career highs—in a 99–92 Knicks victory. Teammate Carmelo Anthony suggested to D'Antoni at halftime that Lin should play more in the second half. After the game, D'Antoni said Lin had a point-guard mentality and "a rhyme and a reason for what he is doing out there". In the subsequent game against the Utah Jazz, Lin made his first career start, playing without stars Anthony (who left the game due to injury) and Amar'e Stoudemire (whose older brother had died). Upon Lin's promotion to the starting lineup, the Knicks went on a seven-game winning streak. Lin had 28 points and eight assists in the Knicks' 99–88 win. Stoudemire and Anthony missed the next three and seven games, respectively. D'Antoni said after the Jazz game that he intended to ride Lin—still not in the media guide—"like freakin' Secretariat".
In a 107–93 win over the Washington Wizards, Lin played against John Wall and had 23 points and 10 assists, his first double-double. On February 10, Lin scored a new career-high 38 points and had seven assists, leading the Knicks in their 92–85 victory over the Los Angeles Lakers. He outscored the Lakers' Kobe Bryant, who had 34 points. The New York Times wondered if Lin was "the Knicks' grandest stroke of fortune" since drafting Patrick Ewing in the 1985 NBA draft. On February 11, Lin scored 20 points and had eight assists in a narrow 100–98 victory over the Minnesota Timberwolves, making a go-ahead free throw with 4.9 seconds left in the game. Lin was named the Eastern Conference Player of the Week after averaging 27.3 points, 8.3 assists and 2.0 steals in four starts; the Knicks went undefeated during those four games.
On February 14, with less than a second remaining in the game, Lin made a game-winning three-pointer in the Knicks' 90–87 win over Toronto. The basket was so amazing to the Lakers watching on television that veteran player Metta World Peace ran past reporters shouting "Linsanity! Linsanity!" and waving his hands above his head. Lin became the first NBA player to score at least 20 points and have seven assists in each of his first five starts. Lin scored a total of 89, 109, and 136 points in his first three, four, and five career starts, respectively; all three totals at the time were the most by any player since the merger between the American Basketball Association (ABA) and the NBA in 1976–77.
In the following game against the Sacramento Kings, Lin recorded 13 assists and led the Knicks back to a .500 record with a 100–85 win. The team's seven-game winning streak ended in an 89–85 loss to the New Orleans Hornets; Lin scored 26 points, but had nine turnovers. His 45 turnovers in his first seven career starts were the most since individual turnovers began being tracked in 1977–78.
On February 19, in a 104–97 win against the Mavericks, Lin scored 28 points and tallied career highs with 14 assists and five steals. USA Today wrote: "No matter what Dallas threw at Lin – double-teams, traps, blitzes, tall defenders ... smaller defenders ... stocky, thin – Lin found a way ... to a victory against the defending NBA champions". He did not do as well against the Miami Heat, shooting one for 11 from the field and committing eight turnovers. LeBron James, Dwyane Wade, Chris Bosh, and the rest of the eventual NBA champions focused their entire defense on Lin, an experience he described as "flattering—and terrifying ... I felt like they were all like hawks circling me and staring".
The craze surrounding Lin's sudden ascendancy became known as "Linsanity". In his 12 starts before the All-Star break, Lin averaged 22.5 points and 8.7 assists per game, and New York had a 9–3 record. He played in the Rising Stars Challenge during NBA All-Star Weekend. He was omitted from the original Rising Stars roster, but was added after his sudden ascent to stardom. Some media outlets—including USA Today, Los Angeles Times, and CBSSports.com—stated that he deserved to play in the All-Star Game.
In March, the Knicks replaced D'Antoni with coach Mike Woodson, who ran fewer pick-and rolls and more isolation plays. Lin had excelled at running pick-and-rolls under D'Antoni. After a March 24 game against the Detroit Pistons, Lin complained about a sore knee, and an MRI later revealed a small meniscus tear in the left knee. Lin opted to have knee surgery and missed the remainder of the regular season. He averaged 18.5 points and 7.6 assists during his 26 games as an everyday player; during that period, the team went 16–10. The Knicks finished the season with a 36–30 record and earned the seventh seed in the Eastern Conference playoffs. Without the injured Lin, they were defeated by the eventual NBA champion Miami Heat in the first round of the playoffs in five games. Lin finished sixth in voting for the NBA Most Improved Player Award.
Lin became a restricted free agent at the end of the season. The New York Times called Lin "[the Knicks'] most popular player in a decade" and asserted that he had saved the team's season. However, his success over only 26 games left teams uncertain about his overall standing among the league's point guards; some still believed Lin was a bench player.
In July 2016, former Knicks coach Mike D'Antoni recalled that some players on the Knicks resented Lin during the Linsanity period, an account corroborated by Lin's former Knicks teammate Amar'e Stoudemire.