Match ends, Barnsley 3, Everton 5.
Everton survived a major League Cup scare at Barnsley with two goals in extra time goal sending them through.
The hosts raced into a 2-0 lead through Sam Winnall and Marley Watkins but Everton responded with an acrobatic Kevin Mirallas strike and a Steven Naismith header.
Daniel Crowley drove the Tykes back in front but Romelu Lukaku swept home to send the match to extra time.
Marc Roberts put through his net before Lukaku ended the thrilling cup tie.
Conor Hourihane had rattled the bar with a curling shot in the second period of extra time, but the League One side's fatigue told as Everton wrapped up the victory.
But they were pushed all the way by an adventurous Barnsley side who forced the Premier League side into errors and posed a constant threat going forward.
The Toffees - for whom Chelsea target John Stones played the full 120 minutes against his former club - will now travel to Reading in the third round.
Everton made a statement by including Stones in their line-up.
The 21-year-old England defender has handed in a transfer request to try and force through a move to Chelsea, who have had a third offer of £30m turned down.
It was a clear signal that, for now, he is part of Everton's plans - but the stresses of his situation appeared to show on the youngster who has been outstanding so far this season.
Stones, back at his first club, was not his usual composed self and made an error of judgement when Winnall gave the home side the lead, inexplicably stepping over his goalbound shot.
The defender received a mixed reception from Everton's fans but he, and Roberto Martinez's side, came through unscathed - and now he must wait to see what the next move on his future will be before Tuesday's transfer deadline.
Martinez makes changes
Everton manager Roberto Martinez has made the Capital One Cup a priority this season as this is the competition that has got away from the club over the years.
And he played a relatively strong side, with Lukaku up front and Stones and Phil Jagielka forming an established central defensive partnership.
There were still risks with some changes and it was reflected in the fact he needed to bring on Gerard Deulofeu and Ross Barkley to rescue a 2-0 deficit at half-time.
The inclusion of Aiden McGeady was mystifying, as proved by the young Spaniard's sensational game-changing display.
- 32WabaraSubstituted forRothwellat 90+4'minutes
- 4RobertsBooked at 108mins
- 26MawsonBooked at 67mins
- 15WatkinsSubstituted forSmithat 105'minutes
- 9WinnallBooked at 33minsSubstituted forWilkinsonat 83'minutes
- 38PenningtonSubstituted forBarkleyat 45'minutes
- 7McGeadySubstituted forDeulofeuat 45'minutes
- 11MirallasSubstituted forMcCarthyat 110'minutes
- Simon Hooper
- Shots on Target
Second Half Extra Time ends, Barnsley 3, Everton 5.
Steven Naismith (Everton) wins a free kick in the defensive half.
Foul by Ben Pearson (Barnsley).
Ross Barkley (Everton) wins a free kick on the right wing.
Foul by Alfie Mawson (Barnsley).
Corner, Barnsley. Conceded by Bryan Oviedo.
Attempt missed. Conor Wilkinson (Barnsley) header from very close range misses to the left. Assisted by George Smith with a cross.
Goal! Barnsley 3, Everton 5. Romelu Lukaku (Everton) right footed shot from the centre of the box to the bottom right corner. Assisted by Ross Barkley following a fast break.
Attempt saved. Ross Barkley (Everton) right footed shot from outside the box is saved in the top centre of the goal. Assisted by Bryan Oviedo.
Attempt saved. Romelu Lukaku (Everton) left footed shot from outside the box is saved in the centre of the goal. Assisted by Gerard Deulofeu.
Attempt blocked. Joe Rothwell (Barnsley) right footed shot from the centre of the box is blocked.
Attempt missed. Joe Rothwell (Barnsley) left footed shot from the centre of the box is close, but misses to the right.
Corner, Barnsley. Conceded by Joel Robles.
Attempt saved. Conor Hourihane (Barnsley) left footed shot from the left side of the box is saved in the top left corner. Assisted by Daniel Crowley.
Attempt blocked. Conor Hourihane (Barnsley) left footed shot from outside the box is blocked. Assisted by Conor Wilkinson.
Substitution, Everton. James McCarthy replaces Kevin Mirallas.
Offside, Everton. Steven Naismith tries a through ball, but Bryan Oviedo is caught offside.
Marc Roberts (Barnsley) is shown the yellow card for a bad foul.
Steven Naismith (Everton) wins a free kick in the attacking half.