Carlos Munoz, a 21-year-old rookie making his first IndyCar start, finished second and Hunter-Reay was third.
"He's certainly someone I'd want to see win it if I can't win it myself," Hunter-Reay said. "We were a sitting duck on the last restart, that's all I can say."
The leaders came to the finish line all bunched up around Kanaan, saluting the longtime IndyCar stalwart who had longed to add the one missing piece to his resume. That was about as slow as anyone had driven all day. The average speed was 187.433 mph, another Indy record.
Marco Andretti finished fourth, failing to win for the eighth time, and Justin Wilson was fifth in the highest-finishing Honda on a day that was dominated by Chevrolet. Castroneves was sixth.
For a time, it appeared the win would go to AJ Allmendinger, who led 23 laps in his Indy 500 debut for Roger Penske.
Fired by Penske from his NASCAR ride last year after failing a NASCAR drug test, Penske gave him a second chance with this IndyCar opportunity. Seven years after leaving open-wheel racing, Allmendinger finally ran "The Greatest Spectacle in Racing" and was leading when his seat belt came undone, forcing him to pit.
It put Allmendinger off the pit cycle, and he was forced to stop for gas twice far in advance of the rest of the field. It meant Allmendinger had to drive his way back to the front each time, and he finally sputtered out at seventh.
"Once I figured it out, it was phenomenal. I could drive by guys at will when I wanted to," Allmendinger said. "I felt like we were up front running our own race, and, I don't know, belts come undone. It just popped.
"I'll be honest, pretty special moment to be leading at Indy. My body kind of went numb, my mind was racing and I could feel my heart beating really fast, and that's a special moment I'll never forget."
A year after 34 lead changes and a frantic finish created an Indianapolis 500 many considered to be the best ever, IndyCar had its hands full in trying to top itself.
So this one, with the slicing and dicing at the front, over and over and over again, might have been even better. There were a record 68 lead changes by 14 drivers.
"It was a hell of a race. That's all I can say," Mario Andretti said. "This is riveting competition, that's all I can tell you. It's just amazing. The reliability of the cars is there. The product is there. It's unbelievable racing, the best I've seen in years."