The shortstop, who could have become a free agent, is guaranteed $40 million over three seasons in Thursday's deal: $11.5 million next year, $12.5 million in 2016 and $14 million in 2017.
His agreement includes a $14 million team option for 2018 with a $2 million buyout. The option would become guaranteed if he has 600 plate appearances in 2017 or 1,150 in 2016 and 2017 combined, and if he passes a physical at the end of the 2017 season.
Hardy can earn $700,000 annually in performance bonuses: $350,000 each for 125 and 135 games started. The performance bonuses are payable on the July 1 four years after the season in which they are earned.