Fred Warner was a first-team All-Pro last season and has been an extremely reliable asset for Kyle Shanahan’s defense, playing 95 percent of the snaps the past three years. Mark J. Rebilas-USA TODAY Sports

Fred Warner agreed to a record-breaking extension with the 49ers on Wednesday. We heard at the time it was for five years and a whopping $95 million, and now we have the full details.

For starters, the contract comes with $40.5 million guaranteed, Ian Rapoport of NFL.com reports. But beyond that, Rapoport writes that the pact has a “unique structure that essentially makes it two deals in one.” Warner’s contract is for five years, but voids after the first three. He’ll get $54.9 million in new money over those three years, an average of $18.3 million per year.

That’s slightly less than the $19 million per year implied by the 5/95, but it still beats Bobby Wagner‘s 2019 extension ($18 million average annual value) to make him the highest-paid inside linebacker in NFL history. Where it gets a bit complicated is that the 49ers can then “buy back” the final two years of the deal after they’ve voided if they choose to, by paying Warner $21.85 million in 2025.

That would mean Warner would get $76.75 million over the first four years, an average of around $19.2 million annually. The way Rapsheet describes it, it’s a “record-breaking short-term extension that’s nearly 70 percent guaranteed” for Warner, that “also gives the 49ers a choice to make a few years down the road.”

Warner was a first-team All-Pro last season and has been an extremely reliable asset for Kyle Shanahan’s defense, playing 95 percent of the snaps the past three years.

More must-reads:

TODAY'S BEST
Russell Westbrook reacts to reports of him leaving Clippers
Ant-Man leads Timberwolves to Game 1 upset of Nuggets
Luis Arraez makes history in Padres debut
Corey Heim dominates Truck Series race at Kansas Speedway while tempers flare on pit road
Lionel Messi sets MLS record with monster game
Watch: Anthony Edwards does it all for Minnesota
Watch: 150th Kentucky Derby ends in three-horse photo finish
Clippers could see nine-time All-Star jump ship this summer
Phillies get rough injury news on Trea Turner
Watch: Yankees star Aaron Judge receives first career ejection after arguing called third strike
Mavericks lose key player for 'significant period of time'
Blue Jays manager John Schneider blasts team after latest loss
Lakers make another big change after firing Darvin Ham
Draymond Green doubles down on Knicks' inability to win a championship
Phillies lose two-time All-Star to injured list
NBA announces punishment for Lakers star over actions in elimination game
Heat may be cooling on Jimmy Butler's long-term future
NFL insider defends former Steelers QB Kenny Pickett from 'bust' label
Nuggets may miss this player as postseason run continues
Report: Russell Westbrook situation 'far more challenging' than previously thought

Want more 49ers news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.