Steins;Gate is an adaptation of the video game of the same name. It is set in 2010 in Akihabara, Tokyo, and follows Rintaro Okabe, a self-proclaimed “mad scientist”, who runs the “Future Gadget Laboratory” in an apartment together with his friends Mayuri Shiina and Itaru “Daru” Hashida. While attending a conference about time travel, Okabe finds the dead body of Kurisu Makise, a neuroscience researcher; he sends a text message about it to Daru, and later discovers that Kurisu is alive, and that the message arrived before he sent it. The laboratory members learn that the cell phone-operated microwave oven they are developing can send text messages back in time; they are joined by Kurisu, and investigate it, sending text messages – referred to as “D-mails” – to the past to change the present. Kurisu eventually creates a device that can send memories through the microwave oven, effectively allowing the user to time travel.
SERN, an organization secretly researching time travel, learns of the time machine and sends people to the laboratory to retrieve it, killing Mayuri in the process. Okabe goes back in time multiple times to prevent Mayuri’s death, but fails each time. He learns that he needs to undo all the changes their D-mails have caused, and does so until he realizes that undoing the first D-mail would return him to the timeline where Kurisu was found dead. Okabe and Kurisu tell each other about their romantic feelings for one another, after which Kurisu tells Okabe to save Mayuri. Daru hacks into SERN’s database, and they delete the record of the D-mail, returning them to the original timeline.
Later, Suzuha Amane, Daru’s future daughter, arrives in a time machine to tell Okabe that the only way to prevent a time-travel arms race leading to World War III is to prevent Kurisu’s father Nakabachi from killing her and stealing her time travel theories. Suzuha and Okabe travel back in time, but Okabe accidentally kills Kurisu himself. Returning to the present, Okabe receives a message from his future self telling him that to escape the current timeline, he needs to save Kurisu while recreating the vision of the dead Kurisu that his past self saw. Traveling back in time again, he provokes Nakabachi into stabbing him, knocks Kurisu unconscious, and puts her in his pool of blood for his past self to see, causing the timeline to diverge into one where Kurisu lives and World War III does not occur.