Ronnie tells his class that his personal hero is his grandfather Parker Wilson, [Richard Gere], and he begins to recount the remarkable story of a loyal dog named Hachi.
Parker Wilson, [Richard Gere], is a professor who commutes to Providence, Rhode Island. One day, he finds a dog wandering lost at Bedridge railway station and brings it home on a temporary basis. The dog remains unclaimed, yet he forms a deep bond with Parker and accompanies him wherever he goes. Parker’s Japanese friend, Ken [Cary-Hiroyuki Tagawa], identifies the dog as an Akita and notes the name on its collar—Hachi—meaning “Eight” in Japanese. Parker names the dog Hachi because it feels like a lucky number. His wife Cate Wilson, [Joan Allen], gradually warms to the dog, though Hachi sleeps outside in an old shed. Parker tries to train Hachi in ordinary dog tricks like fetching, which proves challenging. Ken explains that Akita dogs aren’t easily trained, and if Hachi ever fetches something, it will have a special reason.
Hachi grows attached to Parker and follows him to the station, where Parker often misses the train. He hands the dog over to Cate and catches the next train anyway. One day, at 5:00 pm, Parker returns from the train and finds Hachi waiting for him at the station, having come there on his own. From then on, a daily ritual forms: the two walk to the station, Parker leaves on the train, Hachi goes home, and at 5:00 pm Hachi returns to greet him.
Parker’s daughter Andy marries Michael, and Hachi appears in their wedding photograph. Soon after, Andy announces she is pregnant, and the family seems to be thriving. But one morning, Hachi behaves strangely at home and follows Parker to the railway station with a ball in his mouth. Parker throws the ball and Hachi fetches it for the first time, a small joy that momentarily softens the distance between work and home. Parker puts the ball away, and as he starts to leave, Hachi barks and watches the train depart. Hours later, Parker suffers a fatal stroke in his classroom and collapses; Hachi waits for him at the station. Michael arrives to take Hachi home, and the dog waits in his shed, watching the family mourn Parker.
In the days that follow, Cate sells the house and moves away, while Hachi stays on with Andy, Michael, and their newborn son Ronnie. Still, Hachi cannot forget Parker and continues to follow the tracks back toward Bedridge. Andy and Michael eventually bring him back inside, but they realize he is pining for Parker. Cate opens the gate to let him out; Hachi licks her hand and then runs back toward the Bedridge station. He waits there daily, as passers-by, including hot-dog seller Jasjeet [Erick Avari], feed him, and a reporter covers the touching story of the loyal dog. Ken, who understands the bond between Hachi and his late friend, travels to Bedridge and speaks to Hachi in Japanese, sharing that he too misses his best friend.
On Parker’s tenth death anniversary, Cate visits his grave, where Ken is also present. She is moved to see an elderly Hachi still waiting at the station for Parker. Cate then tells Ronnie the story, and the dog slowly begins to settle into a quiet routine in town. Hachi dies at his station-side place, waiting for Parker, and they finally reunite in the afterlife.
In the present, Ronnie reflects that his grandfather and Hachi taught him the meaning of loyalty—that you should never forget someone you have loved. The class applauds, and as a closing image, Michael arrives to pick up Ronnie from the school bus, bringing along a tiny new puppy named Hachi. The two children travel along the same tracks that Hachi once traveled, carrying forward the memory of a friendship that outlasted a lifetime.