Whenever a character becomes upset at another character in a comedy, they'll usually lock themselves in the bathroom. Alternately, a character may lock themselves in the bathroom while being pursued to "escape" from their pursuers. The other characters will usually try [[DiscussionThroughTheDoor negotiating with them to convince them to come out]]. Things usually get interesting if another character needs to use the bathroom.
In RealLife, the latter case is unlikely to offer the pursuee any protection depending on the reason he's being chased. Bathroom doors aren't meant to be much of a physical barrier and can be broken down with very little force. But on TV, the bathroom door is an impenetrable barricade. Once that door is closed, it can only be opened from the inside.
In a less dire case, such as a child having a tantrum, an effective solution would be to leave the upset individual alone and they'll get bored and come out eventually. Opening the door with an [[SkeletonKeyCard expired credit or gift card]] could also work if a more immediate solution is desired. But banging loudly on the door and shouting is way more fun!
[[folder: Anime/Manga ]]
* In a chapter of the ''KeroroGunsou'' manga, Keroro locks himself in the toilet to escape the wrath of Natsumi for messing with her favorite shirt.
[[folder: Live Action TV ]]
* In ''ThreesCompany'', Jack's date locks herself in the bathroom while Jack is having a food critic over for dinner. Mr. Furley, the landlord, arrives, announces himself as the manager of the building and demands that she open the door. When she refuses, Mr. Furley attempts to unlock the door with his [[SkeletonKeyCard credit card]], which she takes when he pushes it through the crack.
[[folder: Films ]]
* ''TheIronGiant'': Hogarth hides the giant's lost hand in the bathroom from his mother and Kent. After he gets it out the window, he pretends to be in the toilet when Mom and Kent force open the door.
* In ''Film/TheRoom'', Johnny locks himself in the bathroom after his birthday party when he discovers his girlfriend and best friend have been having an affair.
* In NeilSimon's ''PlazaSuite'', a bride with cold feet locks herself in the hotel bathroom on her wedding day.
* In ''The Kid, TheMusical'' of the book by Dan Savage, the song "Terry..." is an attempt to coax Terry out of the bathroom after a fight.
* In a cross between this and LockedInARoom, in ''CantHardlyWait'' Kenny (SethGreen) and Denise (Lauren Ambrose) lock themselves in the upstairs bathroom...and can't get out because the door's broken.
* ''Film/TheShining'': Wendy locks herself in the bathroom to hide from the now (literally!) AxCrazy Jack. The lock holds. The door doesn't.
[[folder: Literature ]]
* In the Literature/VorkosiganSaga novel ''Komarr'', Nikki locks himself in the bathroom and refuses to go to school the morning after he learns that he's a mutant; Miles ends up talking him out.
[[folder: Newspaper Comics ]]
* In one ''CalvinAndHobbes'' strip, Calvin takes Rosalyn's science notes when she is babysitting him and locks himself in the bathroom with them, threatening to flush them down the toilet. [[spoiler:Rosalyn ignores Calvin for a while and, thinking she has gone to call the fire department to axe open the door, he comes out to see the fire trucks.]]
* Lizzie locked herself in the bathroom once in ''ForBetterOrForWorse'' when she was very young.
[[folder: Western Animation ]]
* In one episode of ''TheAmazingWorldOfGumball'', Gumball and Darwin literally get locked in the school bathroom. They decide to tell each other a secret they'd been keeping, but they're rescued by the janitor before Dawin can tell his. Gumball spends the rest of the episode being driven crazy by not knowing the secret, until Darwin tells him that he was only going to tell him because it looked like they were going to die. So, Gumball locks them in the bathroom again, only to find out that the secret Darwin had been keeping was that he didn't like some food Gumball made. They get out this time by flushing themselves down the toilet, arguing the whole way, finally ending by angrily yelling that they love each other.