The Buffalo Bills have agreed to terms on a five-year contract extension with left tackle Cordy Glenn, the team announced Tuesday.

The deal is worth $65 million, with $36 million guaranteed, a source told ESPN NFL Insider Adam Schefter. Glenn stands to make $19 million in 2016 and $30 million in the first two seasons.

The Bills had assigned the franchise to Glenn, 26, on March 1. He signed the tender, worth $13.7 million, on March 4. The team had until July 15 to reach a long-term deal with Glenn under the rules of the franchise tag.

Pro Football Focus graded Cordy Glenn as the NFL's 10th-ranked offensive tackle during the 2015 season and the fifth-best in pass blocking. Timothy T. Ludwig-USA TODAY Sports

Pro Football Focus graded Glenn as the NFL's 10th-ranked offensive tackle during the 2015 season and the fifth-best in pass blocking.

A second-round pick in the 2012 draft, Glenn has started all 61 games in which he has appeared. He missed three games as a rookie because of an ankle injury.

Glenn was the Bills' recipient of the Ed Block Courage Award for the 2015 season, which is voted on by teammates. He later revealed that he underwent a procedure to remove one of his kidneys before the 2014 season.

Center Eric Wood and left guard Richie Incognito were among several Bills players to congratulate Glenn in messages on their Twitter accounts.