The San Francisco 49ers and Jimmy Garoppolo have agreed upon a five-year, $137.5 million contract extension.

The deal is the biggest in NFL history on an average per year basis.

The 49ers traded a second round pick to the New England Patriots for Garoppolo at the deadline in October.

Garoppolo went 5-0 as the 49ers' starter with a QBR of 78.2 and 96.2 passer rating. Garoppolo threw seven touchdowns against five interceptions.

Garoppolo, like Tom Brady, is represented by Don Yee.

The 49ers signed Colin Kaepernick to a six-year, $126 million deal in 2014.