Third baseman Matt Chapman and the San Francisco Giants agreed to a six-year, $151 million contract extension late Wednesday, keeping the veteran from opting out of his current deal to reach free agency.

The deal, which starts in 2025 and replaces the last two years of a three-year, $54 million contract he signed earlier this year, includes no deferred money and a full no-trade clause, sources told ESPN. The deal will expire in 2030, when Chapman will be 37.

Chapman, 31, has been one of the most productive players in baseball this season, combining a powerful bat with the best third-base defense in the major leagues. And less than a year after his market in free agency cratered, Chapman parlayed his strong season into a significant pay day -- and guaranteed himself more than $170 million between this season and the end of the extension.

It's a stunning turnabout from the winter, when Chapman's free agency dragged and landed him in San Francisco. All three years of his contract included opt-outs at the end, and Chapman went into spring training saying he wanted to bet on himself rather than take a lesser long-term deal.

The bet paid off.

Editor's Picks

$151 million for a 31-year-old third baseman? Grading Matt Chapman's extension with Giants
17hDavid Schoenfield

Are MLB's three best teams all in the NL West? What makes the Dodgers, Padres and D-backs so dangerous
2dAlden Gonzalez

MLB Power Rankings: Top 5 changes again as season enters stretch run
14hESPN
"This offseason was a little strange with the free agent market, but I was willing to bet on myself," Chapman said during a news conference Thursday. "I believed in myself. I believed that the Giants would see my value as the season went on and what I bring every single day."

Chapman was scratched from the starting lineup Wednesday, missing just his fourth game this season to work on finalizing the contract.

"Obviously, it was pretty important to get this thing done," Chapman said. "We got it done, and now chances are I'm not going to be watching very much."

Chapman was back in the lineup on Thursday, batting cleanup against Arizona. Giants manager Bob Melvin, who also managed Chapman in Oakland, said that the 31-year-old has become a clubhouse leader.

"We have some younger guys here that are learning their way and developing right now, and they watch the way he plays the game," Melvin said. "There's an expectation of how it needs to be played and he's setting the example of that and guys have to fall in line."

With a .247/.333/.445 line, Chapman has an adjusted OPS 21% better than league average. His 22 home runs and 56 extra-base hits lead the Giants. And his glove, golden four times already, could be platinum-worthy this season.

All of it put him near the top of wins above replacement leaderboards throughout the game. His 6.0 Baseball-Reference WAR are the ninth most in baseball. At FanGraphs, it's 4.5 WAR, 13th among position players. It's reminiscent of the seasons that gave Chapman his first two Gold Gloves and his only All-Star appearance.

When he arrived in Oakland in 2017, Chapman had showcased power in the minor leagues that later would put him among the game's exit-velocity giants. Chapman's ability to hit the ball extremely hard -- he's 98th percentile in bat speed and 96th in average exit velocity -- has persisted, and it gave the Giants the sort of confidence to pay him late into his 30s.

It was also a deal of necessity. At 68-72, the Giants are again one of baseball's most disappointing teams. San Francisco has settled around .500 each of the past three seasons after a 107-win campaign in 2021, and it has left fans disenchanted and loud about potential changes inside the organization.

With president of baseball operations Farhan Zaidi negotiating the contract with Chapman's agent, Scott Boras, he doubled down on one of the successes of his winter. Another, left-hander Blake Snell, is likewise a Boras client expected to opt out of his deal and sign for a significantly larger number than the $60 million San Francisco guaranteed him for two years over the winter.

Julio Rodriguez jersey All-Star

Freddie Freeman Women's Jersey