[[quoteright:320:http://tvtropes.org/pmwiki/pub/images/FordEastOfTheSun.jpg]]
[[caption-width-right:320:If TheQuest to find your lost love involves getting the wind to carry you over the sea -- that's what it takes.]]
->''"Seven long years I served for thee,\\
The glassy hill I clomb for thee,\\
Thy bloody clothes I wrang for thee;\\
And wilt thou not waken and turn to me?"\\
\\
He heard, and turned to her''
->-- '''The Black Bull of Norroway'''
Some series don't stick to one spot on the SlidingScaleOfIdealismVersusCynicism; rather, they end up somewhere in the middle by drawing from ''both'' extremes of the scale. Humans may act like [[HumansAreBastards bastards]] and the world may seem like it's [[WorldHalfEmpty half empty]], but that doesn't mean that that the worst villain is beyond redemption, or that things can't be improved with hard work or even ThePowerOfLove. The forces of Good may have to go through Hell, but in the end they will Earn Their Happy Ending. May overlap with a BittersweetEnding. (By its Golden Mean sort of nature, this is a rather SubjectiveTrope.)
Writing an ending like this is a balancing act: things have to be desperate enough to make it seem like the heroes could very possibly lose, but not so desperate that it seems there's no way the heroes can win. When pulled off poorly, it seems like the authors just {{Ass Pull}}ed a HappyEnding. [[CrowningMomentOfHeartwarming But when pulled off well...]]
Compare ThrowTheDogABone.
As this is an ending trope, assume examples will be spoilertastic.
----
!!Examples:
[[foldercontrol]]
[[folder: Anime and Manga]]
* ''NowAndThenHereAndThere'' is an extreme example. Extreme.
*''{{Mai-HiME}}'' can be a pretty good example of this, or a good example of the attempt not working out, [[YourMileageMayVary depending on who you talk to.]]
** The manga is a better example, ending with the BadassNormal Yuuichiro [[spoiler:flying out into space and ''cutting a star in half with a {{BFS}}.'']]
*''HigurashiNoNakuKoroNi''. Thanks to [[spoiler: its GroundhogDayLoop nature]]; [[KillEmAll everyone dies]], [[BeyondTheImpossible repeatedly]], but they ultimately [[EverybodyLives make it]] thanks to the PowerOfFriendship.
** Like wise in the sound novels, for both the player and in game characters.
* ''BlueGender''. Very dark, gritty, cynical, cold world after the Blue has taken over the Earth. Human life has lost all of its value and the only thing that matters is defeating the Blue, regardless of any and all cost. Even the idealistic Yugi goes insane for a few episodes before the formerly cold and cynical but now warm-hearted and caring Marlene saves him. It has a happy ending for Yugi and Marlene, as well as the other humans who live in harmony with nature.
** Everyone else? [[spoiler:[[GaiasVengeance They go crazy and die]]. Gaia is a ''bitch'']].
** Indeed. This is no ''EarnYourHappyEnding'', more like the definition example of ''Pyrrhic Victory''.
* ''TengenToppaGurrenLagann'' pits the HotBlooded Spirals with HumongousMecha [[ClapYourHandsIfYouBelieve powered by belief]] against against the near omnipotent Anti-Spirals whose sole purpose is to suppress Spirals by causing as much cynicism and despair as possible, since they believe (correctly) that the very existence of Spirals risks [[TheEndOfTheWorldAsWeKnowIt the destruction of the Universe]]. Guess which side wins?
** Given the [[DisContinuity controversial]] and [[InternetBackdraft hotly debated]] nature of the [[WhereAreTheyNowEpilogue epilogue]], with enough cynicism one might even say they [[SubvertedTrope subverted this]].
* ''WelcomeToTheNHK'' seems to make this point. It even manages to approach it from a quasi-religious angle without seeming preachy--[[AuthorTract a rare feat, unfortunately.]]
** Don't know about a religious angle - the anime implies and the novel explicitly states that Misaki's quite religious (and very well-meaning) guardians didn't manage to help much with her chronic depression. The way the brief mentions of God are used are...unorthodox, to say the least.
** We're talking about a mostly non-Christian country here, so any God references are just for kicks. And Shinto's beliefs regarding gods are real different form the West, so...
* [[CrapsackWorld Surprisingly]], ''CodeGeass'' ends like this. It takes a lot of [[XanatosRoulette planning]], however, including [[spoiler: the protagonist taking over the entire world as an evil dictator, and his best friend, at the protagonist's insistence, publicly assassinating him. OK, the hero's ending wasn't so happy, but he did achieve his goal of breaking the cycle of international conflict and creating a gentler world for his little sister.]]
** Given that Lelouch's motivations all along were (a) revenge and (b) making a better world for Nunnally, never wanting ''anything'' for himself and given that [[spoiler:he achieved both]] this can be considered [[spoiler:a happy ending even for Lelouch himself]].
*** One wonders if [[spoiler:Nunnally]] would consider it a happy ending, though...
*** Indeed, given [[spoiler: her]] reaction to it all it [[YourMileageMayVary could very well be interpreted as]] more of a BittersweetEnding.
* ''MacrossFrontier'' did this as well, after [[strike:three]] ''at least five'' episodes of utter bleakness, kicked off with a BigDamnHeroes moment from [=SMS=], and culminating in [[spoiler:a nuclear disarming-of-giant-robot-via-shanking, one multi-kilometer high robot gut-punching another multi-kilometer robot, songs SavingTheDay, the Vajra turning good and protecting the Frontier fleet, TheRival teaming up to take down the BigBad, Alto blowing off the BigBad's head with Mikael's sniper rifle, and everybody being happy happy love love on the Vajra home planet. Oh, and EverybodyLives. Even the character with the terminal disease.]]
* ''MagicalGirlLyricalNanoha'' does this ''every season''. MoodWhiplash is used like a weapon by the writers, turning some of the darkest, most painful depths of despair into happy endings where almost everyone gets a Good End. A's has the darkest ending of the entire series, and it's merely a BittersweetEnding. The sole exceptions to this are [[spoiler:Precia Testarossa]] in Season 1 and [[spoiler:the overarching conspiracy within the TSAB and Jail Scaglietti]] in [=StrikerS=]. Arguably, this prevents any case of KarmaHoudini that even the series' heavily grounded idealism couldn't excuse.
* The ending to the ''RurouniKenshin'' manga has Kenshin HappilyMarried to Kaoru, and having given away his sword. Kaoru has restored her school to a lot of students and is the happy mother of Kenshin's kid Kenji at the same time, Sanosuke is off to see the world, Yahiko is a famous swordsman, and Megumi goes to Aizu to practice medicine while trying to find the rest of her family. The anime on the other hand is a DownerEnding that [[AdaptationDecay wasn't even close to the manga's ending]]: [[spoiler: Kenshin and Karou are deathly ill, he ends up amnesiac in China and along with Sano he has to go through Hell and back to return to Japan, Kaoru is barely hanging on thanks to her desire to see Kenshin one last time, and in the end Kenshin goes back home and dies in her arms, only to have her dying soon afterwards]]. The only bits of hope are these: [[spoiler: Yahiko succesfully disuades Kenji from taking up the Hiten-Mitsurugi fighting style ''and'' helps him to stop hating his DisappearedDad. Soon after, Kenji takes off with his girlfriend (who looks like a younger Kaoru) to build a new life away from Tokyo]].
** That's why ''Seisouhen'' is a CanonDiscontinuity. Nobuhiro Watsuki [[WordOfGod publicly stated]] that it was made without his involvement, [[ExecutiveMeddling went absolutely contrary to his intentions]], and he doesn't consider it canon.
* ''{{Planetes}}'' waffles a bit at the beginning, then nosedives into increasingly cynical or even pessimistic territory... but idealism wins in the end, even with [[spoiler:the terrorist characters]].
** Terrorist subplot was [[RippedFromTheHeadlines greatly overblown in anime]], while crazy salarimen antics were [[AdaptationDecay invented out of the whole cloth]], but manga had its share of troubles and hardships. Mostly on the Fee's part, as [[TheWoobie most Clare's problems]] in the anime happened to ''her'' in the manga, though Tanabe didn't escape them too.
* While not in full use in the series itself (since, y'know, it hasn't ''ended'' yet), ''MahouSenseiNegima'' plays this in regards to [[{{Samurai}} Setsuna]], a warrior who having lived her life as an [[FantasticRacism outcast]] [[HalfHumanHybrids half]]-[[{{Obake}} demon]], found happiness in protecting Konoka as a [[BodyGuardCrush simple bodyguard]]. In their childhood [[FailureKnight she failed to protect Konoka]], causing her to distance herself from the girl in order to [[TrainingFromHell train harder]] and become [[TheStoic colder]], feeling that emotion was the weakness that caused her to fail. This distant relationship with Konoka was later resolved, and she become calmer and more cheerful, like her younger self. Later, in a pseudo SecretTestOfCharacter, [[NobleDemon Evangeline]] forced her to choose between which was more important: becoming a cold-hearted swordsman [[TheUnfettered without limits]] to better serve Konoka, or remain as she was in her current happy state, while losing her sword to Evangeline in doing so. With the two ideas conflicting with one another, only being able to lose with available options, [[TakeAThirdOption she chose to have both]]. Whether she'd actually be able to do this or have a happy ending at all has been a running plot-line for her ever since.
** As of chapter 252, [[spoiler:She has both and more. In a [[CrowningMomentOfHeartwarming heart-warming scene]], she becomes Konoka's partner instead of bodyguard, and can thus help her instead of simply protecting her.]]
** She also [[spoiler: finally got to [[SchoolgirlLesbians make out with Konoka]], which she had obviously [[BodyGuardCrush wanted to do for quite some time]].]]
* ''{{Manga/Mars}}'' has this in escalating spades, culminating in a white-knuckled, tear-jerking GrandFinale when Rei gets stabbed in the gut by recurring DepravedBisexual Masao Kirishima, while he's on his way to the party celebrating his marriage to the girlfriend he's been through hell and resolved all of their respective {{Backstory}} trauma with. They still get to live happily ever after.
*''VideoGirlAi''. Multiple times.
** Most explicitly the whole "glass stairway" thing.
* [[{{Gundam00}} Saji Crossroad]]. Full. Bloody. Stop. [[TheWoobie The poor guy]] had [[BreakTheCutie everyone he loved taken from him]], spent most of a season finding out just how much he lost, wound up as the hostage of the very people he thought were responsible for it, then [[LoveHurts nearly died]] at the hands of [[BrokenBird the]] [[DarkActionGirl person]] (''and also'' [[MurderTheHypotenuse his]] [[OedipusRex love]] [[MilitaryBrat rival]]) he was trying to return to ''multiple times''. And only ''barely'' succeeds in getting said person ([[spoiler: Louise]]) back to sanity. If ''anyone'' in recent fiction earned the right to a happy ending, it's him.
* The KyoAni adaptation of ''{{Clannad}}'' had Tomoya [[spoiler:die, so that he would be reborn as the Garbage Doll in the Illusionary World. Only then could he be given the opportunity to save Nagisa and by extension, Ushio, when the Girl in the Illusionary World/Ushio sent him back in time, prepared to prevent Nagisa's DeathByChildbirth]].
* ''{{Monster}}''. Need I say more?
* Juri Katou from {{Digimon Tamers}}. Starting as a {{Genki Girl}}, then [[spoiler:seeing her Digimon partner die, being captured by the [[BigBad D-Reaper]] and suffering through what may be ''weeks'' of {{Mind Rape}} where the viewer learns that [[StepfordSmiler her apparent persona was just a facade]]...]] even series creator Chiaki Konaka himself implies in his character notes that he ''struggled'' to give Juri her happy ending.
* ''ExcelSaga'' ends on a very happy note. Although you could interpret that [[spoiler: Everyone died in the explosion]]. But other than that [[spoiler: chances are high that both Watanabe and Excel got their crushes and that everyone ends up friends. Oh and Pedro gets his wife and son back.]]
* RahXephon. [[spoiler: After episode 19, tragedies keep racking up until the world is saturated in an apocalyptic crescendo... then the PowerOfLove sings out. Cue [[{{WhatDoYouMeanItsNotSymbolic}} symbolic surrealism]] followed by [[{{CrowningMomentofHeartwarming}} warm fuzzy feeling.]] ]]
** This Troper always considered the ending of ''RahXephon'' to be like ''[[NeonGenesisEvangelion The End of Evangelion]]'' where everything fucking ''worked out for the best!''
* The ending of Ayu's route in {{Kanon}} implies that [[spoiler:Ayu gets better (as opposed to being dead, which was what it seemed like even to Yuuichi) precisely because he had the strength to [[TraumaInducedAmnesia face and accept what happened seven years ago]] after [[PowerOfLove admitting he loved her and always would]].]]
* ''MiraiNikki'': Yuno's "Yukiteru Diary" predicts that [[spoiler:she and Yukiteru will "become one" on July 28, [[ExtyYearsFromNow 20XX]] and get a [[GratuitousEnglish HAPPY END]]. Said ending is threatened on multple occasions; it goes away when Yukiteru discovers the corpses in the sealed-off room in her hourse (but comes back after the 6th is defeated), and after the defeat of the 10th (during which Yuno [[{{Yandere}} tries to snatch Yukiteru away from his friends]]), Yukiteru warns that if she wants to win his heart and earn her happy ending, she will need to accept his friends.]]
*''LiarGame'' seems to be heading this way - yes, most of the titular game's players are deceitful and desperate to come out of the game with a profit, but Nao's attempts to persuade them to unite against the LGT and share their money to keep everyone out of debt seem to be having some effect. Of course, it's too early to know to what extent this will work...
* The ending of the Maya subplot in AzumangaDaioh. Suffer the animosity of a thousand cats so you can actually own one, happy ending definitely earned.
* ''PrincessTutu'' ends with the heroine [[spoiler:''not'' getting the guy she spent the entire series trying to help]] and forced to [[spoiler:give up the ability to be a girl forever]] on top of it, but in the end it's still shown that she's happy and with someone that cares for her. In fact, all of the characters are put through a lot of extreme emotional torture throughout the series (to the point that three of them threaten suicide at one point), but they all end up with a happy ending, although for some it's more bittersweet than for others.
* Used in the GrandFinale of the ''EurekaSeven'' anime. When Renton is huddled in a fetal position, believing Eureka is dead and that current events are going to cause TheEndOfTheWorldAsWeKnowIt, and begging Holland to beat on him like he used to. Holland simply tells him to stand up and get ready to go to where Eureka is. His way of saying "Don't expect us grown-ups to fix shit for you." If that was too cryptic, Holland pretty much says it when Renton is about to pilot the new Nirvash into battle, telling him to "Go steal away the woman you fell for! You're a man, aren't you?"
** And so Renton earns [[spoiler:an ending so happy that at least one troper has accused it of TastesLikeDiabetes; of course, YourMileageMayVary. Be warned that the manga adaptation ends ''very'' differently.]]
* While the anime version of ''ChronoCrusade'' has a pretty notorious DownerEnding, the manga version fits squarely within this trope. After the end, it's shown that almost all of the characters go on to live happy, normal lives, and those that don't are working towards their own chances to earn a happy ending. Even several of the villains get an AlasPoorVillain moment at their deaths.
* ''PrincessMononoke''.
[[/folder]]
[[folder:Comic Books]]
*''{{Transmetropolitan}}'' is set in a [[{{Twenty Minutes into the Future}} crapsack future that's not too different from our world]], just more futuristic and more screwed up. When Gary Callahan becomes [[{{OurPresidentsAreDifferent}} President of the USA]], he starts to turn it into an authoritarian state. Over the course of trying to bring him down, Spider Jerusalem, the main character, starts to [[spoiler:suffer from a seemingly incurable brain condition.]] In the end, however, he [[spoiler:manages to take down Callahan, survives and ends up being among the one percent that doesn't suffer from major long-term effects of his condition]], but [[spoiler:lets everyone else believe that his brain is a mess so he can live in peace.]] The world is still a mess, but not really worse than it was at the beginning of the series.
[[/folder]]
[[folder:Fairy Tales]]
* Many a fairy tale hero or heroine has found that [[ForbiddenFruit violating the prohibition]] requires a long, arduous [[TheQuest quest]] to reach their wife or husband again. But it's worth it.
**Heroine versions include ''[[http://www.surlalunefairytales.com/eastsunwestmoon/stories/norroway.html The Black Bull of Norroway]]'', ''[[http://www.surlalunefairytales.com/eastsunwestmoon/stories/enchpig.html The Enchanted Pig]]'', ''[[http://www.surlalunefairytales.com/eastsunwestmoon/stories/brownbear.html The Brown Bear of Norway]]'', ''[[http://www.surlalunefairytales.com/eastsunwestmoon/stories/whitewolf.html The White Wolf]]'', [[TheBrothersGrimm Grimms']] ''[[http://www.surlalunefairytales.com/beautybeast/stories/lark.html The Singing, Springing Lark]]'', and ''[[http://www.surlalunefairytales.com/eastsunwestmoon/index.html East of the Sun & West of the Moon]]''
** Hero versions include ''[[http://www.mythfolklore.net/andrewlang/009.htm The Blue Mountains]]'', ''[[http://www.surlalunefairytales.com/authors/asbjornsenmoe/threeprincesseswhiteland.html The Three Princesses of Whiteland]]'', ''[[http://www.surlalunefairytales.com/swanmaiden/stories/serbian.html The Golden Apple Tree and the Nine Peahens]]'', ''[[http://www.surlalunefairytales.com/swanmaiden/index.html The Swan Maiden]]'', and ''[[http://www.surlalunefairytales.com/swanmaiden/stories/soriamoriacastle.html Soria Moria Castle]]''.
[[/folder]]
[[folder:Film]]
*''TheDarkKnight'': Yes, there are criminals who will do almost anything for money, and unapologetic evil that cannot be bargained with, and even the KnightInShiningArmor can fall, hard. But in the end, Batman is able to apprehend the Joker without becoming the monster Joker wants him to be. And the citizens of Gotham pass Joker's "social experiment" (if only barely) by not turning on each other like he predicted.
*''{{Enchanted}}.'' So the world isn't perfect... but hey, maybe there still is something to ThePowerOfLove.
*''ItsAWonderfulLife''. The movie begins with George Bailey on the verge of suicide, and then shows everything that drove him to despair. But by the end, even though his economic situation hasn't changed (at least until the end) the realization that he is appreciated makes all the difference.
*This is one of the big draws of ''TheCrow'', other than seeing Brandon Lee give his final performance and watching him carry out his RoaringRampageOfRevenge.
* ''{{Serenity}}'' ends with the people of Miranda avenged, River somewhere closer to sanity, and Mal having put some of his demons to rest... but only at the cost of two of his crewmembers and a lot of innocents.
**It says something about JossWhedon's SignatureStyle when ''Serenity'' has one of the more ''upbeat'' endings of his works.
* ''SavingPrivateRyan'' ends its WarIsHell theme with this quite explicitly, with Captain Miller telling the eponymous private to ''earn it'' when he returns to the 'States.
** The Epilogue show him as an old man at Captain Miller's grave in France with his wife, children and grandchildren, and has him breaking down and asking his wife if he was a good man. ManlyTears were shed at the viewings This Troper attended, especially by battle hardened old men in the audience.
* ''TheShawshankRedemption'' IS this trope.
* The world of ''QuantumOfSolace'' may be a CrapsackWorld, with the ''official'' stances of the CIA and [=MI6=] to let Quantum, the NebulousEvilOrganisation, do what they want in the name of oil, but at the end of the film, JamesBond has torn open a huge hole in Quantum, earned his solace over Vesper's betrayal and death, helped Camille get revenge and remove a would-be dictator, and given the Bolivian people their resources back. Leiter also gets promoted to his corrupt chief's position.
* ''WallE''. The Earth had fallen into decay and waste. After 700 years life finally sprouts again. Despite having lived lives doing almost nothing, the people of the Axiom are happy to set foot back on Earth and try to fix it. In the credits, we see society develop back to its former glory, and lush green fields and lakes are once again alive. Mankind has grown fit and thin again as they start doing things again. The real trick to it all? This is the SECOND happy ending, and this all happens in the credits.
** The part in the credits was actually added after a test screening because about half the audience walked away making the rather realistic assumption that humanity died in about a week.
* ''SlumdogMillionaire'', applies this literally- almost every horrific thing that happens to the characters contributes to Jamal's win.
* ''[[LordOfTheRings The Two Towers]]:''
--> '''Sam:''' "It's like in the great stories, Mr. Frodo. The ones that really mattered. Full of darkness and danger, they were. And sometimes you didn't want to know the end. Because how could the end be happy? How could the world go back to the way it was when so much bad had happened? But in the end, it's only a passing thing, this shadow. Even darkness must pass. A new day will come. And when the sun shines it will shine out the clearer. Those were the stories that stayed with you. That meant something, even if you were too small to understand why. But I think, Mr. Frodo, I do understand. I know now. Folk in those stories had lots of chances of turning back, only they didn't. They kept going. Because they were holding on to something."
--> '''Frodo:''' "What are we holding onto, Sam?"
--> '''Sam:''' "That there's some good in this world, Mr. Frodo... and it's worth fighting for."
**ManlyTears were shed.
* [[DavidMamet David Mamet's]] ''Redbelt''. Through a veritable DeusAngstMachina noble jujitsu instructor Mike Terry [[spoiler: loses his business, his reputation, and his best friend, and is forced to fight in a PPV match. Once there he not only discovers the matches are fixed, but that it was his own wife who caused his downfall. After a brief HeroicBSOD he becomes determined to make it to the ring and reveal the truth about the fixes. On the way there, he defeats the [[ArrogantKungFuGuy arrogant jujitsu guy]], is awarded the championship belt, has a moment with the woman whose life he probably saved, and when he reaches the ring is embraced by his life-long mentor, who gives him the highest honor in jujitsu - the titular red belt.]]
* ''Film/SkyBlue'' follows Shua as he desperately tries to bring down Ecoban in order to mitigate the environmental damage it has caused to his home. Dr. Noah notes that most of its inhabitants will survive and be able to [[MakeABetterWorld forge a better world]], but it will take a lot of work.
* The 1924 version of ''The Theif Of Bagdad''. It's written in the stars...
[[/folder]]
[[folder:Literature]]
*CiaphasCain series can fit into this trope, ok, Cain sometimes gets really lucky, but we must recognize luck usually works as many times against him as in his favour, he still has to fight and figure out a way to save his life most of the time, but in the end, when he has managed to save the day (and usually the entire sector), he and his friends can go to a nice place to enjoy some amasec and tanna while tasting some delicacies.
** And he managed to earn his retirement, which is to say something, considering the rate of casualties in the [[RedShirtArmy Imperial Guard]], and [[RetiredBadass after some decades he saved the world]] were he was (again), ensuring himself (again) his good retirement.
*K.A. Applegate's ''{{Everworld}}'' series. It's set in a world where all the gods and creatures from mythology exist, and as anyone who's read their mythology can tell you, that means horrible deaths and fates worse than death abound. And that's before Everworld is invaded by psychotic, heavily armed Neo-Nazis and an alien horde with their own god that eats other gods. For most of the series, the four teenagers who make up the main cast are barely able to keep themselves from killing each other, let alone staying alive, yet in the last book they actually manage to forge an alliance among the squabbling gods, start an industrial revolution in Everworld, and (while the series ends before the aforementioned Nazis and aliens can be defeated) the prospects for obtaining something close to peace are actually looking up.
*Dan Simmon's ''Hyperion'' cantos. In the first book, the enemies are everywhere, none of our protagonists, despite having an uber badass soldier and numerous secret weapons, have anywhere near the power to defeat the Shrike, who seems to be everywhere and can kill them off easier than Jason in the Friday the 13th movies. Yet it ends with our heros singing "We're off to see the Wizard." Though to tell the truth, it worked for this troper.
* LloydAlexander's ''PrydainChronicles'': Taran becomes the King of Prydain and marries the girl of his dreams, but only after losing several friends and having his idealistic image of a 'hero' shattered. Even then his ending isn't [[BitterSweetEnding that happy.]]
*RobinHobb's later fantasy trilogies ''The Liveship Traders'' and ''The Tawny Man'' go through an incredibly dark journey and emerge to a more or less happy ending.
*Characters in the {{Discworld}} books frequently have to earn their happy endings.
* The ''{{Gormenghast}}'' series practically ''defines'' this trope. Titus goes through Hell and back, losing almost everybody he cares about to take down Steerpike, but in the end, he has a world to explore, a world to win.
* ''ParadiseLost'' may seem like a DownerEnding at first, but read it again:
-->''The world was all before them, where to choose''
-->''Their place of rest, & Providence their guide''
-->''They hand in hand, with wadding steps and slow''
-->''Through Eden took their solitarie way.''
** I think I've got something in my eye...
* ''WorldWarZ'' chronicles the entirety of a ZombieApocalypse, from the dark portents of danger, the manic reaction of humanity, the soulless survival techniques that many resorted to, and the horrors of the living dead. Despite this, it manages to have an undercurrent of hope that gets stronger, running side by side with the cynicism and blackness. After all, [[spoiler:Humanity did win the war, in the end.]]
* This is presumably the rationale behind ''NewJediOrder'' and ''LegacyOfTheForce'', but for some fans (this editor, for instance) the excess of doom and gloom (not to mention main character deaths) just make it (and, by extent, the franchise as a whole) a DownerEnding.
** NewJediOrder worked as this, in this Troper's opinion, but LOTF definitely failed. Fortunately, they seem to be at least ''trying'' to correct their mess with FateOfTheJedi.
*** Until I see at least three [[BackFromTheDead resurrections]], it won't be enough. Not nearly.
* Both Sabriel and Touchstone in the first book of ''TheAbhorsenTrilogy'' are put through the metaphysical wringer. By the end, they've both lost their entire families and a lot of their friends to [[BigBad Kerrigor's]] undead minions. In the end, though [[spoiler: Sabriel is saved from death by relatives in the beyond telling her it's not her time, and she and Touchstone are well on their way to a happily ever after. They even managed to save [[SnarkyNonHumanSidekick Mogget]]]].
* Stephen R. Donaldson's books are invariably like this.
* ''{{Catch-22}}'' is a OnlySaneMan story in a CrapsackWorld featuring KillEmAll, but still has one of the most uplifting endings I've ever read.
** As uplifting as the ending sequence was, I was still expecting it to end in tune with the tone of the last third of the book - [[spoiler:for instance, Yossarian would fall and break his neck after jumping out the window or something.]] But the very last two sentences reveal that Heller hadn't forgotten the determined humor of the first bit:
--> [[spoiler:Nately's whore was waiting for him with the long bread knife. She swung and missed, her knife striking the stones near Yossarian's feet, and he ran.]]
** Good times.
* ''[=~Memory, Sorrow, and Thorn~=]'' is a pretty straight example, made WordOfGod when TadWilliams confessed in his commentary to going through CreatorBreakdown while writing it and therefore seriously considering using a KillEmAll ending instead. The heroes do win, but at the cost of [[AnyoneCanDie half of the main characters]] and nearly [[BittersweetEnding everything they've fought for]], and this is made quite clear in the story. Even the main protagonist comes to realize that "some hurts cannot be mended."
* Compared to some of JohnBrunner's other works (particularly ''TheSheepLookUp''), ''TheShockwaveRider'' might have an ending that qualifies. "Well-- how did ''you'' vote?"
* Averted, Subverted and Justified at the same time in StephenKing's ''TheDarkTower'' Series. After a journeying for untold years to reach the Dark Tower (and consequently losing the greater number of his friends, lovers, and followers along the way) Roland FINALLY reaches the Dark Tower. However, upon reaching it he finds out that his existence is a cycle; he has made the journey to the tower an unknown number of times before this one. He is made to repeat his journey again and again until he finally learns his lesson (which is up to the reader to decide). He is, literally, sent back to the beginning of the series with no memory of what just happened. The trope is abided to, however, by the fact that Roland may well be able to FINALLY complete his quest this time round.
** StephenKing even warns readers who have reached the last chapter to stop reading if they want to have a conventional happy ending. The real ending divided fan opinion...just a little bit...
* {{Harry Potter}} goes through hell and loses several friends along the way, but in the end, he is able to defeat Voldemort through {{The Power of Love}}.
** Well maybe. [[spoiler:It's not like they didn't think he was dead the ''last'' time the "power of [Lily's] love" killed him. Nor is there any evidence that the society that caused the problem in the first place has changed at all. Not to mention that most of Voldemort's supporters are still alive and free, while Umbridge killed most of the muggle-borns.]]
*** Those are all valid points, but I think that the epilogue was meant to show that everything turns out amazingly well, at least for Harry and his {{Nakama}}.
* {{Mistborn}}- both the first and third books, actually. The second is more of a DownerEnding, since [[spoiler: the BigBad just escaped its imprisonment thanks to the heroine]].
* Drizzt from ForgottenRealms is this trope incarnate
* Melina Marchetta's spectacular ''On the Jellicoe Road'' (just ''Jellicoe Road'' in the US and UK) is an example of Earn Your ''BittersweetEnding''. The main character and those she loves goes through love, and the the ending is ''still'' [[TearJerker incredibly sad]]. And [[CrowningMomentOfHeartwarming unbelievably heartwarming]].
* [[JaneEyre "Reader, I married him."]]
* HonorHarrington really has to do this in one case especially. Over the course of "In Enemy Hands" and "Echoes of Honor" she is [[spoiler: forced to surrender a ship captained by one of her oldest friends, with that friends' ''birthday party'' on board, captured, put into the hands of someone who is basically Himmler without the intelligence to not believe the propoganda, has her empathic and emotion - sharing treecat permanently crippled (found out later - he can no longer speak to other treecats), has her artificial eye and half her face electrocuted, is sentenced to death, sees her sworn retainers die in the (barely) successful escape attempt, loses an arm, lands on a prison planet, takes over said prison planet, builds a navy from all the ships stopping by at the prison planet, steals transports for all the people on the prison planet, and finally arrives back in the nearest friendly system to discover everyone thought her dead - and they'd held the funeral, and named ships after her, and she had a brother and sister that were planned to inherit her title. And somehow the whole thing is worthwhile in the simple sentence: "She was taking them home, and they were taking her home, and that was all in the universe that mattered."]] Yes, all that happens in between her leaving on an escort mission and getting home again.
** No, the line that makes everything worthwhile is, [[spoiler:"We're home, System Command.... It took us awhile, but we're home."]]
[[/folder]]
[[folder:Live Action TV]]
* Happy NEVER comes cheap in ''StarTrek''. Voyager had seven rough years before making it home. The folks of DS9 went through war and hell before putting down the Dominion once and for all, and both the Enterprise and her captain got beat up pretty good before they defeated the Xindi.
** In ''Voyager'', specifically, the end episode begins with a BittersweetEnding, but then [[spoiler: Janeway travels back in time]] and we get a REALLY happy ending.
*** Until you realize Janeway has to in the future [[spoiler: sacrifice herself so that there's no time paradox.]]
**** As the existence of Sela shows, the Trek universe can handle paradox. Janeway's future is not fixed.
** How is bloody SPOILER earning your happy ending? That's Battle Royale with Cheese.
*StevenMoffat's episodes of ''DoctorWho'' (with the possible exception of "The Girl in the Fireplace") tend to go this way.
* Arguably, this is how most of the episodes of ''[[{{House}} House MD]]'' turn out, although occasionally, the writers throw in a DownerEnding.
** Perhaps it's most accurate to say that sometimes, they leave it up to the audience to sort out whether it's a case of DownerEnding, BitterSweetEnding or EarnYourHappyEnding.
* With the way the story has turned out, ''BattlestarGalactica'' has a 50/50 shot of ending with either this, or a downer ending that will rival End of Evangelion.
** The ending decides to be a blend of the BittersweetEnding and this. Also, this trope is completely played straight with [[spoiler: Helo and Athena, who, after going through more crap than any other couple on the show, finally get to live the rest of their lives in peace with their daughter.]]
* ''StargateSG1''. Applies to the series as a whole, but most particularly in season nine and ten. World after world bows down to the Ori, SG team members getting killed left and right (even a lot of normal people on earth thanks to the Prior plague), villains constantly getting away scot free and in two years, barely a dent is made in the Ori attack. Then TheArkOfTruth kicks down the [[DownerEnding Downer Ending's]] door, beats it up with some [[CrowningMomentOfAwesome Crowning Moments of Awesome]] and proceeds to give the team the HappyEnding they deserve.
* ''NYPDBlue'': Andy Sipowicz went through one murdered wife, one murdered son, two dead partners (and a third quitting in disgrace), and two cancer scares (His own and his toddler son's), all while trying trying to clean up his act after spending much of his career being an alcoholic RabidCop. He ends the show's run as squad commander, with a [[UglyGuyHotWife beautiful wife]] and newborn daughter at home.
[[/folder]]
[[folder: Myth And Legend]]
* Odysseus ''embodies'' this trope so much you could call it TheOdyssey. He gets chewed out by Poseidon, loses all of his friends and crew in some very bloody deaths, is lost for 10 years when he finally comes back, and finds that his wife is being forced into picking a suitor, so he has to bring bloody death to them all with his son.
** [[AndYourLittleDogToo And his dog died when he first came home.]]
* The tale of Cupid and Psyche. [[ForbiddenFruit Her own temptation isolated her from the one she loved.]] [[LikeABadassOutOfHell She went through hell for him]] - quite literally - and had to stand up to [[EvilMatriarch her mother-in-law]] - all while pregnant with his child - but in the end Cupid forgives her and rescues her, [[CrowningMomentOfHeartwarming and marries her.]] [[BabiesEverAfter And their daughter's name?]] Delight.
[[/folder]]
[[folder: Tabletop Games]]
* ''PrometheanTheCreated'' is the only game in the ''New WorldOfDarkness'' to have anything approaching a "happy ending"... but as this is the World of ''Darkness'', it's a long road to hoe. Prometheans get some of the worst BlessedWithSuck of all supernatural types -- they come into existence in adult bodies with undeveloped minds, their [[UncannyValley very nature]] makes humans flip out and want to kill them over time, the very earth rejects them, and since they're so rare (for obvious reasons), it's hard for them to band together in groups. But as they're unfinished works, they can undertake a long and arduous Pilgrimage to figure out what humanity is... and, in doing so, [[ToBecomeHuman become human themselves]].
[[/folder]]
[[folder: Theater]]
* Any [[StephenSondheim Sondheim]] show that has a happy ending -- especially ''{{Sunday in the Park with George}}'' and ''{{Into the Woods}}'' -- falls under this.
* ''{{Wicked}}''. Sometimes everything that you try isn't enough to change the world. Sometimes your greatest triumphs lead directly to your downfall. But when you open your heart to someone else, and you change each other, then whatever may come, you are unlimited.
* ''[[DonQuixote Man of La Mancha]]'', both the ShowWithinAShow and the show itself.
-->"And the world will be better for this
-->That one man, scorned and covered in scars
-->Still strove, with his last ounce of courage,
-->To reach - the unreachable star!"
* The more seriously themed CirqueDuSoleil shows invoke this trope.
** ''Alegria'' - Power is too often in the wrong hands, but the forces of good can and must fight and (re)claim it. The movie inspired by this show takes this trope much further: the world it takes place in seems to be a WorldHalfEmpty where (as a song puts it) "children suffer and then want to die", but beauty and love have the power to change someone from despairing to hopeful - and to change everyone around them in the process. And every person has the power to be that source of beauty and love to someone else.
** ''Quidam'' - The modern world is an alienating place, but people can still connect with each other, and every person deserves to be seen as an individual with needs and wants.
** ''Varekai'' - Just because you fell doesn't mean you can't fly again.
** ''KA'' - Things that can be used to destroy can also be used to create, and even the most evil hearts can be turned by all the manifestations of ThePowerOfLove and ThePowerOfFriendship.
* ''Dog Sees God'' - This incredibly dark ''{{Peanuts}}'' parody pulls one of these. [[spoiler: Snoopy contracted rabies and was put down, Woodstock was killed by Snoopy, Schroeder deliberately overdosed and died, Lucy is in an insane asylum for setting the Little Red-Head Girl on fire, Linus is a pothead, Marcy and Peppermint Patty are alcoholics, Freida is bullemic, and PigPen is a psychopath -- but Charlie Brown finally got a response from his pencil-pal, and that gives him the strength to keep going.]]
* ''A Raisin in the Sun'' by Lorraine Hansberry is a good example. The end of the play sees the African-American Younger family moving into a house in a white neighborhood so hostile that they sent a representative to offer to buy their house out from under them. Walter, the family patriarch, having blown the bulk of his father's life insurance payout, including money earmarked for his sister's education, nearly accepts the offer, but finally realizes that the family's pride is more important than money. Despite the looming challenge of being the first black family to live in their new community, and knowing that they will all have to work harder than ever to maintain their suburban life financially, the tone of the final scene in which they are moving out of their run-down apartment is one of hope.
[[/folder]]
[[folder: Video Games]]
* ''KingdomHearts''' ending forces [[spoiler: Sora, Riku and Kairi to get through the series up to near the end of Kingdom Hearts II (That's nearly 3 different video games) before they can joyously reunite with each other. Then they have to finish off the BigBad before they can return home.]]
*''FinalFantasyVI'' has this, though they could have emphasized it a lot more with more programming freedom.
** For a storyline example, ''FinalFantasyX'' leads directly into ''FinalFantasyX2''. In particular, Yuna's entire journey as a sphere hunter is so she can earn a happy ending [[spoiler:with Tidus after he ends the first game with a HeroicSacrifice.]]
*''[[MetalGear Metal Gear Solid]]'' has the situation getting worse and worse in the last three chronological games (MGS 1, 2, and 4), with [=MGS4=] revealing the one happy part of [=MGS2's=] ending went horribly wrong shortly after. This persists right up to the very last scenes, promising DownerEnding after DownerEnding yet averting each one at the last moment for a genuinely uplifting finale.
** This is a truly bizarre but awesome example, since the series properly establishes that AnyoneCanDie, and in the end, [[spoiler: a lot of people manage to live.]]
* ''{{Ever 17}}'' has five different endings, with the fifth achieved by earning the other four. Two of said endings end with the death of at least one of the main characters, and the other two are stacked full of TomatoInTheMirror and tragic BreakTheCutie. The fifth ending keeps up with the Tomatos, throwing TheMole, LukeYouAreMyFather and even a SoapOperaDisease… before giving you one of the most gloriously happy (if really improbable) endings ever. Considering the DiabolusExMachina {{Visual Novel}}s love to throw at you this was a genuine (and very welcome) surprise.
* ''{{Fallout}}'' does this too, many routes can go horribly wrong for a town. But choose the right choices and avoid genocide too much and NCR will have a well earned happy ending. On second thought, some of the best options for society is genocide, for example New Reno becomes a place for society's future after you killed every criminal family in town.
**Well, you only have to kill the bosses of each of the criminal families.
**What? Killing every family will cause New Reno to become a desolate, lifeless city. The best way it can turn out is if you kill every family but the Wrights without giving them access to a weapon cache.
** If you go for the goodguy path, Fallout 3 combines this with [[spoiler: Heroic Sacrifice.]] The world may be a crapsack, but it's getting better, even if it is slow, and even if there is a cost.
* ''ArTonelico'' does this in two ways: the game has multiple endings, in some of which you can [[spoiler: redeem the [[BigBad Big Bad]] instead of killing it off;]] Also, in the visual novel-like adventure within the "soulsphere" of Lady Shurelia, [[spoiler: which plays like a [[MagicalGirl Magical Girl]] TV show, you get a surprising BittersweetEnding, unless you go back again- then you find out that it was actually due to tampering by the Big Bad itself, and you get the chance to earn a happy ending instead.]]
* The ''{{Suikoden}}'' series actually makes this into a game mechanic: the characters will suffer through all the tragedies and losses of war and then some, but if you [[OneHundredPercentCompletion recruit all 108 Stars of Destiny]], everyone gets a truly happy ending. Keep in mind that this is not at all easy, and neglecting to get even one of them will result in a much more [[BittersweetEnding bittersweet]], or even downright [[DownerEnding tragic]] ending.
* The ''SilentHill'' games have an incredibly literal example of this; in each of the games, there is a potential good ending, but the player has to earn it through his actions while playing the game [[spoiler:with the exception of Silent Hill 3 and Origins, which actually force a good ending on the player the first time through. But, well, the characters still literally go through Hell to get it, so...]]
* The ''BaldursGate'' series leans heavily towards this, though the vagaries of being a somewhat open-ended RPG with a great deal of choice as to the nature of the protagonist keep it from being blatant. That said, the player does go to hell. Twice. Among other things.
* The newest incarnation of the ''Spyro the Dragon'' series by {{Sierra}} ended its trilogy based on this trope. [[spoiler:The world literally cracks apart after the Dark Master has seemingly won and accomplished destroying the world. But Spyro uses his powers to save the world at the last moment with Cynder at his side. All their friends are okay and Ignitus, thought dead, is now the new chronicler. The bittersweet part is that Spyro and Cynder are now dead... until its revealed they miraculously survived and after all the crap they've went through they've earned the happy ending they both deserved after all those scenes of angst. Oh and apparently Cynder loves Spyro so they're more then likely in love now. Only took the end of the world for the relationship to become canon.]]
* ''{{Persona 4}}'' features a literal incarnation of this trope, as most players will unexpectedly receive a bad ending after picking the wrong choices of dialogue in two different scenes. Achieving the good ending is such a {{Guide Dang It}} that beating the game actually makes you feel like you accomplished something. All of this is doubly true for the True Ending.
** Especially since the game ''actively tries to steer you away from it.''
* ''ValkyrieProfile'' is this trope embodied. Not only does the player have to go through [[GuideDangIt endless frustration]] to get to it, but in order to achieve the happy ending, the main character herself must [[spoiler:become the Lord of Creation in order to remake the worlds.]]
*''[[FateStayNight Fate/stay night]]''. Any ending that can remotely be considered "happy" is earned in gallons of [[HeroicSacrifice blood]], [[HeroicResolve sweat]], and [[TearJerker tears]]. Mostly blood and tears, actually.
* ''{{MaxPayne}} 2'' has the player literally earn the happy ending. Only by beating the game on the hardest difficulty level do you see the ending where Mona Sax lives.
* ''{{Drakengard}}'' ''2'', [[WorldHalfEmpty surprisingly enough]], pulls this off in its third ending. After grueling fights against CosmicHorror, a lot of sacrifice, and torrents of blood having been spilled, the game ends with [[spoiler: both the dragons and [[GodIsEvil the Gods]] fading away, and leaving mankind free to pursue their own destiny. Meaning that Nowe and Manah will get the normal lives they longed for, Eris won't have to sacrifice her future and become the new BarrierMaiden, and the world finally regaining a semblance of peace.]] Also, a ''literal'' use of this trope since, to achieve this ending, the player must complete the game twice at the lower difficulty settings, and then finish the game in [[HarderThanHard Extreme]] difficulty.
* In the game version of ''IHaveNoMouthAndIMustScream'', if the main characters manage to overcome their flaws and face their past (Gorrison deal with his guilt about his wife, Benny being able to show compassion for others, Ellen conquering her fears, Ted proving his love for Ellen and Nimdok atoning for his Nazi Warcrimes), this initiates a LogicBomb for the mad AI, who cannot fathom why the humans are not complete bastards. The players can then proceed to take down AM and revive the human population hibernating on the Moon.
* The ''ShadowHearts'' trilogy pretty much DEMANDS this in all three games, playing through normally, with no, or few, side trips, nets you the bad end. in fact [[spoiler: the first games Bad End is established as canon in the second]]. However, if you put the effort in, you can and WILL EarnYourHappyEnding. The second game[[spoiler:'s Good End even implies that the main character, Yuri, gets transported back in time to just shortly before the events of the first game, memories intact, meaning it's quite possible he went through those events again, and that canonically, he got his HappyEnding]].
** [[spoiler: Actually, this is canon. In Shadow Hearts 2, which doesn't happen if Shadow Hearts 1 has a good ending, Bacon performs the Emigre Manuscript's ceremony to raise the dead. In Shadow Hearts 3, upon seeing the Emigre Manuscript's ceremony performed, Roger comments that he's never seen it done before. Since, in Shadow Hearts 2, he does it ''himself''... it means that the only way this makes sense is that Shadow Hearts 2 never had to happen. Yuri got his happy ending in the end.]]
*In ''Oddworld Abe's Oddysee'', if you don't save more than half your coworkers (who you don't even know you're meant to save until halfway through, and over half of whom are in secret areas), you get [[TheBadGuyWins dropped into a meat grinder at the end by the Big Bad]]. [[NightmareFuel You get to see the bits go flying, too.]]
* If you choose the Neutral (Freedom) Ending in ''[[{{ShinMegamiTenseiNocturne}} Shin Megami Tensei: Nocturne]]'', you more or less fulfill this trope. [[spoiler: You see your teacher end the world, [[{{WhatMeasureIsANonHuman}} deal with no longer being fully human]], see your best friends being tortured and responding to that by [[{{EvilMakeover}} twisting themselves into cruel and monstrous parodies of their character flaws]], see said teacher - the only one who still somehow remained sympathetic - murdered before your eyes, perhaps almost [[{{TheEndOfTheWorldAsWeKnowIt}} destroy time and all worlds]], and finish by striking down the master of the Vortex dimension in the name of freedom.]] In the end, despite everything, you end up with your friends again, your teacher's got a positive outlook on life, and even the World's Most Epic Widow's Peak gets to go around still being The World's Most Epic Widow's Peak. Believe this troper, though; you have to ''[[{{NintendoHard}} earn it]]''.
** Perhaps not as ''happy'', but... The [[spoiler:True Demon ending is at least an ''awesome'' example. After going through all the above ''and'' a BonusLevelOfHell where Metatron himself tries to kill you, you unlock the last of your demonic potential and become a true demon, and strike down the master of the Vortex dimension for an apertizer. This destroys all of Creation, and your character then duels ''Lucifer himself'' to become his TheDragon and a general of the LegionsOfHell so you can get at the ''true'' cause of why the world was destroyed and the Vortex dimension created (before you blew it all up)... ''{{God}}''.]]
* ''{{Eversion}}''[='=]s endings. [[spoiler:The bad ending is a [[HighOctaneNightmareFuel horrifying]] subversion. After spending half the game in a world that you've turned from bright and colorful to dark and hellish, you find yourself in a World X-1-styled room with the princess. Happily ever after? NOPE! After a few seconds, the entire room everts to World X-8, the princess reveals herself to be an EldritchAbomination, and ''eats you''. The good ending [[EpilepticTrees may or may not]] be a double subversion; shortly after the room goes X-8, ''you'' turn into an EldritchAbomination yourself and become united with the also-monstrous princess.]]
* In ''{{Tsukihime}}'', Hisui's Good End, which is still rather bittersweet, and Kohaku's end. Kohaku's end gets the benefit of [[spoiler:looking like not only did this path's heroine just die, but you'll have to kill Akiha because Roa is corrupting her.]] But neither happens.
* In ''{{Clannad}}'', to obtain the True End, where [[spoiler:Nagisa and Ushio do not die]], you must obtain literally ''every other Light Orb in the game'', a.k.a. near HundredPercentCompletion of each other route. Misae's light orb took [[{{Mapi-chan}} this troper]] a few tries to obtain, when she discovered that [[spoiler:it could only be obtained when you play Tomoyo's route IMMEDIATELY after Misae's route. It's the scene at the Founders Festival, where Misae is looking for her cat, a.k.a. Shima Katsuki]].
* ''MegaManZero 4'' finally featured the human side of the RobotWar's story (showing the humans' perspective of the [[RidiculouslyHumanRobots Reploids]], which border on FantasticRacism). However, over the course of the game, the humans and Reploids finally learn to put aside their differences, creating true peace that lasted for almost two centuries. Tragically subverted, since the ones who fought so hard and so long for this peace [[HeroicSacrifice gave their lives in the process]] just so the war could finally end.
* The ending for [[NintendoWars Advance Wars:Days of Ruin]] is hopeful, light and upbeat in a DarkerAndEdgier game set AfterTheEnd. You just have to go through [[ThatOneBoss Sunrise]] to get it.
* The ending of ''{{Okami}}''. Amaterasu [[spoiler:and Waka]] finally get to [[spoiler:return to the Celestial Plain]], but not before Ammy's died once and had to be reincarneted in a statue, kick the ever-loving crap out of {{Orochi}} ''[[spoiler:three]]'' times, make most of Nippon [[GodsNeedPrayerBadly believe in her and give her]] [[ClapYourHandsIfYouBelieve 'praise']], regain all of her [[OcarinaPlaylist Celestial Brush Techniques]] and power, [[spoiler:create a {{Stable Time Loop}}, involving a double of dose of [[HelpYourselfInThePast Help Yourself In The Past/Future]]]], do various jobs here and there, beat up several [[TheDragon dragons]] ''[[spoiler:twice'', but more if you're Orochi]] and then finally [[spoiler:destroy [[ScienceIsBad Yami, God of technology]], but not before he's stolen all of Ammy's powers, and knocked Waka out for the count, leaving Ammy literally having to ''beat'' her power out of him, and kill him for good]]. [[CrowningMomentOfAwesome It's worth]] [[CrowningMomentOfHeartwarming it.]]
* This is more or less how the CelestialBureaucracy in ''GrimFandango'' works: Upon arrival at the Land of the Dead, each soul has to take a four-year-journey through the land to reach the Land of Eternal Rest, and how saintly they were in life determines how comfortably they can get there. The saintliest souls are eligible for a ticket on the Number 9 express train that shoots through the Land of the Dead in four minutes, while the biggest schmucks and sinners may have to just walk the whole trip, or even get sent in by parcel post.
* S.T.A.L.K.E.R. Shadow of Chernobyl has one of these, about 2/3s of the way through the game you get a brief text prompt telling you to backtrack to the first map. If you don't notice this, then it is impossible to get an ending where the player survives, you never learn who or where Strelok is, and the game ends without closure of any sort. Backtracking will wrap up most of the storyline's threads kind of. Hope you were checking your journal.
* ''{{Ico}}''. Ico has to lose everything first. There's a superb essay about it [[http://www.etc.cmu.edu/etcpress/node/269 here]].
*FamilyProject. Seriously, for a game where a DysfunctionJunction is the ''premise'', things turn out pretty well in the end.
* ''{{Xenogears}}''. The game starts with an unending war between two countries, and it just gets worse from there. The unbelievable [[HumansAreBastards bastardry]] of humans towards each other and the sheer power and cruelty of [[spoiler:Deus]] provide a soul-crushing and emotionally draining atmosphere, where if anything good ever happens, it is because something unimaginably bad is sure to follow. Most people die horribly or are grotesquely mutated into [[spoiler:biological parts for Deus]], resulting in a [[ApocalypseHow Class 2 Apocalypse]]. The dismal nature of the game makes the ending all the more satisfying- Fei slays [[spoiler:Deus]] and the Urobolus factor that binds humanity to it, and even [[spoiler:rescues his lover of 10,000 years after many lifetimes of being StarCrossedLovers]].
* The ''Burning Crusade'' expansion of WorldOfWarcraft definatly ended this way for the Blood Elves. [[spoiler:After having their homeland ravaged by the Scourge, becoming addicted to magic due to the Sunwell's loss, abandoned by the Alliance and betrayed by their own Prince, they finally manage to redeem themselves and cure their addiction through the combined efforts of Velen, Lady Liadren, the Shattered Sun Offensive and, of course, the player. The fact that they managed to banish Kil'Jaeden from Azeroth was icing on the cake.
* In [[AmericanMcGeesGrimm American McGee's Grimm]], Grimm seems to be a believer in this. A main reason of his hatred for LighterAndSofter Fairy Tales other than being [[TastesLikeDiabetes disgustingly saccarine]] is the fact that he believes that none of the protagonists truly deserve the happy endings since they're all either TooDumbToLive or because he sees them as {{Karma Houdini}}s. He [[{{Grimmification}} Grimmifies]] the stories so that the hypocrisy becomes much more clear or that the characters get a more "proper" ending (which in some cases allows female protagonists who go through plenty of crap like Cinderella or Mulan a chance at brutal revenge).
*''CaveStory''. The story is dark enough, with cute NPCs dying or being transformed into monsters, and the BigBad threatening to unleash said monsters on the world. But, by making [[GuideDangit the right choices]], it's possible to not just defeat the apparent BigBad, but to avert the BittersweetEnding by saving two main characters (who would otherwise die), preventing the island from crashing, and killing TheManBehindTheMan so this threat will never arise again. This requires the protagonist to [[BonusLevelOfHell storm Hell]], the hardest level in the game--so both the characters and the player have to earn the good ending.
[[/folder]]
[[folder: Webcomics]]
*''GunnerkriggCourt'', so far at least. There's lots of grim details in the background, particularly the details of Annie's ParentalAbandonment, and her extensive prior experience with {{The Grim Reaper}}s, as well as poor Robot's [[TheChewToy misfortunes]]. The main characters remain well-balanced and optimistic in spite of these, and there's nothing to suggest that this is naivety on their part.
[[/folder]]
[[folder: Web Original]]
* ''BrokenSaints'': [[spoiler: despite all the suffering they have had to go through, each of our "broken" heroes is healed in the end, the men by the power of [[TheMessiah Shandala's]] love, Shandala by the power of theirs, and the world is saved.]]
* The two main characters in ''ThereSheIs'' go through a number of tribulations before they get to their happy ending.
* Ditto with ''RubyQuest'', where the characters have much bigger problems: Mutations, monstrous abominations, [[CosmicHorror unspeakable evils from the beginning of time,]] and trying to escape from a mysterious facility [[spoiler:where they have been trapped for over a year already, with several dozen failed escape attempts]]. The main characters get the happy ending they deserve, [[spoiler:some of the others don't]].
**In addition, ''how'' the happy ending is earned in RubyQuest is quite possibly one of the most literal and unintentional examples around (think of it as having been a point-and-click adventure game, except by virtue of being roleplayed by post on an Imageboard, it was very open-ended). Ruby and Tom come across a medical cabinet with a small lock, which the players [[DungeonBypass have Tom bash open with the crowbar]]. Some tranquilizer is found inside, which they take in a syringe. A little later, they encounter, have a fight with, and eventually subdue with the tranquilizer a psychotic and suicidal [[spoiler: Stitches]]. Immediately after, it is discovered that [[spoiler: Stiches]] ''actually had the key'' they were supposed to open the medical cabinet with. Then, instead of killing him and being done with it, the players stuff him into a revival locker and leave him, but not before also slipping him a portrait with himself, Ruby, Tom, and all the other patients and staff in the facility before things went to hell. Cut to the endgame of the story. Ruby, Tom, [[spoiler: and an ''also'' unintentionally-rescued Jay]], have unlocked the escape hatch to the facility, but [[ImplacableMan Ace]] is in close pursuit. [[spoiler: Tom realizes that Ace will catch them if all three of them try to go up the hatch, as they won't be able to close it in time. Someone has to stay behind and delay Ace. After much wailing and gnashing from the players and cry of foul play, it is somehow painfully decided that Tom be the one to stay behind. Ruby and Jay make their way up the ladder, just as Ace appears in the doorway. Tom prepares himself for the inevitable outcome, but then...guess who? ''Stitches'' suddenly tackles Ace out of nowhere, and gives Tom enough time to scamble up the ladder and slam the hatch (and also causing quite a few players to fervently thank the "DeusExMachina").]] By a combination of breaking something they weren't supposed to and being incredibly merciful, the players ''literally'' earned their happy ending.
* The last chapter of ''SailorNothing'', especially the part where [[PaintingTheFourthWall the background fades to white]], is this trope distilled.
** ''SailorNothing'' is a huge {{Deconstruction}} of the MagicalGirl genre that has the main character being [[BreakTheCutie repeatedly broken]], her friends not faring much better, and the SlidingScaleOfIdealismVsCynicism generally getting cranked up all the way to the Cynicism side, [[spoiler: yet it manages to end on a happy note, with the complete defeat of [[TheHeartless the Yamiko]] and every character on the good guy's side surviving and [[IJustWantToBeNormal earning the normal lives they very much deserve]]]].
*Summed up spectacularly with Nostalgia Chick's review of Don Bluth's Thumbelina, where the despairing heroine is surprised to find her prince Cornelius alive and well - "Things are impossible! Things are... oh! Hi dead boyfriend! Thanks for coming along and proving my pessimism wrong and not making me work for that happy ending!"
* Evangelion R (Prime ending)
[[/folder]]
[[folder: Western Animation]]
* ''MoralOrel'' ends in this way, where despite the fact that the main character lives in a CrapsackWorld of hypocrisy and zealotry and having one of the worst father figures imaginable, Orel ends up growing up to raise a genuinely happy family, with his brothers becoming a fireman and a policeman, though his parents are seemingly doomed forever to misery and hatred. That and throughout the final season it's been shown that there's a few residents of Moralton that have a chance at happiness.
* ''AvatarTheLastAirbender'': [[EarthIsABattleground Century-long war?]] Check. Implacable foe, impossible odds? Check. Last, best hope for [[strike: peace]] victory is ''[[ImprobableAge twelve]]''? Check. [[HeroicSacrifice Multiple]] [[RedemptionEqualsDeath heroes]] [[DoomedHometown dead]] already? Check. Countdown to utter, utter defeat? ..oh, guess. Sounds like the sort of situation very few people walk away from alive, right? [[spoiler: Wrong. At the end of the Finale, ''all'' of the [[EverybodyLives good guys alive at the start of the finale are still here]], there are [[OfficialCouple three romantic pairs among them]], the war ended [[CosmicBalance without either side getting reduced to paste]], Zuko gets to be king, and [[RetiredBadass Iroh]] [[IJustWantToBeNormal gets his tea shop back]]. [[TearJerker Win]], [[CrowningMomentofHeartwarming win]], ''[[CrowningMomentofAwesome win]]''.]]
* After ''over seventy'' whole episodes (''over hundred and thirty'', if you count the 11-minute segments as separate episodes) of various defeats, setbacks and humiliations, ''EdEddNEddy'' ends with the titular characters being actually liked and respected by the neighborhood kids who previously detested them.
** And yes, they finally got those jawbreakers.
***Didn't they get them in THE FIRST EPISODE?
[[/folder]]
[[folder: Real Life]]
* Lots of people feel this way about the real world. If you're one of them, congratulations.
** From the viewpoint of one such Troper with this viewpoint, it's mainly a case of seeing the world as stuck firmly between cynicism and idealism; it tends towards neither extreme of the scale, instead falling in the middle. (Thusly, why people can claim the extremes- because examples of ''both'' are present in the world.) You are given nothing in life but your brains, your beliefs, and yourself... and you'd be surprised how often that is all you really need.
* Economics is often called "the Dismal Science", mainly because economists keep telling everybody that [[RobertAHeinlein there ain't no such thing as a free lunch]]. In spite of this, and in spite of their basic assumption that people are rational self-interested utility maximizers (aka [[HumansAreBastards selfish bastards]]) economists need to be a rather optimistic bunch, believing that the future will improve compared to the present.
**Adam Smith's famous Invisible Hand comment is the perfect example of this Economist attitude: An individual pursuing his own self-interest tends to also promote the good of his community as a whole, as if guided by an invisible hand. Whether or not the Invisible Hand Theory actually ''works'' [[YourMileageMayVary is another matter.]]
*** Just so long as [[StarWars General Grievous]] isn't involved.
* This is pretty much the premise of Christianity, especially the Passion story. Think about it: Jesus is rejected by his own people, tried for an extremely vaguely defined crime, condemned to death, tortured, forced to carry the instrument of his own execution while he's still bleeding from the torture, and then executed in a notoriously horrible way. But that's not the end of the story...
** However, the whole "Heaven awaits us afterward, and it is Good" aspect of Christianity can also be seen as a subversion of this trope; rather than being an example of actually EARNING your happy ending, it's more "suffer 'til you die, and you might end up in Paradise," which many non-Christians see as not dealing with death or the world; rather, it can be seen as a method of escapism, while never actually solving the problem directly. Other faiths take more pro-active measures and philosophies towards attaining happiness in this world and the next.
** "Whatever you do to the least of mine, you do to me." Poorly paraphrased yes, but still a relevant statement. Just because many people don't ''act'' this way doesn't mean the faith itself isn't oriented around the idea. If you look into the philosophy you realize that Christianity (like Judaism before it) has this as one of its most fundamental elements. Though admittedly the ''degree'' of it varies (as Christianity generally assumes better of the world than this trope [[CrapsackWorld calls]] [[WorldHalfEmpty for]]).
[[/folder]]
----
<<|EndingTropes|>>
<<|HappinessTropes|>>
<<|MoralityTropes|>>