Hillary Clinton has won New Hampshire’s four electoral votes, The Associated Press reported on Monday night, nearly one week after she lost the presidential race to Donald J. Trump, the Republican candidate.

The win still leaves Mrs. Clinton, the Democratic nominee, about 60 Electoral College votes shy of Mr. Trump, who stunned many over the past 18 months with his improbable rise to the nation’s highest office. Mrs. Clinton now has 232 electoral votes; Mr. Trump has 290, 20 more than the 270 needed to win.

Michigan, with 16 electoral votes, is the only state that The Associated Press has not yet called for either candidate; Mr. Trump is ahead by a slim 0.3 percentage points there.

Although Mrs. Clinton soundly lost the Electoral College vote, which elects the president, she remains slightly ahead in the national popular vote.