''The Number 23'' is a 2007 American psychological thriller film directed by Creator/JoelSchumacher, starring Creator/JimCarrey, Creator/VirginiaMadsen, Danny Huston and Creator/LoganLerman.

The plot revolves around Walter Sparrow (Carrey) and his obsession with the 23 enigma, an esoteric belief that all incidents and events are directly connected to the number 23, some permutation of the number 23, or a number related to 23.

This is the second film to pair Schumacher and Carrey, the first being ''Film/BatmanForever''. This is also Carrey's first suspense thriller, and while it was derided by critics for being confusing and unengaging, it was a box office hit.

!!This film provides examples of:

* AbandonedHospital: The Nathaniel Institute.
* AmnesiacDissonance: Learning about his dark past brings [[spoiler:Walter]] close to committing suicide.
* ArcNumber: The number 23.
* AssholeVictim: [[spoiler: Laura Tollins]] was this, for driving [[spoiler: Walter]] into a homicidal rage after claiming she never loved him and mocking his father's suicide. At least, if that's what ''[[UnreliableNarrator really]]'' happened?
* BittersweetEnding: Sure, the murder mystery was solved, [[spoiler: and the man wrongfully imprisoned for it was set free.]] But [[spoiler: Walter turns himself in to the police, and is awaiting sentencing for criminal homicide.]]
-->'''Walter Sparrow:''' Maybe it's not the happiest of endings, but it's the right one. Some day [[spoiler: I'll be up for parole]], and we can go on living our lives. It's only a matter of time. Of course, time is just a counting system. Numbers with meaning attached to them...isn't it?
%%* TheCallKnowsWhereYouLive
* CrashIntoHello: Walter and Agatha first meet when he bumps into her in the street and she [[CarryingACake drops her cake]].
* DrivenToSuicide: The [[CaptainObvious Suicide Blonde]], Widow Dobkins, Walter's Father, and [[spoiler: Walter himself. Twice. (The first time, he survives his attempt; the second time, he stops because he [[CrowningMomentOfHeartwarming sees his son watching him]].)]]
* ForWantOfANail: Walter laments this at the beginning of the film: if he hadn't agreed to take his wife's cake to the holiday office party without her, the dispatcher Sybil wouldn't have drunkenly thrown herself at him; if he hadn't turned down Sybil's advances so harshly, she wouldn't have been angry at him the next day and sent him on another call just as his shift ended; if he hadn't been sent on that last call, he wouldn't have been late to meet his wife; if he hadn't been late to meet his wife, she wouldn't have had time to browse in the used bookstore where she found a copy of ''The Number 23''....
* HellHound: Ned's a fairly ordinary dog, but he still fits the "guardian" flavor of this trope to a tee.
%%* HereditaryCurse
* InterplayOfSexAndViolence: Both Laura Tollins and the fictional Fabrizia have a fetish for violence and like to roleplay with knives in the bedroom. Fabrizia even has Fingerling take her to an apartment where a woman ''killed herself'' so they can have sex.
* ItWasHereISwear: The skull Walter digs up is gone by the time he return with the Police.
* KillMeNowOrForeverStayYourHand: Agatha does this to Walter when he is convinced he will kill her in his next paroxysm.
%%* TheKillerInMe
* MeaningfulName: Several examples:
** Ned, the black and white bulldog who watches over Laura Tollin's grave, was so-named because of his habit of "guarding" the dead.[[note]] (Ned is an Old English name meaning "guardian" or "protector".)[[/note]] Also N=14+E=5+D=4=23
** [[spoiler: The hospital where Walter was rehabilitated after his suicide attempt and granted a new lease on life is the Nathaniel Institute, from the biblical name meaning "Gift of God".]]
** The doctor at the mental hospital [[spoiler: who helped rehabilitate Walter (and later went mad)]] is named "Sirius Leary", which means "Dog, Beware" (or, when reversed, "Beware the Dog") -- an obvious reference to Ned, who physically attacks Walter [[spoiler: and directs him to his past crimes]].
* NeverFoundTheBody: Laura Tollins. [[spoiler: Subverted in the movie's final act.]]
* NumberOfTheBeast: Issac French explains that the number 23 is considered evil because 2 divided by 3 results in .666...6666 etc. (which would actually be shortened to .667, if we're going to three decimal places).
* OnceMoreWithClarity: A good deal of the third act of the film is spent on replaying the events of Topsy Kretts' book as envisioned by Walter...[[spoiler: except this time using Walter's real experiences pre-amnesia.]]
** The young Fingerling seeing Mrs. Dobkins' corpse in the bed and the subsequent suicide of her killer is repeated with [[spoiler: the young Walter seeing his mother's corpse and the subsequent suicide of his father.]]
** Fingerling's entire relationship with Fabrizia, his jealousy over Dr. Miles Phoenix, and his killing Fabrizia and framing Phoenix for it is repeated with [[spoiler: Walter's relationship with Laura Tollins, his jealousy over Kyle Flinch, and his killing Laura and framing Flinch for it.]]
** The Suicide Blonde ranting over the number 23 to Fingerling and her subsequent suicide by jumping from her room is repeated with [[spoiler: Walter ranting over the number 23 to ''himself'' and his subsequent (failed) suicide by jumping from his room.]]
* OneBookAuthor: Both in- and out-of-universe: in-universe, [[spoiler:Topsy Kretts/Walter]] has written only this book; out-of-universe, the movie's failure resulted in it being Fernley Phillips' only writing credit to date.
* RedHerring: The film's third act has this in the form of a false [[TheReveal Reveal]] before the actual reveal. Walter suspects that Agatha is the book's writer and the film then replays flashbacks that seem to point out to her. Of course, for the true reveal, see TheReveal below.
* RoomFullOfCrazy: The hotel room where [[spoiler: Walter]] wrote the last chapter of the book--literally. It has a fictional counterpart in the Suicide Blonde's apartment, where she scrawled out all of her life's connections to the number 23.
** Also, [[spoiler: Walter's]] old room at the mental hospital.
* SanitySlippage: The number itself is implied to cause this, as "victims" become obsessed with the numerical patterns in their own lives and the world around them.
* SharpshooterFallacy: The entire concept of everything adding up to the number 23 (and being so significant) runs on this, but is [[JustifiedTrope justified]] in that Walter is suffering from a terrible obsession, [[TropesAreNotBad so logic and reason don't really enter the story for the sake of preserving the drama.]]
** The intro demonstrates this; all of the examples are clearly done by working backwards from what it takes to get them to 23, and they're all following completely different rules to get there.
* SueDonym: The titular book is written by "Topsy Kretts".
%%* SympatheticMurderBackstory
* TheReveal: The author who wrote the book "The Number 23" is [[spoiler: ''Walter himself.'']]
* TomatoInTheMirror: Walter Sparrow is [[spoiler: Topsy Kretts]].
* TattooedCrook: Fingerling.
%%* TitleByNumber
* WhamLine: "You wrote [the book], [[spoiler: Walter]]. '''You''' did."
* WritingAboutYourCrime: "Topsy Kretts" [[spoiler:is really Walter himself, and the suicide blonde actually represents a girl he murdered.]]