The deal is worth $82 million, agent Rich Paul told ESPN.com on Wednesday. The deal does not include player or team options, and all money is guaranteed.
At $16.4 million annually, it will make Thompson the sixth-highest-paid power forward in the NBA and equal the contract signed by Golden State Warriors forward Draymond Green over the summer.
It also ends a contract stalemate dating to July that caused Thompson to miss training camp and the preseason.
Thompson, 24, had been seeking a max contract of five years and $94 million or three years and $53 million. The Cavs had previously offered five years and $80 million.
While Thompson settled for less than the max, his deal is larger than many league officials thought he would get heading into the summer.
The contract completes the Cavs' goal of bringing back the core of the team that reached the Finals last season. It cost them heavily to do so -- the contracts forLeBron James, Kevin Love, Iman Shumpert, J.R. Smith and Thompson total more than $290 million in guaranteed money.
It will also come with a massive tax bill. Though the tax won't be calculated until the end of the season, and the Cavs have only 14 guaranteed contracts, they are now in line to pay in excess of $60 million in luxury tax, which would be the second highest on record.
Including salaries and tax, the Cavs are likely to spend more than $170 million on this season's roster, the second-highest number in league history behind the 2013-14 Brooklyn Nets. The Nets spent $197 million that season, including a record $90.5 million in tax.
The Cavs now have long-term deals locked up with Love, Thompson and young star Kyrie Irving, who is starting a five-year, $94 million extension he signed in 2014.
Thompson was quick to weigh in via social media in the wake of the agreement.
Negotiations between the team and Thompson dragged out for more than a year. Last fall, the Cavs offered Thompson a four-year deal worth $50 million, and Thompson turned it down.
Thompson, drafted by the Cavs fourth overall in 2011 out of Texas, averaged 8.5 points and 8.0 rebounds while coming off the bench last season. His considerable value to the Cavs was seen in the playoffs, in which he started 15 games in place of an injured Love. He averaged 9.6 points and 10.8 rebounds in the postseason, helping the Cavs reach the Finals, where they lost in six games to the Warriors.
Thompson is one of the league's best offensive rebounders and averaged 4.4 per game during the playoffs.
Cavs, Thompson agree to 5-year, $82M deal
ESPN NBA Front Office Insider Amin Elhassan discusses Tristan Thompson's new deal, which makes him the sixth-highest-paid power forward, and how important it is to the Cavs' title chances this season.