It was the first pole for Earnhardt since the 2011 Daytona 500. He earned the top qualifying spot Friday by running a lap of 127.023 miles per hour.
Earnhardt is second in the season-long points standings and is guaranteed a spot in the Chase for the Sprint Cup Championship, the 10-race playoff series that will begin next week in Chicago. He ended a 143-race winless streak in June at Michigan.
"I've not really been the best of qualifiers the last couple of years," Earnhardt said. "We have a lot of improvements we've made this year. It feels good to get a pole."
Gordon, one of eight drivers battling for the two remaining positions in the Chase, produced a lap of 126.981 mph. Regan Smith qualified third, followed by Clint Bowyer, Jimmie Johnson and Mark Martin.
Denny Hamlin, who has won the last two stops on the Sprint Cup circuit in Bristol, Tenn., and Atlanta, qualified seventh.
In addition to Earnhardt, the drivers who have qualified for the Chase include points leader Greg Biffle, Matt Kenseth, Johnson, Martin Truex Jr., Brad Kaselowski, Hamlin, Bowyer, Kevin Harvick and Tony Stewart.
Exploding whale video goes viral on Internet
Video of Victoria’s Secret models trying to 'twerk' hits Instagram