Rob Edwards's own goal and strikes from Keith Fahey and Nathan Redmond steered Chris Hughton's Birmingham to third as they overcame a battling Barnsley.
Edwards turned Chris Burke's strike into his own goal to put the visitors ahead early on.
Barnsley drew level when Craig Davies drilled in, but Fahey put Birmingham back in front when he turned his man before scoring from 20 yards.
Redmond then sealed the win for the visitors with a second-half strike.
After Europa League duties earlier in the season, this was the Blues' 44th game of the campaign, but they showed no signs of fatigue as Marlon King was alert early on to pick up on an error by Jim McNulty and set up Burke, whose strike flew in off the head of the unfortunate Edwards.
Did you know?
Birmingham are now unbeaten in 15 games in all competitions with their last defeat coming against Crystal Palace on 19 December
But the Tykes responded well with debutant David Cotterill picking himself up from a challenge in the area to cut back for Davies to fire home his 10th of the season.
Blues midfielder Burke was causing a host of problems for the home defence, but it was the impressive Fahey who put Hughton's side back in front with a powerful left-foot strike just before the half-hour to grab his first goal since August.
Barnsley pushed for a second equaliser with Davies coming closest when he rattled the bar.
However, Fahey and Burke combined with 12 minutes to go when they set up Redmond, who finished emphatically with his left foot to give Birmingham breathing space.
It was all the margin they needed, as they followed their impressive draw at Chelsea in the FA Cup at the weekend with a win that ensures West Ham and Southampton can take nothing for granted in the Championship's automatic promotion spots.
Barnsley manager Keith Hill:
"I am disappointed with the first goal, it was avoidable again and an individual error. The second goal was a very good goal; you cannot complain about that.
"They [Birmingham] have got a great chance [of promotion]. It is getting down to the nitty-gritty now with respect to the top three or four.
"They have got that know-how when it comes to the last five or six games of the season. They have all been there before so you can't argue that they are in there with a real good chance."
Birmingham City manager Chris Hughton:
"I think we always have to kick ourselves and remind ourselves there is still a third of the season to go. I am quite sure in that 15 games there are going to be lots of twists and turns.
"We [have] good momentum but it's not only us. Blackpool lost tonight but there is a good group of teams who are all showing good momentum. The important thing for us is that we can't take our foot off the pedal.
"We have also got two teams above us who at this moment don't look like losing a game. I certainly think that any team that finishes above West Ham and Southampton will go up automatically."
- 01 Steele
- 03 McEveley (Golbourne - 73' )
- 04 Edwards
- 14 Wiseman
- 15 McNulty Booked
- 10 Done
- 16 Smith (Tonge - 73' )
- 17 Cotterill Booked (O'Brien - 61' )
- 33 Digby
- 09 Davies
- 13 Dagnall
- 12 Preece
- 20 Golbourne
- 08 O'Brien
- 28 Tonge
- 27 Gray
- 01 Myhill
- 03 Murphy
- 04 Caldwell
- 23 Spector Booked (Pablo - 90' )
- 24 Davies
- 07 Burke
- 12 Mutch Booked
- 14 Gomis (Redmond - 73' )
- 15 Elliott
- 18 Fahey
- 09 King (Rooney - 73' )
- 13 Doyle
- 05 Pablo
- 22 Redmond
- 17 Rooney
- 36 Jervis
Live Text Commentary
Full Time The referee blows his whistle to end the game.90:00 +2:10
Free kick awarded for a foul by Nathan Redmond on Scott Wiseman. Free kick taken by Luke Steele.89:43
Nathan Redmond takes the direct free kick.89:43 Substitution
Substitution (Birmingham) makes a substitution, with Pablo Ibanez coming on for Jonathan Spector.89:43
Jim O'Brien challenges David Murphy unfairly and gives away a free kick.88:01
Corner taken right-footed by Jim O'Brien from the left by-line to the near post, Jordon Mutch makes a clearance.86:36
Wade Elliott gives away a free kick for an unfair challenge on Michael Tonge. Scott Wiseman crosses the ball from the free kick right-footed from right channel, Curtis Davies manages to make a clearance.84:43
Shot by Jim O'Brien from outside the area goes high over the crossbar.83:05
David Murphy crosses the ball from the free kick left-footed from right channel, comfortable save by Luke Steele.83:05 Booking
Booking Booking for Jimmy McNulty for unsporting behaviour.82:56
Unfair challenge on Adam Rooney by Jimmy McNulty results in a free kick.80:16
Effort on goal by Nathan Redmond from just inside the penalty box goes harmlessly over the target.77:37
The assist for the goal came from Chris Burke.77:37 Goal scored
Goal! - Nathan Redmond - Barnsley 1 - 3 Birmingham Nathan Redmond grabs a goal from deep inside the penalty box to the top right corner of the goal. Barnsley 1-3 Birmingham.72:38
Rob Edwards restarts play with the free kick.72:38 Substitution
Substitution Nathan Redmond comes on in place of Morgaro Gomis.72:38 Substitution
Substitution Korey Smith goes off and Michael Tonge comes on.72:38 Substitution
Substitution (Barnsley) makes a substitution, with Scott Golbourne coming on for Jay McEveley.72:38 Substitution
Substitution Adam Rooney comes on in place of Marlon King.72:38 Booking
Booking Jordon Mutch goes into the book for unsporting behaviour.
Free kick awarded for a foul by Jordon Mutch on Paul Digby.69:12
The offside flag is raised against Craig Davies. Indirect free kick taken by Jonathan Spector.68:51 Booking
Booking Booking for Jonathan Spector for time wasting.67:29
Chris Burke takes a shot. Luke Steele makes a save.64:41
Corner taken by Jim O'Brien, Effort on goal by Rob Edwards from inside the area goes harmlessly over the bar.64:26
Jim O'Brien takes a outswinging corner from the right by-line played to the near post, clearance made by Jordon Mutch.64:05
Jim O'Brien takes the outswinging corner, clearance by David Murphy.63:10
Free kick awarded for an unfair challenge on Craig Davies by Jordon Mutch. Shot on goal comes in from Craig Davies from the free kick, Wade Elliott gets a block in.61:22
Free kick awarded for an unfair challenge on Paul Digby by Jordon Mutch. Direct free kick taken by Korey Smith.60:51 Substitution
Substitution David Cotterill leaves the field to be replaced by Jim O'Brien.59:58
Free kick awarded for an unfair challenge on Marlon King by Jimmy McNulty. David Murphy crosses the ball in from the free kick.58:18
Jimmy McNulty has an effort at goal from outside the box which goes wide left of the target.57:44
The offside flag is raised against Marlon King. Free kick taken by Rob Edwards.56:39
Chris Burke is caught offside. Luke Steele takes the free kick.52:37
Shot by Korey Smith from a long way out goes over the crossbar.52:15
Wade Elliott is adjudged to have handled the ball. Free kick taken by Paul Digby.47:44
Free kick awarded for an unfair challenge on Jonathan Spector by Craig Davies. Boaz Myhill restarts play with the free kick.45:01
The game restarts for the second half.45:00 +1:30 Half time
Half Time The match has reached half-time.45:00 +0:57
Paul Digby fouled by Keith Fahey, the ref awards a free kick. Jay McEveley takes the free kick.42:05
Free kick awarded for an unfair challenge on Paul Digby by Jordon Mutch. Korey Smith takes the direct free kick.41:03
Unfair challenge on Morgaro Gomis by Paul Digby results in a free kick. David Murphy takes the free kick.38:06
Jonathan Spector is caught offside. Free kick taken by Luke Steele.37:48
Unfair challenge on Jonathan Spector by Paul Digby results in a free kick. Jordon Mutch restarts play with the free kick.35:49
David Cotterill is flagged offside by the assistant referee. Boaz Myhill restarts play with the free kick.35:35
Curled right-footed shot by Craig Davies.34:23
Free kick awarded for an unfair challenge on Chris Dagnall by David Murphy. David Cotterill takes the free kick.33:20
Marlon King is caught offside. Indirect free kick taken by Rob Edwards.31:37
Craig Davies fouled by Curtis Davies, the ref awards a free kick. The free kick is swung in right-footed by David Cotterill, clearance by Jordon Mutch.29:09
Free kick awarded for an unfair challenge on Jordon Mutch by Paul Digby. Free kick crossed right-footed by Jordon Mutch, save by Luke Steele.28:02
Matty Done is flagged offside by the assistant referee. Boaz Myhill takes the indirect free kick.26:24 Goal scored
Goal! - Keith Fahey - Barnsley 1 - 2 Birmingham Keith Fahey grabs a goal from just outside the area to the bottom right corner of the goal. Barnsley 1-2 Birmingham.22:54
The referee blows for offside. Scott Wiseman takes the free kick.21:37
Effort on goal by Chris Burke from just inside the area clears the crossbar.18:20
Assist on the goal came from David Cotterill.18:20 Goal scored
Goal! - Craig Davies - Barnsley 1 - 1 Birmingham Goal scored by Craig Davies from the edge of the penalty box to the bottom left corner of the goal. Barnsley 1-1 Birmingham.17:43
Chris Burke produces a cross, Marlon King takes a shot. Save made by Luke Steele.11:12
The free kick is delivered right-footed by Jordon Mutch from left wing, clearance made by Paul Digby.11:12 Booking
Booking David Cotterill is given a yellow card.11:08
David Cotterill challenges Wade Elliott unfairly and gives away a free kick.9:23
Outswinging corner taken by David Cotterill from the right by-line played to the near post, Jordon Mutch makes a clearance.8:16
Unfair challenge on Chris Burke by Paul Digby results in a free kick. Free kick crossed right-footed by Keith Fahey, save by Luke Steele.7:04 Goal scored
Goal! - Rob Edwards - Barnsley 0 - 1 Birmingham Headed own goal by Rob Edwards. Barnsley 0-1 Birmingham.7:02
Chris Burke takes a shot. Blocked by Rob Edwards.6:42
Chris Burke fouled by Jay McEveley, the ref awards a free kick. Jonathan Spector takes the free kick.6:05
Effort from outside the penalty box by Korey Smith goes wide right of the target.5:06
The official flags Matty Done offside. Boaz Myhill restarts play with the free kick.0:52
Jordon Mutch concedes a free kick for a foul on Paul Digby. Jimmy McNulty takes the direct free kick.0:00
The referee gets the game started.
Live data and text provided by our data suppliers