AJ Allmendinger sits atop the NASCAR qualifying results for the Sprint Cup Series STP 400 at Kansas Speedway that will take place on Sunday, his pole position only the second of his career and his first this season.

Allmendinger, who finished qualifying with an average speed of 175.993, had won the pole just one other time in the previous 159 races of his career, back in April 2010 at Phoenix International Raceway. He will look to utilize the Kansas Speedway pole to his advantage and become only the second winner of the STP 400, which was instituted in 2011.

I didn't think the lap was amazing, said Allmendinger. I thought it was OK. I was kind of shocked by it. Everybody has been working hard. We're getting closer -- we're not where we want to be at.

Kevin Harvick missed out on his first pole since 2006 by qualifying second (175.747 mph).

Joey Logano had the first qualifying spot, but qualified third (175.724 mph). Nevertheless, after an engine change, he will start from the back of the field.

Denny Hamlin and Mark Martin qualified fourth and fifth, respectively.

Tim Andrews, Jeff Green, Tony Raines did not qualify.

Here's the starting lineup for Sunday's race at Kansas Speedway:

1 AJ Allmendinger 175.993 mph

2 Kevin Harvick 175.747 mph

3 Joey Logano 175.724 mph

4 Denny Hamlin 175.667 mph

5 Mark Martin 175.484 mph

6 Martin Truex Jr. 175.444 mph

7 Dale Earnhardt Jr. 175.313 mph

8 Clint Bowyer 175.302 mph

9 Kasey Kahne 175.092 mph

10 Sam Hornish Jr. 175.086 mph

11 Brad Keselowski 175.063 mph

12 Jeff Burton 174.927 mph

13 Ryan Newman 174.887 mph

14 Kurt Busch 174.876 mph

15 Jimmie Johnson 174.803 mph

16 David Reutimann 174.803 mph

17 Greg Biffle 174.706 mph

18 Matt Kenseth 174.486 mph

19 Paul Menard 174.323 mph

20 Jeff Gordon 174.261 mph

21 Carl Edwards 174.244 mph

22 David Gilliland 174.171 mph

23 Tony Stewart 174.143 mph

24 David Stremme 174.031 mph

25 Kyle Busch 174.020 mph

26 Aric Almirola 174.003 mph

27 David Ragan 173.947 mph

28 Marcos Ambrose 173.863 mph

29 Regan Smith 173.756 mph

30 Bobby Labonte 173.745 mph

31 J.J. Yeley 173.516 mph

32 Landon Cassill 173.388 mph

33 Dave Blaney 173.383 mph

34 Scott Riggs 173.249 mph

35 Travis Kvapil 173.221 mph

36 Jamie McMurray 173.182 mph

37 Michael McDowell 173.155 mph

38 Josh Wise 172.756 mph

39 Juan Pablo Montoya 172.507 mph

40 Casey Mears 171.985 mph

41 Joe Nemechek 171.625 mph

42 Reed Sorenson 170.057 mph

43 Mike Bliss 171.396 mph