The San Francisco 49ers agreed to terms with offensive lineman Zane Beadles on a three-year, $11.75 million contract, a source confirmed to ESPN NFL Insider Adam Caplan on Thursday.

The 49ers needed a guard after Alex Boone left in free agency and signed a long-term contract with the Minnesota Vikings last week.

Beadles, 29, had three years remaining on a five-year, $30 million contract when the guard was released by the Jaguars on March 3.

Guard Zane Beadles started all 32 games in his two seasons with the Jaguars. Sam Greenwood/Getty Images

He was due a $500,000 roster bonus March 13 and was going to count $5.5 million against the salary cap in 2016 and $6 million in 2016 and '17. He was scheduled to receive a base salary of $4.975 million in 2016.

A Pro Bowl selection with the Broncos in 2012, Beadles started all 32 games in his two seasons with the Jaguars. Second-year player A.J. Cann, the team's third-round pick in 2015, is expected to take over as the Jaguars' starter at left guard in 2016.

ESPN Jaguars reporter Michael DiRocco contributed to this report.