Ride applied for a transfer to Stanford University as a junior. The tennis coach was eager to have her on the team, and by coincidence, Fred Hargadon was now the dean of admissions there. He was once again instrumental in approving her admission. She graduated in 1973 with a Bachelor of Science degree in physics and a Bachelor of Arts degree in English literature. She then earned a Master of Science degree in physics in 1975 and a Doctor of Philosophy in 1978. Astrophysics and free-electron lasers were her areas of study. She wrote her doctoral dissertation on "the interaction of X-rays with the interstellar medium ", under the supervision of Arthur B. C. Walker Jr.