Fresh from making budget cuts and offering buyouts, Gov. Charlie Baker is giving lawmakers their first raise in eight years in the form of a 4.2-percent bump — but he said he’ll forgo his own pay hike.

Baker, who is constitutionally required to adjust lawmakers’ pay every two years based on household median income, announced the pay raises yesterday, which will nudge their salaries up roughly $2,500 to $62,500.

It comes after their pay was cut in 2011 and 2013, and then-Gov. Deval Patrick chose not to change it two years ago.

Baker had to make the adjustment by next Wednesday.

But under the law, Baker and other constitutional officers’ pay are also tied to the adjustment, which would have meant a roughly $6,300 bump to the Republican’s $151,000-a-year salary. His office, however, said he won’t take one himself weeks after making $98 million in cuts and overseeing the voluntary buyouts of 900 state workers.

“The governor and the lieutenant governor (Karyn Polito) will not be accepting a pay increase,” spokeswoman Lizzy Guyton said.

It’s unclear if other constitutional officers will do the same. Aides to Attorney General Maura Healey, state Auditor Suzanne Bump, Secretary of State William Galvin and state Treasurer Deb Goldberg either said their bosses weren’t available or did not immediately respond to questions last night.

Senate President Stanley C. Rosenberg and Speaker of the House Robert A. DeLeo, who also make $35,000 stipends on top of their base salaries, said they will take the pay raise. DeLeo spokesman Seth Gitell said: “The speaker will accept the pay increase just as he participated in the pay cut in 2011.”