On his 250th Premier League appearance, the winger netted in each half to make it another fruitless visit to Tyneside for the Red Devils, whose last success at St. James' came in October 2020 despite Luke Shaw's late consolation setting up a nerve-jangling finale under the lights.
Mauricio Pochettino is still searching for his first Premier League point since replacing Michael Carrick last month but Matthias Jaissle now has back to back wins, with his team climbing to ninth in the table.
Bruno Fernandes dragged a third-minute shot wide for the visitors, then Lukáš Horníček palmed away a dangerous low cross from Amad Diallo.
The visitors shaded the opening exchanges, but Newcastle United soon began to impose themselves on the game.
In the 24th minute, Lewis Hall kept play alive with a flying interception in the right wing position allowing Dan Burn to cross from byline. Malick Thiaw met his high, hanging delivery with a downward header which was blocked by Leny Yoro.
Less than two minutes later Lewis Miley was just off target from 25 yards after a neatly worked move, then Joe Willock saw a strike from a narrow angle deflected into the side-netting.
On the half hour mark, Thiaw stepped out superbly from defence and, with a perfect pass, slid in Barnes, who beat the offside trap, kept his composure and slotted home his seventh goal of the season in what was his 250th Premier League appearance.
Alan Shearer had been presented with a retrospective Premier League milestone award before kick-off for surpassing 250 goals during his illustrious playing career, and the legendary striker would have been proud of the finish.
Bruno Fernandes blazed over from range as half time approached and the Magpies were good value for their lead at the break.
Anthony Elanga - lining up against one of his former clubs - flashed a snapshot wide early in the second period before Senne Lammens made a smart double-save from Willock then Barnes to prevent the hosts from doubling their advantage. From the resulting corner, taken by Elanga, Burn headed over.
Half-time substitute Bryan Mbuemo came close for Manchester United with an improvised effort which dropped inches wide as the half-hour mark came into view.
Horníček then made a vital stop to thwart Mbuemo in the 64th minute after the Cameroon frontman gave Burn the slip to go through on goal. A daisy-cutter from Youri Tielemans soon afterwards presented the Magpies goalkeeper with an altogether more routine save.
Yoane Wissa - on as part of a triple change from Matthias Jaissle - had a shot deflected over then, in the 80th minute, Barnes was presented with a golden opportunity to score his second and make the game safe.
The hosts failed to clear their lines and Barnes had time and space, but lofted his strike over the bar at the Gallowgate End.
Three minutes later, he came even closer, hooking towards the net but just failing to guide the ball on target.
But he was back to his brilliant best in front of goal when he raced through five minutes from time to seal the three points and make it seven from the last nine available for Newcastle United ahead of Sunday's Tyne-Wear derby clash with Sunderland.
Shaw pulled one back in the 88th minute, heading beyond Horníček from close range, but it wasn't enough for the Red Devils to end their losing streak in NE1.
Newcastle United: Lukáš Horníček, Lewis Hall (Tino Livramento 90+2), William Osula (Yoane Wissa 66), Harvey Barnes, Malick Thiaw, Anthony Elanga (Aladji Bamba 90+4), Joe Willock (Jacob Murphy 66), Dan Burn (c), Amar Dedić, Jacob Ramsey (Nico González 66), Lewis Miley
Subs not used: Nick Pope, Sven Botman, Fabian Schär, Bazoumana Touré



