Curious about what happens to Ryland Grace and Rocky at the end of Project Hail Mary?

The final act reveals a critical choice between returning to Earth or saving an alien ally, alongside a discovery that threatens both missions. With the Taumoeba breakthrough, a damaged ship, and a last-minute rescue, the ending shifts the outcome for both worlds.
Here is the Project Hail Mary ending explained, covering Grace’s decision and Rocky’s fate. It also outlines the mission losses and confirms which characters survive.
What happens to Grace and Rocky at Project Hail Mary ending and who dies?
At the end of Project Hail Mary, Ryland Grace survives and chooses to save Rocky instead of returning to Earth. He sends Taumoeba samples back to Earth in probes, ensuring humanity can stop the Astrophage, then uses his remaining fuel to rescue Rocky and travels to the alien’s home planet, Erid, where he continues living.
Rocky also survives despite earlier risking death by leaving his safe environment to save Grace, later recovering after hibernation. On Erid, Rocky’s species builds a controlled habitat for Grace, allowing him to live safely, and Grace resumes teaching by educating young Eridians.
No major character dies in the ending itself, but the mission has already claimed lives, as Ryland Grace finds both crew members, Yáo Li-Jie and Olesya Ilyukhina, dead aboard the Hail Mary. Earlier, an explosion on Earth killed the original scientist and several others, forcing authorities to place Grace on the mission.
Grace ultimately ensures Earth’s survival by sending instructions and Taumoeba samples, which Eva Stratt and her team receive and use to counter the Astrophage. The film shows Eva later collecting the samples and beginning efforts to save the sun, confirming the mission’s success.
After realizing the Taumoeba can escape xenonite containers and consume Astrophage fuel, Grace faces a choice between returning home and saving Rocky. He chooses to “save Rocky,” redirecting his mission and sacrificing his own return to Earth.
Sixteen years later, Grace lives on Erid in an engineered habitat and teaches science to young Eridians. Rocky tells him a ship is ready for his return to Earth, but Grace says he will think about it, leaving his decision unresolved.
The ending confirms that Grace and Rocky survive, Earth is saved, and no central character dies in the final act, focusing on their survival and Grace’s continued life on Erid.