CINCINNATI - All-Star third baseman Josh Harrison and the Pittsburgh Pirates have agreed to a $27.3 million, four-year contract, a deal that would be $48.3 million over six seasons if a pair of team options are exercised.

The 27-year-old Harrison finished second in the NL .315 batting average last year while finishing ninth in the MVP race.

advertisement | advertise on newsday

The deal was announced in his hometown on Wednesday in front of many of his family members.

Harrison gets a $1 million signing bonus and salaries of $2.8 million this year, $5 million in 2016, $7.5 million in 2017 and $10 million in 2018. Pittsburgh has a $10.5 million option for 2019 with a $1 million buyout and, if that is exercised, an $11.5 million option for 2020 with a $500,000 buyout.

The option prices could escalate by up to $1 million each based on his finish in MVP voting.

Harrison had agreed to a $2.8 million, one-year deal in January. He would have been eligible for free agency after the 2018 season.