BLACKSBURG, Va. -- Virginia Tech overcame a dreadful start to beat Duke, 41-20, on Saturday at Lane Stadium.
The Hokies came back from a 20-point first-quarter deficit in their biggest comeback in Frank Beamer's 26 years as coach.
Virginia Tech (4-3, 2-1 in the ACC) avoided a three-game losing streak and prevented the Blue Devils (5-2, 2-1) from becoming bowl eligible for the first time since 1994.
The Hokies fell behind, 20-0, in the first quarter, but scored the last 41 points.
Junior quarterback Logan Thomas led the charge with 256 passing yards and two touchdowns. Senior wide receiver Marcus Davis was Thomas' favorite target with five catches for a career-high 144 yards and two touchdowns.
Tailback J.C. Coleman became Virginia Tech's first 100-yard rusher of the season with 183 yards and two touchdowns on 13 carries.
The Hokies allowed 150 yards to Duke in the first quarter, but settled down and yielded only 189 the rest of the game.
Virginia Tech recorded a season-high five sacks, matching its total from the previous four games, and also forced a season-high four turnovers.
The Hokies took their first lead of the game on Coleman's 45-yard touchdown run two minutes into the third quarter.
Virginia Tech added a 47-yard touchdown pass from Thomas to Davis and Cody Journell's 41-yeard field goal in the third quarter to make it 34-20.
Coleman finished off the scoring with an 86-yard touchdown run early in the fourth quarter.
Duke held a 20-10 lead and was driving late in the second quarter when Virginia Tech safety Detrick Bonner intercepted a tipped pass from quarterback Sean Renfree and returned it 39 yards to the Duke 42.
On the next play, Thomas completed a 42-yard touchdown pass to a wide open Davis to cut the deficit to 20-17.
Duke, which had scored 27 points combined in its previous five games in Blacksburg, outscored Tech, 20-0, in the first 12 minutes.
The Blue Devils struck early on a 62-yard touchdown pass from Renfree to wide receiver Jamison Crowder with 12:16 remaining in the first quarter.
The Hokies' offense got off to another slow start, drawing boos from the crowd early, but bounced back to finish with 525 total yards, its highest tally since gaining 605 against Wake Forest in 2010.
Duke went ahead, 13-0, on two field goals by Ross Martin and then opened up its lead on a 20-yard interception return for a touchdown by safety Jordon Byas. Thomas threw a swing pass to tailback Tony Gregory, who tapped the ball into the air while trying to make the catch. Byas snatched the ball out of the air and ran it all the way back.
NOTES: Starting center Andrew Miller of Virginia Tech sustained a broken left ankle in the third quarter. He will be re-evaluated Sunday. ... Quarterback Sean Renfree of Duke returned to the starting lineup after missing last week's game because of an elbow injury. ... Tony Gregory and J.C. Coleman both started for the second time this season in Virginia Tech's two-back set. ... Gregory returned to the field after missing the previous two games because of a knee injury. ... Duke kicker Ross Martin broke the school freshman records for field goals in a season (10) and points in a season (59). ... Hokies tight end Ryan Malleck started in place of Eric Martin (shoulder).