The book Project Hail Mary ends with Ryland Grace sacrificing his chance to return to Earth so he can save his alien friend Rocky and Rocky’s species, then building a new life on Rocky’s world, Erid.

Quick Scoop: How Project Hail Mary Ends

  • Grace discovers a way to use the microbe Taumoeba to stop the Astrophage that’s dimming stars, including Earth’s Sun.
  • A catastrophic problem threatens Rocky’s ship and his home system; if Grace goes straight home, Rocky and the Eridians will die.
  • Grace sends all the data and Taumoeba samples back toward Earth in unmanned “beetle” probes so humanity can still be saved.
  • Instead of heading home, he turns the Hail Mary around to rescue Rocky and help him get back to Erid, knowing it likely strands him far from Earth.
  • Years later, the epilogue shows Grace alive on Erid, living in an engineered habitat, teaching young Eridians science and sharing a quiet, content life with Rocky’s people.
  • Rocky tells him the Sun has brightened again, confirming that Earth survived thanks to Grace’s earlier actions, even though no one there knows what he gave up.

Book vs. movie angle (as of recent coverage)

  • Articles about the upcoming/just-released film note it keeps the core twist: Grace lives on Erid with Rocky at the end.
  • Some coverage hints the movie may depict a more elaborate habitat and leave a faint possibility of his ship eventually returning, but the emotional core—Grace choosing connection and responsibility over going home—stays the same.

In fan and forum discussions, people often highlight this ending as “bittersweet but hopeful”: he saves two civilizations, loses his old life, and finds a new purpose as a teacher on an alien world.

TL;DR: How does Project Hail Mary end?
Grace saves Earth indirectly, personally saves Rocky and Erid, and then spends the rest of his life teaching and living among Eridians, quietly content light‑years from home.

Information gathered from public forums or data available on the internet and portrayed here.