Hillary Clinton leads Donald Trump within the margin of error in a new poll out of New Hampshire. | AP Photo Poll: Presidential race tight in New Hampshire

Hillary Clinton and Donald Trump are running close in New Hampshire, according to a new Boston Globe/Suffolk University poll released Thursday that also shows incumbent GOP Sen. Kelly Ayotte leading her Democratic challenger.

Clinton leads Trump by just 2 percentage points in the poll, 44 percent to 42 percent — within the poll’s margin of error of plus or minus 4.4 points. Libertarian Gary Johnson is at 5 percent, Green Party nominee Jill Stein is at 1 percent — and 8 percent say they prefer another candidate, are undecided or refused to answer.

That’s closer than other public polls in the state. Clinton had a 7-point lead over Trump in a MassINC/WBUR-FM poll conducted last week in the wake of the first presidential debate.

The gender gap tilts slightly toward Clinton: She leads by 16 points among female voters, while Trump has a 13-point lead among men.

Clinton is also winning 78 percent of registered Democrats, compared with Trump, who captures 75 percent of registered Republicans. Registered independents, who make up a plurality of the New Hampshire electorate, go narrowly for Clinton, 43 percent to 36 percent.

In the Senate race, Ayotte has a 6-point lead over Democratic Gov. Maggie Hassan, 47 percent to 41 percent. Third-party candidates garner 4 percent of the vote, and an additional 8 percent are undecided or refused to answer.

Other polls have showed a toss-up race. The MassINC/WBUR poll last week gave Hassan a 2-point edge over Ayotte, 48 percent to 46 percent.

Hassan is winning fewer Clinton voters (74 percent) than Ayotte is winning Trump voters (83 percent). And voters choosing third-party candidates or who are undecided in the presidential race also go for Ayotte, 48 percent to 34 percent.

There’s more volatility in the state’s nascent gubernatorial race. Republican Chris Sununu has a 4-point lead over Democrat Colin Van Ostern, 40 percent to 36 percent. Twenty-four percent of likely voters are supporting the Libertarian candidate or are undecided. Sununu and Van Ostern both won their respective party primaries last month.

The poll, which was conducted October 3-5, included 500 likely voters.