-> '''Xander:''' As long as nothing really bad happens between now and then, you'll be fine.\\
'''Buffy:''' Are you crazy? What did you say that for? Now something bad is gonna happen.\\
'''Xander:''' What do you mean? Nothing's gonna happen.\\
'''Willow:''' Not until some dummy says, "As long as nothing bad happens."\\
'''Buffy:''' It's the ultimate jinx!\\
'''Willow:''' ''What were you thinking?!'' Or were you even thinking at all?\\
'''Xander:''' You don't know... Maybe this time it'll be different...
-->--''Series/BuffyTheVampireSlayer'', "School Hard"

The inevitable question asked when another character's rash plan or reckless behavior results in disaster or near-disaster. Asked upon discovery of the mayhem caused by said recklessness, or after picking up the pieces, and is usually asked by their superior, a concerned parent, or simply a friend or ally.

Popular answers include "[[IdiotBall I wasn't]]!", "[[IndyPloy I don't know]]!", "ItSeemedLikeAGoodIdeaAtTheTime!", and "IDidWhatIHadToDo." If someone answers "ForScience", it's a good bet that he's either a lost cause or a ''very'' MadScientist.

Can follow a MyGodWhatHaveIDone for a KickTheDog moment. A DealWithTheDevil is almost always followed by this, [[ViewerStockPhrases if only from the audience]]. Not to be confused with WhatTheHellHero, which has less to do with recklessness and more to do with {{kick|TheDog}}ing or [[ShootTheDog shooting the dog]], though it can overlap. If someone is asking ''himself'' (or herself) this, it's DidntThinkThisThrough.

Compare FlatWhat, WhatAnIdiot, WhatTheHellHero and WhatDidYouExpectWhenYouNamedIt -- where this either gets said verbatim as an addendum or is simply loomingly implicit.


