Swift's parents said they named her after Taylor. The two sang his hit, "Fire and Rain."
Gomez joined Swift earlier in the night with a duet of Gomez's song, "Who says."
The country star's tour has featured celebrity guests, such as Usher, Nicki Minaj and Jason Mraz.
The Associated Press contributed to this report.