Papiss Cisse scored a stoppage-time winner as Newcastle came from behind for the third straight home Premier League game to deservedly beat Stoke.
After a lacklustre first half and against the run of play, Chieck Tiote clattered Jonathan Walters in the box and he converted the spot kick.
But some poor Stoke defending allowed Newcastle to hit straight back through Yohan Cabaye's well-placed free-kick.
Cisse then secured the points with a close-range finish at the death.
The Senegal striker, unmarked and played onside by Marc Wilson, controlled Sylvain Marveaux's cross before drilling past Asmir Begovic.
His last-gasp strike made it four wins in six league games for the resurgent Magpies and moved them up to 13th in the table.
They can now focus on Thursday's Europa League last-16 second leg against Anzhi Makhachkala and Sunday's trip to Wigan with fresh optimism.
Stoke, by contrast, own the top-flight's worst record in 2013 - they have lost seven of their last nine games and have only one victory in 10.
This was a golden chance for the Potters to secure a second away win of the season, but they were undermined by uncharacteristic defensive lapses.
For so long their game plan of keeping tight at the back before launching counter-attacks when possible was working well.
- Newcastle have kept only one clean sheet in their last 11 Premier League games
- Stoke have lost seven of their last nine Premier League games
A Newcastle side featuring seven changes from that which started at Anzhi in midweek dominated possession and territory, but rarely carried the cutting edge required to open the scoring.
Cabaye and Jonas Gutierrez fired wide, while at the other end Stoke were furious that referee Andre Marriner opted against penalising Davide Santon when he appeared to trip Ryan Shotton on the edge of the area.
Yoan Gouffran had the best chance to break the deadlock, only to loop his finish over the bar after being picked out by Cabaye.
A similar pattern emerged in the second half - the hosts passed and probed, the visitors defended stoutly and launched the occasional foray forward.
Tiote brilliantly released Sissoko, the midfielder taking a heavy touch under pressure from Begovic, but his afternoon then took a turn for the worse.
The Ivory Coast international raced back to help contain a Stoke break, only to completely mistime his challenge on Walters inside the box.
Walters, who scored two own-goals and missed a penalty against Chelsea in January, stepped up to wrong-foot Rob Elliot and find the bottom corner.
However, any hope they had of an away win were quickly distinguished when Glenn Whelan almost played in Gouffran and the ball fell to Sissoko, who was fouled on the edge of the box.
From the resulting set-piece, Cabaye left a diving Begovic with little chance as his curling effort cannoned off the bar and over the line.
A draw seemed inevitable, but Cisse intervened.
Newcastle manager Alan Pardew:
"It's difficult to quantify [how important it is]. It was a tight game. Stoke were excellent. Every question we asked they had an answer for. We were a bit tired in our minds in the first half, not sharp in our thinking.
"They got a goal you sensed may have come, they had a couple of penalty shouts before that. But our quick response was key to victory - it was a fantastic goal by Yohan.
"We changed from the bench. Marveaux pops up with an eye-of-the-needle pass for Papiss to win it for us. It's a massive win. We go home in a much different situation than we would have been if it hadn't gone in.
"It sets us up lovely for Thursday in the Europa League. We've got a great European night at St James' Park to look forward to. It definitely gives us a chance to look at the top 10, where we should be."
Stoke manager Tony Pulis:
"It's disappointing after going in front and really restricting Newcastle. I don't think Asmir [Begovic] had a shot to save.
"The first goal is a dreadful mistake from us, the second is onside, but Cisse could easily be off the pitch. He raised his hands twice - he pushed Wilo [Andy Wilkinson] and then he slapped Ryan [Shawcross].
"That's disappointing and the fact the we could have had a penalty in the first half. But that's been our season. Away from home we've played better than at any time in our five years in the Premier League, we've been in more games, we just haven't been able to get over the line.
"The lads will keep going. We're desperately disappointed because it's happened so many times this season, it just seems to be one of those seasons that irrespective of what we do we just can't get over the line."
Sorry, we were unable to load match stats, please try again.
Live Text Commentary
Full Time The referee blows his whistle to end the game.90:00 +4:42
Yohan Cabaye decides to take a short corner.90:00 +1:48
Assist by Sylvain Marveaux.90:00 +1:48 Goal scored
Goal! - Papiss Cisse - Newcastle 2 - 1 Stoke Papiss Cisse grabs a goal from close range to the bottom right corner of the goal. Newcastle 2-1 Stoke.90:00 +1:18
A cross is delivered by Steven Nzonzi, Mathieu Debuchy makes a clearance.88:10
Mapou Yanga-Mbiwa fouled by Steven Nzonzi, the ref awards a free kick. Rob Elliot restarts play with the free kick.86:38
Free kick taken by Geoff Cameron.86:38 Substitution
Substitution Cameron Jerome goes off and Dean Whitehead comes on.86:38
Glenn Whelan fouled by Yohan Cabaye, the ref awards a free kick.85:39
Corner taken by Yohan Cabaye from the left by-line, comfortable save by Asmir Begovic.85:39 Substitution
Substitution Adam Campbell joins the action as a substitute, replacing Yoan Gouffran.84:39
Effort from outside the penalty box by Andy Wilkinson goes wide right of the target.83:24
Geoff Cameron crosses the ball in from the free kick.83:24 Substitution
Substitution Kenwyne Jones replaces Peter Crouch.83:24
Foul by Massadio Haidara on Ryan Shotton, free kick awarded.83:10
Centre by Yohan Cabaye, save by Asmir Begovic.82:28
Corner taken right-footed by Yohan Cabaye, clearance by Ryan Shawcross.82:08
Short corner taken by Yohan Cabaye from the right by-line.79:49
Yohan Cabaye produces a right-footed shot from outside the penalty area and misses left.79:33
Massadio Haidara fouled by Geoff Cameron, the ref awards a free kick. Free kick taken by Jonas Gutierrez.
Centre by Moussa Sissoko, save by Asmir Begovic.78:04
Shot by Peter Crouch from 20 yards. Save made by Rob Elliot.76:58
Inswinging corner taken from the left by-line by Yohan Cabaye, save made by Asmir Begovic.76:30
Inswinging corner taken right-footed by Glenn Whelan played to the near post, save by Rob Elliot.76:15
Jonathan Walters produces a drilled right-footed shot from 12 yards. Blocked by Steven Taylor.72:39 Substitution
Substitution Massadio Haidara joins the action as a substitute, replacing Davide Santon.72:39 Substitution
Substitution Sylvain Marveaux comes on in place of Cheick Tiote.72:00
Assist by Moussa Sissoko.72:00 Goal scored
Goal! - Yohan Cabaye - Newcastle 1 - 1 Stoke Free kick scored by Yohan Cabaye from 18 yards. Newcastle 1-1 Stoke.69:13
Free kick awarded for an unfair challenge on Moussa Sissoko by Glenn Whelan.68:14
Yoan Gouffran takes a shot. Blocked by Jonathan Walters.67:49
Unfair challenge on Cheick Tiote by Cameron Jerome results in a free kick. Steven Taylor takes the free kick.66:57 Goal scored
Goal! - Jonathan Walters - Newcastle 0 - 1 Stoke Power penalty scored by Jonathan Walters. Newcastle 0-1 Stoke.65:41
Foul by Cheick Tiote on Jonathan Walters, Penalty awarded.65:22
The ball is crossed by Mathieu Debuchy.64:25
Free kick awarded for a foul by Mathieu Debuchy on Jonathan Walters. Marc Wilson restarts play with the free kick.63:46 Booking
Booking Booking for Papiss Cisse for unsporting behaviour.63:44 Booking
Booking Caution for Marc Wilson.60:41
The ball is swung over by Davide Santon, Asmir Begovic makes a comfortable save.58:53
Papiss Cisse concedes a free kick for a foul on Geoff Cameron. Ryan Shawcross restarts play with the free kick.56:09
Short corner taken by Yohan Cabaye from the right by-line.55:56
Jonas Gutierrez has a drilled shot. Glenn Whelan gets a block in.55:08
Foul by Cameron Jerome on Mathieu Debuchy, free kick awarded. Yohan Cabaye restarts play with the free kick.54:23
Shot by Davide Santon. Ryan Shawcross gets a block in.53:53
Jonas Gutierrez delivers the ball, clearance by Ryan Shawcross.52:53
Yohan Cabaye takes a short corner.51:05
Marc Wilson challenges Yoan Gouffran unfairly and gives away a free kick. Yohan Cabaye restarts play with the free kick.50:14
Moussa Sissoko produces a right-footed shot from the edge of the box and misses to the right of the target.48:57
Corner taken right-footed by Glenn Whelan from the right by-line to the near post, clearance made by Yoan Gouffran.48:40
A cross is delivered by Ryan Shotton, clearance by Mathieu Debuchy.46:45
Yohan Cabaye produces a right-footed shot from long distance which goes wide right of the goal.46:11
Davide Santon produces a cross, clearance made by Andy Wilkinson.45:01
The referee gets the second half started.45:00 +1:06 Half time
Half Time The ref blows to signal half-time.44:14
The assistant referee signals for offside against Cameron Jerome. Cheick Tiote restarts play with the free kick.43:52
Davide Santon sends in a cross, Asmir Begovic makes a comfortable save.43:18
Cameron Jerome gives away a free kick for an unfair challenge on Mapou Yanga-Mbiwa. Rob Elliot restarts play with the free kick.42:55
Glenn Whelan takes a shot. Blocked by Mathieu Debuchy.41:38
Corner from the left by-line taken by Yohan Cabaye, Papiss Cisse concedes a free kick for a foul on Ryan Shawcross. Asmir Begovic takes the free kick.41:13
Yohan Cabaye takes a shot from 25 yards. Blocked by Ryan Shotton.38:54
Geoff Cameron concedes a free kick for a foul on Jonas Gutierrez. Yohan Cabaye crosses the ball from the free kick right-footed from left wing, comfortable save by Asmir Begovic.36:02
Yoan Gouffran conjures a right-footed shot from inside the six-yard box that clears the bar.35:15
Mathieu Debuchy delivers the ball, clearance by Marc Wilson.34:26
Jonathan Walters has an effort at goal.32:25
Effort on goal by Davide Santon from 25 yards. Asmir Begovic makes a comfortable save.30:33
Papiss Cisse is caught offside. Asmir Begovic takes the indirect free kick.26:24
Foul by Steven Nzonzi on Moussa Sissoko, free kick awarded. Cheick Tiote restarts play with the free kick.25:15
Peter Crouch is penalised for a handball. Rob Elliot restarts play with the free kick.24:12
The ball is delivered by Cameron Jerome, clearance by Steven Taylor.23:32
Foul by Cheick Tiote on Peter Crouch, free kick awarded. Ryan Shawcross takes the free kick.22:42
Yohan Cabaye takes a inswinging corner to the near post, clearance made by Glenn Whelan.21:09
Corner taken by Yohan Cabaye played to the near post.20:39
Jonathan Walters is caught offside. Free kick taken by Rob Elliot.20:05
Shot from just outside the area by Jonas Gutierrez misses to the right of the target.19:55
Centre by Yohan Cabaye, clearance by Andy Wilkinson.19:28
Yohan Cabaye takes a short corner.17:41
Corner from the right by-line taken by Glenn Whelan, Moussa Sissoko manages to make a clearance.17:32
Geoff Cameron delivers the ball, Cheick Tiote manages to make a clearance.16:44
Mathieu Debuchy delivers the ball, clearance by Marc Wilson.16:20
Peter Crouch gives away a free kick for an unfair challenge on Cheick Tiote. Direct free kick taken by Cheick Tiote.15:46
Effort from outside the penalty area by Yohan Cabaye goes wide left of the target.15:03
The ball is delivered by Yoan Gouffran, save by Asmir Begovic.13:30
Moussa Sissoko produces a right-footed shot from outside the penalty box and misses right.13:08
Peter Crouch gives away a free kick for an unfair challenge on Steven Taylor. Free kick taken by Rob Elliot.11:58
Peter Crouch fouled by Mapou Yanga-Mbiwa, the ref awards a free kick. Marc Wilson takes the direct free kick.11:18
Ryan Shotton produces a volleyed right-footed shot from 20 yards. Save by Rob Elliot.10:29
Glenn Whelan takes the outswinging corner, save by Rob Elliot.9:11
Inswinging corner taken by Yohan Cabaye from the left by-line, save by Asmir Begovic.7:38
Free kick awarded for an unfair challenge on Peter Crouch by Cheick Tiote. Glenn Whelan crosses the ball in from the free kick, Rob Elliot makes a comfortable save.6:43
Cameron Jerome is penalised for a handball. Yohan Cabaye crosses the ball from the free kick right-footed from right wing, save by Asmir Begovic.5:33
Outswinging corner taken by Yohan Cabaye from the right by-line, clearance made by Ryan Shawcross.5:13
Yohan Cabaye takes a outswinging corner to the near post, clearance by Peter Crouch.5:02
Mathieu Debuchy delivers the ball, clearance made by Ryan Shawcross.3:47
Jonathan Walters challenges Davide Santon unfairly and gives away a free kick. Direct free kick taken by Rob Elliot.2:11
Peter Crouch produces a volleyed right-footed shot from 25 yards. Rob Elliot makes a save.1:59
The ball is delivered by Ryan Shotton, Mathieu Debuchy makes a clearance.0:32
Yoan Gouffran challenges Cameron Jerome unfairly and gives away a free kick. Free kick crossed left-footed by Marc Wilson from left channel, clearance made by Steven Taylor.0:00
The referee starts the match.
Live data and text provided by our data suppliers