[[folder: Anime and Manga ]]
* In ''Manga/{{Saiyuki}}'''s "Kami-sama" arc, Sanzo attempts to break a barrier that he thought was created by will power by shooting at it, on the "rationale" that the bullets are infused with ''his'' will power, and thus the two will cancel out...yeah, no. Instead, the bullets ricochet back and everyone dives for cover, with Hakkai yelling, "What are you DOING, Sanzo??"
* These exact words are used in ''Manga/RanmaOneHalf'' when the Tendos, particularly [[BewareTheNiceOnes Kasumi]], [[WhatTheHellHero call Genma out]] for taking his son to the cursed training ground of Jusenkyo. To the annoyance of some readers, though, this is only in the very first chapter of the manga, and nobody so much as raises an eyebrow when Genma later reveals he taught Ranma the [[HarmfulToMinors Nekoken]] because he was too lazy to read the next page, [[NowYouTellMe which warned]] that the technique [[SanityHasAdvantages invariably drove trainees insane]] and was [[UselessUsefulSpell too stupid to use, anyway]]. [[AlternativeCharacterInterpretation Although]], it's entirely possible that people stopped asking this of him because they realized [[WhatAnIdiot it just wouldn't do any damned good.]]
* Yuna Roma Seiran gets this from the ORB military officers in ''Anime/MobileSuitGundamSEEDDestiny'', for hiding war criminal Lord Djibril in ORB and denying it, then acting all surprised when ZAFT sees through his obvious lies and invades in full force. Apparently, he thought that since ORB had successfully hidden [[CoolShip the Archangel]] from them two years ago, but not even in anime do politics bend to the RuleOfCool...
* In ''LightNovel/FullMetalPanic'', Kaname tends to yell this whenever Sousuke does something insane. More often than not, he proceeds to explain the ridiculously complicated terrorist plot that he foiled to justify his actions. Sometimes the plot is even real.

[[folder: Comic Books ]]
* From the ''Franchise/StarWars: Clone Wars'' comics, during the battle of Kamino:
-->'''Commander Merai''': What were they ''thinking'', defending a [[SingleBiomePlanet water world]] with ships that can't submerge?

[[folder: Fanfiction]]
* In an [[http://imagineeridan.tumblr.com/post/77899645353/imagine-eridan-watching-the-little-mermaid-because untitled]] ''Webcomic/{{Homestuck}}'' fic, this is Eridan's reaction to finding out that ''Disney/TheLittleMermaid'' is Feferi's favourite movie. [[note]]They live on an alien world where the finned, sea-dwelling aristocracy rule those on land with an iron fist. Because Eridan is part of that aristocracy, he is ''horrified'' by the thought that a mermaid would give up her gills to live with a 'peasant'.[[/note]]
* In ''Fanfic/OpeningDangerousGates'', upon learning that Lucy has no idea what the Arrancar are, Grimmjow points out the foolishness of summoning something you know nothing about.
* In the first story of the ''FanFic/FacingTheFutureSeries'', Danny says this to Sam after he learned she duplicated his accident to get herself ghost powers. However, Sam counters that it was her choice to make.
* In ''Fanfic/FrozenHearts'', [[{{Disney/Frozen}} Elsa asks this of Anna]] after she [[spoiler:introduces her to a disguised, albeit repentant, Hans]], and gets upset enough to temporarily [[PowerIncontinence lose control]] of [[AnIcePerson her powers]].
* In ''FanFic/TimeAndAgain'', Naruto quotes the trope verbatim when, after having it finally [[ObliviousToLove spelled out for him]] that Hinata is in love with him, he realises that [[spoiler:in the BadFuture [[PeggySue he came back from]] she'd been in love with him all along as well, but had never told him, even when he would have happily married her himself to save her from the loveless marriage to [[DomesticAbuse an abusive asshole]] that had been [[ArrangedMarriage arranged for her]]]].
* In ''Fanfic/MegaManStarNetwork'', Chaud asks [[LeeroyJenkins Lan]] this when he went to Wilshire Hills to go after Cain without contacting him.

[[folder:Films -- Animated]]
* ''WesternAnimation/HappyFeet'': Gloria asks a version of this after she discovers that him singing to her at the mating season is really him lip-synching and letting someone else sing (Mumble can't sing).
-->'''Gloria''': "Mumble, what could you possibly be thinking?"
-->'''Mumble''': "I...I don't know what else to do!"
* In the feature film adaptation of Shane Acker's ''WesternAnimation/{{Nine}}'', 7 asks 9 this [[spoiler:after 9 put the talisman into the machine, causing it to wake up and kill 2.]]
* ''Disney/BigHero6'' has this part after Hiro's big brother Tadashi helps him get out of a nasty incident.
-->'''Tadashi''': Are you okay?
-->'''Hiro''': Yeah.
-->'''Tadashi''': ''Then what were you thinking, you knucklehead?!''

[[folder:Films -- Live-Action]]
* In ''Film/TheGoonies'', Stef barks this at Andy when she hits the wrong notes on the musical lock, causing part of the floor to collapse.
-->'''Stef:''' What were you thinking?\\
'''Andy:''' I hit the wrong note! I'm not [[https://en.wikipedia.org/wiki/Liberace Liberace]], you know!
* ''Film/TheFastAndTheFurious'': Dominic Toretto asks this of Jesse after he races Johnny Tran for pink slips.
* The captain asks ''Film/CoolHandLuke'' what he thought defacing parking meters would get him. Luke replies that, [[AlcoholInducedIdiocy being drunk at the time, he probably wasn't thinking.]]
* In ''[[Film/OhGod Oh God! You Devil]]'', when Bobby literally finds God near the end of the film, the Almighty agrees to help him out of the predicament he's in, but not without giving Bobby a (for God) gentle rebuke.
-->'''God:''' "You made a [[DealWithTheDevil deal with the Devil]]. How dumb could you be?"
* Reverend Mother asks it word for word in ''Film/SisterAct'' in response to Deloris/Mary Clarence turning the choir into a girl group act.

[[folder: Literature ]]
* Zoe Heller's novel ''Literature/NotesOnAScandal'' (later made into a [[Film/NotesOnAScandal film]] of the same name) was released under the (patently absurd, given the novel's tone) title of ''What Was She Thinking? Notes On a Scandal'' in the US.
* In ''Literature/WarriorCats'': ''A Vision Of Shadows'', after Onestar explains the connection between him and [[BigBad Darktail]], the she-cats seem to get the gist of where his story's going.
-->'''Rowanstar''': What was the mouse-brain thinking?
-->'''Mistystar''': Obviously, he ''wasn't'' thinking.

[[folder: Live Action TV ]]
* [[TurnInYourBadge Elliot Stabler]] frequently hears this on ''Series/LawAndOrderSpecialVictimsUnit'': when he drove a paranoid-schizophrenic to a breakdown to get information, when he tried to convince the parents of a girl beaten up by his friend's son not to testify, when he made his daughter's DUI disappear, the infamous "What possessed you to tell the shrink in your psych evaluation that you fantasized about killing suspects?!" Or the time when he told the father of a murdered girl that the Suspect might [[KarmaHoudini get away with it]]...
** Captain Cragen also said this to Olivia Benson when she gave a reporter confidential information about an investigation involving Anthrax.
** Fin Tutuola heard this from John Munch and his ex-wife in the episode when he handled a case against his son poorly.
* [[Series/LawAndOrder Adam Schiff]] does this to Jack [=McCoy=] when he cuts a very favorable deal for a mob hit man in "House Counsel" because he wants to beat the mobster's attorney, who happens to be an intense rival of [=McCoy's=] from law school.
-->'''Schiff:''' What are we running here, Benny's Bargain Basement? Today's special - cop to four murders, and serve only five years.
-->'''[=McCoy=]:''' I didn't think-
-->'''Schiff:''' You didn't think because the blood was too busy rushing from your brain to somewhere south of the border!
* A lot of people screamed this at Mohinder from ''Series/{{Heroes}}'' when he [[spoiler: injected himself with a SuperSerum he'd invented mere hours ago from studying a woman who cries death, while outside in a bad part of town. And also wanted to ''distribute it to the general public'', despite the fact that a remarkable proportion of those with powers kill people a lot or even try to destroy the world]].
* {{Lampshade|Hanging}}d In''Series/AmericasFunniestHomeVideos'' during the Daisy Fuentes season, where she gives a little speech about the three primary audience reactions: "hahahaha", "[[ShareTheMalePain owwwww...]]" and "what were they thinking?"
%% Zero content example: * ''Series/DoctorPhil'', anyone?
* Used in ''Series/BuffyTheVampireSlayer'', see the page quote.
* A sad example occurs in ''Series/CallTheMidwife'': after several attacks on women in the neighborhood, the midwives are told to travel in groups. Sister Mary Cynthia is separated from her partner and tries to walk home alone. After she's jumped, a heartbroken Sister Julienne asks this trope.
* Used verbatim in ''Series/{{FlashForward|2009}}'', regarding Mark Benford's [[WhatAnIdiot actions]] in the last episode.
* Used in an episode of ''Series/EverybodyHatesChris'', in which Julius is laid off and has to take care of the house, cooking, and cleaning while Rochelle tries to find a job. After being insulted by Rochelle for most of the episode, Julius makes the mistake of saying that taking care of the house, which Rochelle usually does, isn't that hard. Cue Rochelle, who is known for cursing people out, launching a positively ''horrifying'' hour-long tirade that had Julius cowering in the corner, ending with Rochelle yelling "HAVE YOU ''LOST'' YOUR MIND!??!"
* Used in ''Series/TheLeagueOfGentlemen'' when a [[TooDumbToLive minor member of a]] [[CannibalClan gentleman's club]] of... [[MacGuffin purveyors of Special Stuff]] (which makes even [[ImAHumanitarian human flesh]] seem upstanding and moral) run by [[TheButcher Hilary Briss]] decides to bring his wife to a secret meeting:
--> '''Briss''' Right... now we’re all finally convened. As my special customers, you’re no doubt aw…
--> Maurice's wife enters
--> '''Eunice''' Hiya, I was just parking the car.
--> '''Briss''' Right, Eunice! An unexpected pleasure! Sam, would you like to get Eunice a drink?... Maurice,…do you have a moment?
--> Briss leads him to one side
--> '''Briss''' Are you out of your [[PrecisionFStrike fucking]] mind?
* Pops up in ''Series/MysteryScienceTheater3000'' on occasion, such as Joel to Crow for letting [[EvilTwin Timmy]] on board, or (much later) Crow to Mike after he's [[MikeNelsonDestroyerOfWorlds just blown us his third planet]].
* Jay Leno famously asked Hugh Grant after the latter's [[NoSuchThingAsBadPublicity sex scandal]]: "What the ''hell'' were you thinking?" Creator/DenisLeary said the same thing about Marv Albert's scandal in his stand-up special, ''Lock and Load.''
* Late in the ''Band of Brothers'' miniseries, Easy Company passes some surrendering Germans traveling in the other direction, troops marching and officers on wagons. Webster leans out of a troop transport and starts berating them: "You stupid bastards, look at you! You have ''horses''! ''What were you thinking?!''"
** For added irony, they are on the autobahn. The Americans in trucks on the road, the Germans walking the other way in the median.
* Parodied by Norm [=MacDonald=] during a ''Series/SaturdayNightLive'' "Weekend Update" segment:
--> "Stephen J. Hawkings, the renowned astrophysicist, regarded as Albert Einstein's intellectual successor, conceded defeat this week in a wager he made six years ago with two professors of the California Institute of Technology. Hawkings incorrectly bet against the existence of naked singularities: a mathematical point in a black hole where space and time are infinitely distorted, where matter is infinitely dense and where the rules of relavistic physics break down. With all due respect to Mr. Hawkings: what the hell were you thinking? I would have taken that bet, made a quick 20 bucks!"
** And in another:
--> "On Wednesday, world chess champion Gary Kasparov tied Deep Blue, the IBM supercomputer that can examine two hundred million positions per second, in the fourth game of their six game series. Earlier in the week, Kasparov admitted he made a catastrophic blunder in game two when he failed to force a draw by moving rook to e8, opting instead for a Caro Kann defense that soon transposed into a Pribyl defense which, after Deep Blue moved bishop to e7, gave him the advantage with his ninth position. With all due respect to Mr. Kasparov ... What the hell were you thinking?"
* ''Series/{{ER}}''. Carol to Doug when he shows up at her apartment drunk, uninvited and unannounced, disrupting her romantic evening with her boyfriend.
* In the pilot episode of ''Series/CornerGas'', Oscar does this when he sees Brent do some changes to the gas station, namely the introduction of video rentals. Oscar does not take this well.
-->'''Oscar:''' What, are you in show business now? The gas business not good enough for you? You've gotta be [[TheEdSullivanShow Ed Sullivan]]? (''imitates Ed Sullivan'') "We've got a great shoooo! We've got a really big shoooo!" What the hell are you thinking?\\
'''Brent:''' [[NonSequiturDistraction I'm thinking your Ed Sullivan needs work]].

[[folder: Professional Wrestling ]]
* Comes up quite a lot in Wrestling/{{WWE}}, either from skits backstage after a loss (or near-loss) because of a tag team partner, or when a commenter wonders what a high-flyer was thinking after attempting a high risk move successfully (or unsuccessfully) and losing the match.
* {{Wrestling/Kane}} buried Wrestling/TheUndertaker...[[DeathIsCheap again]]. He decided to hold a funeral in respect of him...and then Wrestling/AlbertoDelRio interrupted. Now, given that Alberto had only been on Smackdown for a few months, and Kane is a veteran who ''just took out The Undertaker'', and that Alberto interrupted his "funeral" just to challenge Kane, the audience, Kane, and pretty much anyone else who may have been watching all exclaimed...
** ...The funny thing is, Alberto then proceeded to [[OhCrap slap Undertaker's urn]] from Wrestling/PaulBearer's hand, dodge Kane's punch and ''[[DidYouJustPunchOutCthulhu kick him across the face.]]''
* Some fans exclaim this when a promotion has a good angle or rivalry going and then proceeds to screw it up somewhere along the line. WWE tends to get this ''a lot''. For example, dropping the US Title rematch of [[Wrestling/BryanDanielson Daniel Bryan]] vs Wrestling/{{Sheamus}} from Wrestlemania 27, considering that they're two of WWE's most consistent workers and could have put on an awesome match.

[[folder: Music ]]
* 311 fits with "What was I Thinking", a somewhat heavy, short, and repetitive song where the singer is apparently in disbelief in something he said.
* Folk singer Christine Lavin's song "What Was I Thinking", originally written in the late 1990s, features such examples as a poor choice of formal dress, hair style, and [[RippedFromTheHeadlines poor choice of White House intern]].
* "What Were You Thinking" by CountryMusic group Little Texas, a breakup song:
-->What were you thinkin'\\
When you turned your back and walked away\\
Who do you think you're leavin'\\
Did you think I'd let it end this way\\
What were you thinkin'?

[[folder: Newspaper Comics ]]
* ''ComicStrip/{{Zits}}'' has Mom convey an expression that says this phrase without using words to react to Jeremy's antics. Likely she doesn't say it because Jeremy will likely react with some quip.
-->'''Mom:''' What were you thinking!\\
'''Jeremy:''' Everything's cause-and-effect with you, isn't it.

[[folder: Video Games ]]
* Take an RPG, any RPG, and one character will inevitably say this to another. And most likely, the player was thinking about [[StupidityIsTheOnlyOption why they had to do that to continue.]]
* In ''VisualNovel/FateStayNight'', Shirou gets this a lot, because what he does tends to get him disemboweled or otherwise grievously harmed while the person he was helping probably would have been okay, or whoever he was trying to save was clearly beyond help. Unusually for this trope, Shirou fully realizes that what he's doing is mind-bogglingly stupid ''even as he's doing it'', [[HonorBeforeReason but he's so dependent on his "save everyone" philosophy that he refuses to compromise it in any way]], [[DeathSeeker even if it means his own life.]]
* In ''VideoGame/MaxPayne 3'', Max thinks about asking this of Giovanna and [[spoiler: the now deceased]] Marcello, but stops and reminds himself that his long list of failures gives him no right to criticise.
* Lance Vance says this in ''VideoGame/GrandTheftAutoViceCity'' after a lackey's failed attempt to blow up a coffee shop leaves behind a veritable OrgyOfEvidence.

[[folder: Webcomics ]]
* [[http://explosm.net/comics/1582/ This]] ''Webcomic/CyanideAndHappiness'' comic.
* [[Webcomic/{{Homestuck}} Sollux:]] [[http://www.mspaintadventures.com/?s=6&p=003978 Fling stars specibus-ward.]]
* In ''Webcomic/BobAndGeorge'', [[http://www.bobandgeorge.com/archives/000803c you built dangerous robots and let the bad guy take them to conquer the world.]] Followed by the {{Stock Phrase|s}}.

[[folder: Web Original ]]
* "What were they ''thinking''!?" is one of WebVideo/TheAngryVideoGameNerd's many {{catchphrase}}s, used for an asinine flaw with a bad game.
* Mike Mozart of WebVideo/JeepersMedia uses this catchphrase when he comes across a toy with a... suggestive design flaw.
* There is actually an entire blog dedicated to asking this question about old comics. It's even titled [[http://luchins.com/wwtt/ What Were They Thinking?]]
* Some editors in [[Wiki/TVTropes This Wiki]] tend to use this at times as a reaction… and {{Pothole}} it to this very page.
* During WebVideo/TheCinemaSnob's crossover with WebVideo/{{Phelous}}[[note]]Neither has brought anything to review, so Brad is looking at a clothes iron held by Phelan[[/note]]:
-->'''Phelous:''' Um...clothes...wrinkly...\\
'''Cinema Snob:''' Doesn't look to terribly b-\\
''He reaches out and touches the plugged in iron''\\
'''Cinema Snob:''' OW! [[AtomicFBomb FFFUCK!]]\\
'''Phelous:''' ...did you think would happen?

[[folder: Western Animation ]]
* Spoofed in the ''WesternAnimation/EdEddNEddy'' episode "Cry Ed", where, after Ed drops a ''house'' on Eddy in response to Eddy's scheme to get himself injured and gain sympathy, the following exchange occurs:
-->'''Edd''': Ed! What in heaven's name were you ''thinking''?!\\
'''Ed''': Absolutely nothing, Double-Dee.
* ''WesternAnimation/AvatarTheLastAirbender'': Zuko frequently hears this from his uncle: "Of all the foolish things you've done in your sixteen years, Prince Zuko, this is the most foolish!", "You never think these things through!" In response to short-sighted things such as when he went through a great deal of life-threatening dangers to get the Avatar and would have died if Aang's friends hadn't come and decided to SaveTheVillain.
* ''WesternAnimation/TheSimpsons''
** Parodied in one episode:
--->'''Marge:''' This is the worst thing you've ever done!\\
'''Homer:''' You've said that so often the words have lost all meaning.
** Apu gets an even more spectacular one:
--->'''Skinner:''' Now I... I finally have time to do what I've always wanted: write the great American novel. Mine is about [[Film/JurassicPark a futuristic amusement park where dinosaurs are brought to life through advanced cloning techniques.]] I call it "[[ABoyAndHisX Billy and the Cloneasaurus]]."\\
'''Apu:''' Oh, you have got to be kidding sir. First you think of an idea that has already been done. Then you give it [[AtrociousAlias a title that nobody could possibly like]]. Didn't you think this through... (timeskip fade) ... it was on the bestseller list for eighteen months! Every magazine cover had... (timeskip fade) ... one of the most popular movies of all time, sir! ''What were you thinking?!'' (pause) I mean, thank you, come again.
** In "[[Recap/TheSimpsonsS12E6TheComputerWoreMenaceShoes The Computer Wore Menace Shoes]]" Homer's stories land him on an island. An anti-escape orb tries to stop him from leaving but Homer simply pops it with a fork.
--->'''Number 2''': Why did you think a big balloon would stop people?\\
'''Scientist''': Shut up! That's why!
* ''WesternAnimation/FostersHomeForImaginaryFriends'', "Mac Daddy": Bloo says this about Mac having apparently conjured up "Cheese". Mac's response: "Exactly, I wasn't thinking."
** "World Wide Wabbit" has Frankie ask this to Bloo when he starts a website based on Herriman's embarrassing "funny bunny" video that got ''20 million hits.''
-->'''Bloo:''' I just thought it was funny.
* ''WesternAnimation/TheSpectacularSpiderMan'''s Norman Osborn solidifies his GenreSavvy credentials by asking [[spoiler: his son Harry this when he learned he had been drinking the Green Goblin serum.]]
* ''Franchise/{{Transformers}}''
** ''WesternAnimation/TransformersAnimated'': Megatron kidnaps [[GeniusDitz Bulkhead]] to complete his space bridge, and Bulkhead is so sick of people assuming he can't do anything that he makes it work. When Professor Sumdac calls him on this, Bulkhead points out that Sumdac was the guy who ''rebuilt Megatron'' (although he had no idea about the evil tyrant thing).
** This line often pops up verbatim in ''WesternAnimation/TransformersPrime''. Miko nearly got herself (and others) killed several time in the series premiere alone. Her friend Jack said the line word for word each time, until he got tired of repeating himself so much.
* In ''WesternAnimation/DonkeyKongCountry'', Cranky Kong asks this of Donkey Kong when he learns that DK has given the [[MacGuffin Crystal Coconut]] to [[BigBad King K. Rool]], being told to give up everything to know everything;
-->'''DK:''' I wanted to know all the secrets...
-->'''Cranky:''' So you gave the Coconut away to King K. Rool?! What were you thinking?!
* In ''WesternAnimation/JusticeLeague'', Hawkgirl chews out Fire for dropping Flash into the sea after Flash told her to do it so she could help Hawkgirl, reminding Fire that Flash can't fly. Fire feebly responds that she figured she could trust a founding member of the Justice League to have a plan, not knowing that Flash didn't have one. Fortunately, Flash was able to think of something in the nick of time. Hawkgirl immediately switched targets to Flash and [[AngerBornOfWorry furiously ordered him to never scare her like that again.]]
** In "Doomsday Sanctum", Amanda Waller asks this of General Eiling when she learns he launched a [[DisproportionateRetribution Kryptonite-tipped nuclear warhead]] at the inhabited island that Superman and Doomsday were fighting on behind her back.

[[folder: RealLife]]
* A tattoo-removal parlor in Denver plays with this trope. Its named ''What Were You Inking?''


[[TVTropesWillRuinYourLife You Let TV Tropes Ruin Your Life]]? '''''[[SelfDemonstratingArticle What Were You Thinking?!!!!!!]]'''''