This is essentially I Want My Beloved to Be Happy but in this case a character wants to erase themselves from existence/kill themselves because they think that it will make the one they love/care about happy.
Heroic Sacrifice is when a character trades their life for something they honestly and reasonably believe is clearly worth more than their life, such as the lives of two people or to spare another a Fate Worse than Death. In other words, the decision is based on valuing the lives of others over their own. This is when a character kills themselves or deliberately does something likely to result in their death because they believe others will be happier with them out of the picture. They're valuing the happiness of others over their own life.
For example, if we put our characters onboard the Nostromo in Alien, and Bob attacks the alien, knowing he'll probably be killed but it will give Alice and Carl a chance to escape, that's Heroic Sacrifice. If he then discovers the alien has been killed by a falling piece of equipment, but decides not to rejoin Alice and Carl because he knows Alice will be happier married to Carl than him, even though he knows the escape pod is his best hope at survival, it's this.
Compare It's a Wonderful Plot, where (as a Shout-Out to It's a Wonderful Life), a character gets to see what would have happened if they had never existed. As such plots usually prove, this sort of thing rarely makes anyone nearly as happy as the person doing it thinks it will.
Failed attempts at this often result in the would-be suicidal person getting a What the Hell, Hero?, both for trying to kill themselves and for believing that the people they love would be happier if they were dead.
Truth in Television unfortunately and let's just leave it at that.
Contains Death Tropes so watch out for spoilers.
For any tropers who feel this way... This is NOT true! Losing someone to suicide has never made anybody happier; on the contrary, it is extremely traumatic and painful to everyone left behind. You matter, and people want to help you. There are numbers you can call. Please, talk to someone.
- In Code Geass, something like this happens when Lelouch plans a Zero-Approval Gambit, all so that the hate of the world will be focused on him and hopefully die with him, leaving his sister Nunnally a better world. As he dies, Nunnally tells him she would rather have remained with him in exile.
- In Pandora Hearts Vincent is so obsessed with his older brother Gilbert that he wants to do this in regards to him.
- Happens in Kannazuki no Miko: Chikane plans to die and be erased from Himeko's memories in order for Himeko to live on and be happy. It doesn't really work out, because even without her memories, Himeko's love for her remains ingrained into her very being, causing her anguish. So Chikane comes back from the dead for her.
- Fairy Tail:
- After realizing the pain she caused Meredy, Ultear tries to kill herself to atone. Despite Meredy's anger, she forgives Ultear and prevents it.
- When Jellal is revived with no memories in the Nirvana arc, and Erza angrily throws all of his past atrocities in his face, he attempts to kill himself with a self-destruction spell because he believes that Erza won't be free while he's around for her to hate. She doesn't actually hate him, and talks him out of it. Post-Time Skip, having remembered his actions and becoming The Atoner, he considers that he would be better off dead before Erza gives him a Get a Hold of Yourself, Man!.
- Future Diary: Yuno eventually goes this direction in regards to her love for Yukiteru.
- In Nabari no Ou Gau is so devoted to Raikou that he is willing to kill himself to make Raikou happier.
- In Bleach Shishigawara is utterly devoted to Tsukishima and is willing to throw away his life for him. The implication being that he would do so if it would help Tsukishima in his plans and make him happier in the long run.
- In Katekyō Hitman Reborn! Gokudera is implied to have a crush on Tsuna and was prepared to sacrifice himself for Tsuna's happiness during the battle with Belphegor but stops when Tsuna tells him he wouldn't be happy if he sacrificed himself.
- In Monster Johan's whole "perfect suicide" plot was an attempt to eradicate his own existence in order to make his sister Anna happy. As Anna puts it, this "suicide" was the "only expression of love" that Johan could convey.
- Serial Experiments Lain: Lain once gives Alice a confession of love. The anime ends with Lain deleting herself from existence for Alice's peace of mind, arranging things so that she can marry her junior high school crush, and spending eternity watching over her from the Wired.
- Koharu No Hibi: Koharu in regards to Akira. She stalks him, obsesses over him, and devotes her whole life to him. In chapter 21 she even told him she would die if he asked her to if she thought it would make him happy.
- In Tokyo Ghoul re Kaneki/Sasaki thinks dying in a cool way will make others love him and that they'll be happier if he sacrifices himself to protect them. He wants to die in the same way he perceives Hide had done for him when he goes to battle Arima. However, a hallucination of Hide steps in to strengthen his resolve to win as he meant that he just wanted to survive on together with Kaneki.
- The Kid Loki run of Journey into Mystery concludes with young Loki discovering he wasn't really an reincarnation of the original Loki, only an innocent clone of sorts, whom the original intended from the start to eventually erase from existence and take the body of, with his good name restored, in order to get back to backstabbing everyone whose trust Kid Loki had re-earned. Kid Loki is horrified- but Loki had also manipulated him into creating a MacGuffin currently causing a multiverse-endangering civil war that will only exist as long as Kid Loki does. Kid Loki ultimately agrees to be erased from existence so that his family- particularly Hela and Thor- don't get dragged down in the war and are allowed to be happy.
- Axis Powers Hetalia fanfic Kanashī, WŁtend, Desolato, a What If? for Gankona, Unnachgiebig, Unitŗ: Italy sure thought this. He thought it was his fault for causing the torment Germany and Japan were forced to experience because he revealed their relationship to the world. He thought the only way to end the ostracising and ridicule was to kill himself. It only failed because it is nearly impossible to kill the countries' personifications.
The hazel had kept his eyes closed, neither of the two able to see the lack of life in them. The lack of life in normally effervescent, normally blithe brown that were usually full of life. The lack of will to be precise. The will that had been diminishing.Until it was gone.He could see the hidden anger Germany held at the lack of respect he had been receiving when he was once looked so highly on. He could see the hidden sadness Japan possessed that had replaced his usual zen-like calm, his peace. He could see them trying to hide their immense suffering...only to fail. Each and every time.And fail epically.Well, it's time to fix his mistake. To right his wrongs. To make what is unaccepted accepted. To make three become two.By taking himself out of the equation.
- In the James Bond film The World Is Not Enough, the Big Bad (or possibly The Dragon, it's not made clear) is willing to die in order to further Electra's plan to irradiate all her competitors' oil by blowing up a nuclear submarine. The fact he's slowly dying from a bullet wound to the head probably helps though.
- Donnie Darko: Donnie allows himself to be killed by the falling plane turbine to allow the various people in his life to live/be happy.
- The Butterfly Effect: One of the endings has Evan Treborn go back in time to strangle himself with his own umbilical cord while still in the womb, resulting in a stillbirth. The people Evan cares about, for whose sake he does this, do in fact go on to lead better and happier lives.
- In the 1996 movie Kissed, a young man falls in love with a seriously disturbed girl. She has been attracted to dead things since childhood, and took a job in a mortuary to give herself access to comely dead men. The young man tries to lead her into a (marginally) healthier relationship with him, and the girl tries, but is revolted by sex with the living. The young man eventually commits suicide in front of her so that she will finally love (and make love) with him.
- The alcoholic main character in A Star Is Born kills himself so his wife won't have to sacrifice her career to care for him.
- Looper: Younger Joe kills himself right before his future self kills Sara, which would have in turn caused her son, Cid, to become the evil Rainmaker in 30 years from then.
- Cruel and Unusual: Doris believed she was just a burden to her family, being an alcoholic that could barely function, so she hanged herself. Instead it made her family suffer greatly (one of her daughters blamed herself) and leaves Doris still reliving the suicide in the afterlife decades after this.
- In Twilight, Jacob threatens to do this, but Edward says it's just a ploy to get Bella to kiss him.
- The Night Circus: Because the Challenge only ends when one of the competitors kills themselves, and the intimacy of the competition typically leads to the two competitors falling in love, both challengers go through a period where they contemplate suicide to relieve the other from continuing the game. It's implied that Tsukiko's opponent may have ended their competition this way.
- Sacred Sins by Nora Roberts: Joey is a troubled teenaged boy who is depressed, suicidal, and has dabbled in alcohol and the occult as attempts to cope with his depression, stemming from his mother's divorce from his alcoholic father and the fact that his father apparently doesn't want anything to do with him. His mother has remarried, the stepfather is basically the opposite of Joey's father, and the two of them have a baby. So on Thanksgiving night, after dinner, he sneaks out of the house, goes to a bridge, and jumps off it, convinced that his mother and stepfather will be happier without him and that they have the baby who can just replace him. He dies in a hospital, leaving his mother, stepfather, and the psychiatrist who tried to help him in tears.
- Gregor Samsa, the suddenly-insectile protagonist and Author Avatar of The Metamorphosis. Already in poor health from a crippling injury he'd received from his own family, he overhears them complaining of what a burden he is and wishing he would go away. A heartbroken Gregor retreats to his room and allows himself to die, which greatly pleases the Samsa family and allows them to move on and prosper in their lives. Author Franz Kafka was not a very happy soul.
- Jude the Obscure: Jude's son and a Creepy Child "Little Father Time" commits suicide because the family is poor and he feels... Well, this was his suicide note: Done because we are too menny. He killed his younger siblings as well, making it a case of murder/suicide for others' happiness, though he probably never believed that anybody could be if only slightly happy.
- CSI: A guy makes it appear that he's been stabbed in the back so his family will get his insurance money. Unfortunately for them the CSIs are too good at their job.
- This has probably happened at least a few times per series.
- Leverage: A hockey player is pretty much doing this: not only does he pick fights with the opposing team for a bonus, his own manager pays the opposing players to fight him. By the time the Leverage team meets him he's one concussion away from death and he knows it, but he loves his son too much to pass up the extra money.
- In Day Break, Chad suggests this as a possible solution to Hopper's failure to end the loop and the misery he causes to his loved ones.
Chad: I've got a solution. If everyone you care about is in trouble because of you, why don't you take yourself out of the equation?Hopper: What are you talking about?Chad: Kill yourself. Seems to me if you die, everyone else will be fine.
- MOTHER 3: In the final boss fight, Claus, Lucas's brother, finally comes to his senses. Then he fires an attack that he knows will be deflected back at him and kill him. He apparently did it because he thought his family would be happier without him, and that he should be with his dead mother.
- Miriam Calibur attempts this during the "Scaredy Fox Training" roleplay of White Dark Life after Ne attacks her in a panic. She's only stopped from going through with it by knocking her unconscious, then clearing up her misconception about a curse after she comes to.
- In a Tom and Jerry short, a duckling thinks Tom is his mother, so Tom takes the opportunity to try and eat him. Eventually the duckling figures it out, and so decides that "if eating me will make my mama happy, then go ahead." It is then that Tom has a change of heart.