Gilmore won when world number one Lakey Peterson was upset in the second round by fellow American Alana Blanchard, eliminating the only competitor who could have stopped her from taking the title.
"I was not expecting this right now," she said.
"I just went home to chill out and get ready for a battle and Alana just freaked out there. Oh my gosh, I can't believe it."
'Fear, anxiety…' – Tackling the world’s most terrifying waves in Nazare
Gilmore defeated Sage Erickson and Blanchard en route to her first title since 2014.
The 30-year-old from Queensland state is now four world titles shy of Kelly Slater's all-time record of 11 on the men's tour.
Surfing-Englishman Cotton always chasing the next big wave
Surfing and Games still in love but wedding on hold