[[caption-width-right:315:Two bits!]]

Probably the most infamous seven beats of music in the modern world, or at least high on the list, this five-and-two lick appears everywhere. In music, it's a sting to end a piece; in other media, it appears in a joke and/or as a recognition signature, usually a knock--the first person taps out "shave-and-a-hair-cut," and waits for the "two bits" response.[[note]]"Two bits" is old American slang for 25 cents, dating from the time of the Spanish Milled Dollar, which was worth 8 Spanish Reals -- one Real, or "bit", was an eighth of a dollar. This was why pirates called them Pieces of Eight. Incidentally, good luck finding a barber that gives a shave and a haircut for 25 cents these days, and good luck, too, trying to incorporate inflation into a two-knock beat (ten bucks, maybe?)[[/note]]

While the rhythm is flexible, and the words change, it's always to a similar tune, though some different versions of it exist. Illustrated is actually a variation of the original tune, with a flattened sixth. (A flat instead of an A). Another common variation is to have an additional faster note between the "and" and "a" part of the melody, usually an augmented fourth. (which would be an F# in the illustrated example)

For an equally ubiquitous song intro, see the MinskyPickup.



[[folder: Advertising]]
* A '50s Swedish ad jingle for a cough drop. ''"Hälsan för halsen, Bronsol."'' "Health for the throat, Bronsol."
* In the late 1970s/early 1980s, VW advertising in the US used the tagline "Volkswagen Does It Again" set to this beat.
* A 1991 British advert for an anti-rust coating called Hammerite used a [[RepurposedPopSong repurposed]] version of the [[{{Vaudeville}} music hall]] song "Any Old Iron", which ended with "Stick it on yer drainpipes, all right!"

[[folder: Anime & Manga]]
* In [[http://www.youtube.com/watch?v=M27yK34I2d4 "Is It A Break?"]] from the ''Manga/AzumangaDaioh'' soundtrack, the "shave and a haircut" melody can be heard at about 55 seconds in.
* Occurs as a RecurringRiff in the OP of ''Anime/SpacePatrolLuluco'' (the "two bits" can only be heard in the short version of the song).

[[folder:Comic Books]]
* When [[http://tvtropes.org/pmwiki/pmwiki.php/Comicbook/Loki Loki]] stole the [[TheArchmage Sorcerer Supreme]] mantle from ComicBook/DoctorStrange, he drove himself nuts trying to find the key to the latter's locked vault. Turns out, he just needed to knock on it to this rhythm. Loki was not impressed ("Oh, you unbelievable hack...")

* Used in classic style in ''Film/WhoFramedRogerRabbit?'', complete with the demonstration that an animated character ''must,'' simply ''[[RuleOfFunny must]]'', [[ComeOutComeOutWhereverYouAre complete the line]] if "two bits" is omitted.
* Several ''Film/TheThreeStooges'' short subject films have them. Usually a stooge (usually [[TooDumbToLive Curly]]) would tap something (usually a wall) and get a response from whatever is on the other side ([[RuleOfThree usually some kind of monster]]). They would mirror it perfectly until the "shave and a haircut" part was tapped out. A delay, a "nyuk nyuk", a "two bits" response, and you know the rest.
* ''Film/AceVentura'' used this in the AnimatedAdaptation: He suspects he's being followed and does the "Shave and Haircut" on his cat, since the other cat responded with the two bits, he knows he's being followed.
* Del Griffith clears his throat to this tune in ''Film/PlanesTrainsAndAutomobiles''.
* Used in ''Film/FerrisBuellersDayOff'' when a florist delivers flowers to Ferris's house, where Mr. Rooney is. The florist honks the "shave and a haircut" but. Mr. Rooney [[FlippingTheBird flips the bird]] in lieu of the 'two bits'.
* This tune shows up in ''Film/YouveGotMail'' at the end of the scene where Joe and Kathleen meet (physically) for the first time.
* In the scene in ''Film/ForrestGump'' where Forrest goes on ''The Dick Cavett Show'', Forrest has recently played ping-pong in China. As Forrest enters the studio, the (in-movie) band plays a jingle starting with an asian-sounding tune and ending with Shave and a haircut.
* In a scene in ''Film/SpyKids'', Juni accidentally handcuffs himself to a metal lunchbox. He walks away from Carmen, trying to shake it off, and the soundtrack drum plays "Shave and a Haircut". Juni responds with "two bits" by smashing the lunchbox into the wall, and the lunchbox rebounds and slams into his head.
* Used in ''Film/WhatsEatingGilbertGrape'', when Gilbert has to lure Arnie down from the water tower: "Match in the gas tank, boom boom!"
* TheMovie of ''Theatre/OnTheTown'' has the main characters hiding under a street vendor's stand while being chased by police. One of them sticks out a sign saying, "Shave and a Haircut--75¢,"[[note]]this would be SIX bits, which still fits the rhythm[[/note]] and the familiar snippet is heard.
* In ''Film/TheBreakfastClub'', Vernon goes into the library to investigate the commotion caused by Bender falling through the ceiling of the bathroom; unknown to him, Bender is hiding under a table at the moment. Bender starts to sit up but bonks his head on the table, and Andrew nearby quickly raps the "and a haircut" part of the beat; Bender fist-beats "two bits" back.
* In ''Disney/{{Frozen}}'', "Do You Want to Build a Snowman?" shows Anna knocking on Elsa's door with the 'shave and a haircut' rhythm.
* ''Film/KingsmanTheSecretService'': Lancelot uses this knock at the hideout where professor Arnold is locked. Perhaps wanting to appear inconspicuous.

* Known on ''Literature/{{Discworld}}'' as "Shave and a haircut, no legs" being the jingle of the Guild of Barber Surgeons.
** Used as a secret knock ("The [[strike:Hairdressers]] Barber-Surgeon's Knock") in ''[[Literature/{{Discworld}} Making Money]]''.
** And naturally, at the start of the Music With Rocks In story ''Discworld/SoulMusic'', "Shave and a haircut, two pence" is the very first thing the drummer plays.
--->'''Lias''': Shave and haircut good deal for two pence.
* According to John [=McCain=]'s autobiography, Vietnamese people are unfamiliar with this ditty, and would tap back "shave and a haircut" again, so he and other American [=POWs=] would use it as a TrustPassword to hail each other through walls.
* Shows up in a couple of ''Literature/TheDresdenFiles'' novels. The first time it appears, Harry uses the words "six bits!" as the punchline - perhaps he learned of the gag from the Michelle Shocked example below in Music? Regardless, someone must have corrected him, as in a later book he uses the more common "two bits" version.
* ''Ask Your Mama: 12 Moods for Jazz'' by Creator/LangstonHughes:
-->The musical figurine indicated after each "Ask your mama" line may incorporate the impudent little melody of the old break, "Shave and a haircut, fifteen cents."

[[folder: Live-Action TV]]
* Most Muppet sketches on ''Series/SesameStreet'' have these.
** The ''Series/MuppetsTonight'' version of the "Mana-mana" sketch (where the pink... ''things'' have been appearing whenever Kermit says "phenomena") ends with Sandra Bullock's psychiatrist character saying "you should see what happens whenever I say "Shave and a haircut"... Cue a giant furry monster appearing out of nowhere, lounged across her desk: [[http://www.youtube.com/watch?v=h5Mc55P1i9g "Two bits!"]]
* ''Radio/OurMissBrooks'': Walter Denton usually rings the bell at Mrs. Davis', but a few times he knocks to the tune of Shave and a Haircut.
* A non-humorous, punny example was used on an episode of ''Series/TalesFromTheCrypt'': after the Cryptkeeper, dressed as a barber, snips someone's ear off, we hear the victim scream. The Cryptkeeper then holds up the severed ear, sings this and laughs.
* Mexican viewers are usually amused by its use on American TV, because the Shave and a Haircut tune in Mexico is usually sung with the phrase "¡Chinga tu madre, cabrón!", which roughly means "Go fuck your mother, asshole!".
** This has turned into an American UrbanLegend which says that if you honk the tune on your horn in a Mexican neighborhood, you'll likely be shot dead.
* Argentinian comic Carlos "Carlitos" Balá had this in his TV sketches as his signature greeting or knocking, using it each time he could. The first part, if not used for knocking, would be vocalized by him as "pa-pa-ra-ra-pa", and a chorus of childrens' voices would be heard responding with his last name: "Ba-lá!".
* During Creator/JohnnyCarson's hosting of ''Series/TheTonightShow'', the band would frequently end the opening theme with "Shave and a Haircut".
* On ''Series/{{Scrubs}}'', J.D. visits Dr. Cox at home and knocks "shave and a haircut" on his door. Cox, exasperated, whips it open during the pause. J.D.: "Two bits."
* On ''Series/GhostHunters'', the team is constantly using it to try to get responses from whatever paranormal entity might be lurking in the location of the week. The team member knocks out 'shave and a hair cut' and waits for the entity to knock the 'two bits' response.
* This is the password to get into Santos's secret stem-cell meeting in ''Series/TheWestWing''.
* ''Series/DoctorWho'':
** In "Enemy of the World", the Second Doctor mimes recorder-playing to indicate to Jamie that it is him and not Salamander. Jamie whistles the first part of 'shave and a haircut' and the Doctor happily finishes off with the 'two bits'.
** In the episode "The Doctor's Wife" this is what the white message box uses to knock on the TARDIS' door. In fact, the closed captions for the episode actually read "Knocking 'shave and a haircut'".
* In ''Series/{{MASH}}'', Hawkeye once started singing Largo al Factotom("Figaro, Figaro, Figaro!") before segueing into "Shave and a Haircut". Radar then adds, "So that's where that came from!"
** In "Bug Out," the unit has bugged out (except for Hawkeye, Margaret and Radar) and see a shack they can use as a makeshift operating room. Upon hearing giggling (it's occupied by ladies of the night), B.J. knocks "Shave and a Haircut," then whistles "two bits."
* In ''Series/ThreesCompany,'' "Shave & a Haircut" is Larry's distinctive knock on the door.
* Played with in an episode of ''Series/MysteryScienceTheater3000''. In the movie ''Film/TheAtomicBrain'', the antagonist knocks on a door to find out of two of the girls she hired were in the room. Mike quips "'Shave And A Haircut'! What do we do?"
** In the movie on another episode, "Space Travelers" (or ''Film/{{Marooned}}'',) Joel & the 'Bots do the song in a riff following "Gregory Peck will be back in [for example] 'McKenna's Gold'!"
* A variation of the song is in the closing theme music to ''Series/MarriedWithChildren.''
* ''The Captain and Tennille Show'' show had a recurring sketch called Masterjoke Theatre which opened with the very regal theme music from the real ''Series/MasterpieceTheatre'' (from “Symphonies and Fanfares for the King’s Supper” by Jean-Joseph Mouret), except the song ended with an equally regal version of this sting.
* ''Series/TheBigBangTheory'': Amy knocks "shave and a haircut" on her kitchen table when [[SuperOCD Sheldon]] claims that he has no problem leaving things unfinished. After a brief staring match he compulsively knocks "two bits."
* The episodes of the German comedy series ''Klimbim'' always ended with this.
* In the ''Series/KraftSuspenseTheatre'' episode "Are There Any More Out There Like You?", a college student plays the melody on his recorder.
* ''Series/{{Qi}}'': On the 10th season Christmas episode "Jingle Bells", in a discussion about astronauts playing practical jokes, Danny Baker mentioned the Golden Record included in the Voyager probes, which contains pictures of humanity and the Earth, greetings in assorted languages and musical works ranging from Bach to Chuck Berry. Danny then said that a NASA guy he once spoke with told him that NASA also included the first five beats of the "Shave and a Haircut" knock, in the belief than any intelligent life wouldn't let it go, and some day they would receive the "Two bits" knock back from space.
* ''Series/TheSootyShow'': Sooty's MagicWand was always activated by tapping it to the full "Shave and a Haircut, Two Bits" rhythm ([[TheVoiceless sometimes]] preceded by the Catch-Phrase "Izzy-Wizzy, Let's Get Busy").

* Victor Borge had a comedy bit about the lady who invented the "two bits" part, but without words so it was an unrecognizable couple of notes until the punchline where the phrase was played in full.
** The SmothersBrothers did something similar involving church bells that combined to form the tune.
* In nearly every one of his polka medleys, Music/WeirdAlYankovic includes "Shave and a Haircut" right before the final few notes.
* The end of the "[[https://www.youtube.com/watch?v=_qixMnBDaw4 Cabbage Rolls and Coffee Polka]]" by Yosh and Stan Schmenge of ''Series/{{SCTV}}'' fame contains multiple variations on the theme... which goes on for half a minute. (Most of their polkas ended with shave-and-a-haircut, as a running gag.)
* At the end of Music/TomLehrer's "The Elements", from ''Music/AnEveningWastedWithTomLehrer''.
-->And there may be many others, [[ScienceMarchesOn but they haven't been dis-covered!]]\\
''[shave-and-a-haircut playout]''
* The rapid strumming section of Nuno Bettencourt's solo in Extreme's ''[[https://www.youtube.com/watch?v=sGjmXhES2wQ&t=2m26s Play With Me]]'' ends with one of these.
* The shortest musical single ever released was called "Magic Melody, Part 2," by Les Paul. It consisted entirely of "two bits!" and lasted less than one second. Part 1 had ended abruptly on "Shave and a Haircut," and [=DJs=] had been complaining.
* The Japanese rap song "Shiroi Yami no Naka" by Shakkazombie ends in this.
* Forms the theme of the Fugue in D minor from "The Short-Tempered Clavier" by Music/PDQBach.
** The first aria of the Music/PDQBach cantata "Blaues Gras" ends with "Rasieren und Haarschneiden, zwei bitte." Which means, of course: "Shave and a haircut, two please."
* Mike Portnoy of Music/DreamTheater has used this as an audience participation segment at the end of his drum solo.
* [[Creator/TreyParkerAndMattStone DVDA's]] version of What Would Brian Boitano Do? feature a guitar riff based on the rhythm of Shave And A Haircut, and the phrase is also played on the drums after each chorus.
* At the end of Michelle Shocked's version of "The Arkansas Traveler"(?) the old man playing the farmer in the dialogue parts ends up flubbing the classic ending, "Shave and a haircut: two bits!" by saying "six bits" instead. [[ThrowItIn This is followed by]] his and Michelle's raucous laughter, and the old man muttering the quip, "Six bits?...I'll saw you in half for six bits...."
* It happens at the end of "Unsquare Dance" by ''Dave Brubeck".
* Happens at the end of "Piano Picker" by Music/{{Carpenters}}.
* Richard Cheese's version of "Come Out and Play" by Offspring ends with the famous original riff (on xylophone), then switches to this for the close.
* "Everything About You" by Ugly Kid Joe ends with this.
* The first LP put out by [[Franchise/AlvinAndTheChipmunks David Seville and the Chipmunks]] included the song "Yankee Doodle." Near the start, Alvin sings "...and called it spaghetti" instead of "macaroni" much to Dave's annoyance. The song ends with the chipmunks singing "Shave and a haircut -- SPAGHETTI!"
* Multiple iterations of the theme appear in the Lambert, Hendricks and Ross classic "Cloudburst." (Later covered notably by Barry Manilow, the New York Voices, and others.)
* The end of the Martin Garrix & Tiesto song, [[https://www.youtube.com/watch?v=1a1s3iPkV7M The Only Way is Up.]]

[[folder: Newspaper Comics]]
* In a ''ComicStrip/TheFarSide'' cartoon, an exasperated conductor informs his orchestra that they will ''not'' be concluding the symphony with "Shave and a Haircut".
** In another, police are arresting a group of mobsters, and one of the mobsters complains, "I knew it. I just knew it! 'Shave and a Haircut' [[ThePasswordIsAlwaysSwordfish was a lousy secret knock]]."
* A cartoon in ''Magazine/TheNewYorker'' by Roz Chast skewered the inflationary angle, portraying a barber shop with a sign reading, "Shave and a haircut, 200 bits."
* An old ''ComicStrip/FunkyWinkerbean'' comic featured band director Harry Dinkle recounting his very first piano recital. He couldn't remember how Moonlight Sonata ended, so he ended with "Shave and a Haircut"

* In ''Radio/TheGoonShow'' episode "The Great Bank of England Robbery", Neddie, Eccles and Bloodnok are trapped underground. When tapping on the walls and receiving mysterious replies, Eccles taps out the first part and, in the silence that follows, ribs the listeners for expecting the second part, but is interrupted by the *Two Bits!* tap.
* In a 2013 episode of ''Radio/TheNowShow'', Music/MitchBenn sang a music-hall style song about the then-current resignation of Pope Benedict XVII, "What Do You Do With a Bloke Who's Pope (When the Bloke Ain't Pope No More)?", which ended with him singing "Ave Maria, amen!" to "Shave and a haircut".

[[folder: Theatre]]
* ''I Can Get It For You Wholesale'' uses this riff in the middle of the OpeningBallet.
* ''Theatre/WestSideStory'' has it sung at the end of "Gee, Officer Krupke", albeit with triplet eighth notes rather than regular eighth notes for "Officer":
-->"Gee Of-fi-cer Krup-ke, ''[[GoshDangItToHeck Krup You!]]''"
* ''The New Moon'' uses a minor variant of this at the end of the eccentric dance following "Love Is Quite A Simple Thing."
* A "shave and a haircut" riff oddly comes right in the middle of the Shipoopi song in ''Theatre/TheMusicMan''.
* "This Is The Life" from TheMusical version of ''Theatre/GoldenBoy'' finishes off the spoken call-and-response patter with:
-->'''Group''': Shave and a haircut--\\
'''Joe''': Me next!

[[folder: Video Games]]
* In both ''LEGO Indiana Jones'' videogames, whenever you knock on a door.
* In ''VideoGame/HalfLife2'', Alyx plays this on the buttons of a vending machine, and bangs on it twice for the "two bits" part. It's her way of signaling to Dr. Kleiner that it's her, and opens the door to the secret lab behind the vending machine.
* ''VideoGame/ChronoTrigger'' featured a version of the tune, titled "Rat-a-Tat-Tat, It's . . . Mitsuda!", in its [[DevelopersRoom toughest ending]]. (Yasunori Mitsuda was the composer.)
* In the beginning of ''VideoGame/EarthBound'', Pokey/Porky knocks on the door in a very annoying fashion. In the middle of the knocks is the classic "Shave and a Haircut".
* ''VideoGame/UmJammerLammy'': "I Am a Master, and You", Lammy's version of the Chop Chop Master Onion stage, eventually evolves into this quite subtly, eventually--unsurprisingly--finishing off with it.
** Also occurs in the outro of Stage 1.
* The first five notes appear at about 55 seconds into [[http://www.youtube.com/watch?v=Kyv_pc8y7QU&feature=related the stage 2 theme]] from ''VideoGame/MrGimmick''.
* One of the bosses in ''VideoGame/RocketKnightAdventures'' (whom you face in a few smaller battles before the end of the stage) has this accompany each of his defeats at your hands.
* In ''VideoGame/GrandTheftAutoIV'', sometimes when you honk the first half of this tune using a cat horn, other drivers will respond with the rest.
* Used in "The Snappy Trio" from ''[[VideoGame/RhythmHeaven Rhythm Tengoku]]'', at the end of the song.
** This comes up again in ''Rhythm Heaven Megamix'', found at both the beginning and the end of "Catchy Tune."
* In ''VideoGame/{{Jazzpunk}}'', this is the secret knock to get into the hotel in the Soviet Embassy level.
* In ''VideoGame/{{Ponpoko}}'', this is used as the GameOver jingle.
* In ''VideoGame/NutsAndMilk'', the "MIS TAKE" jingle (for when the player loses a life) is a variation on this familiar two-bar motif.
* In ''VideoGame/ZeroWing'', this riff finishes off the ending theme of the arcade version.
* ''VideoGame/{{Cuphead}}'' has a song from the soundtrack, "Winner Takes All", where this "Shave and a Haircut" tune plays at the end.
* The ''VideoGame/{{Glider}} PRO'' house [[AutomaticLevel "AutoPilot"]] has a room titled "Shave and a Haircut," where 'Copters spawns in this rhythm.

[[folder: Western Animation]]
* On an animated insert on ''Series/SesameStreet'', An animated orange ball plays a scale on the musical staircase. [[https://www.youtube.com/watch?v=NDg26v5LhS8 And then ends with the tune (But the last 2 notes were wrong), And gets applauded by the audience.]]
* In ''WesternAnimation/TheRenAndStimpyShow'', a synthesised version is used right after Mr. Horse delivers his famous "No sir, I didn't like it." line from "Fire Dogs".
* WesternAnimation/SteamboatWillie uses this to end the "Turkey in the Straw" sequence.
* Too many ''WesternAnimation/LooneyTunes'' cartoons to name. "WesternAnimation/ShowBizBugs" is an excellent example of this.
* ''WesternAnimation/{{Animaniacs}}'' did this a lot, particularly with Yakko's songs (and also with "Wakko's America").
** The end of the theme song to WesternAnimation/PinkyAndTheBrain. "Narf!"
* Used at the end of most ''WesternAnimation/CampLazlo'' episodes.
* Phil Ken Sebben in ''WesternAnimation/HarveyBirdmanAttorneyAtLaw'': "Shave and a haircut, two [[CurseCutShort ti-whoah]], hold on".
* [[LittleMissBadass Toph]] of ''WesternAnimation/AvatarTheLastAirbender'' knocked on a steel door this way in the GrandFinale, but instead of ''knocking'' the "bits" part she [[spoiler:knocked the door down. She then [[ExtraOreDinary turned it into armor]], and [[SugarWiki/MomentOfAwesome used it to defeat multiple superpowered firebenders in a couple seconds]]]].
* ''WesternAnimation/TheSimpsons'' had it at the end of the Presidents Day assembly's song for "lesser" President.
* Used in the ''WesternAnimation/MyLittlePonyFriendshipIsMagic'' episode "Fall Weather Friends", when Applejack makes the apples from a tree fall on Rainbow Dash's head in tune with this melody.
** One wishes they'd had a bet for two of the Equestrian coin of the realm; the Bit.
* Played by Owen in the ''WesternAnimation/TotalDrama'' episode "I Triple Dog Dare You" on his freebie bottles.
* Done twice in "We're Despicable (Plunderers' March)" in ''WesternAnimation/MrMagoo's Christmas Carol''.
* Several episodes of UPA's ''WesternAnimation/MrMagoo'' and ''WesternAnimation/TheDickTracyShow'' end with this.

[[folder: Real Life]]
* The Italian one (Ammazza la vecchia col Flit) means "Kill the old woman with DDT!"...!!
* The phrase "hasta la vista, baby" fits the sting almost perfectly.
* Creator/NardwuarTheHumanServiette ends all his interviews with "doot doola doot doo" and the interviewee provides the "doot doo" at the end.
* A popular variation in the United Kingdom was "How's your father? All right!" the first part of which became slang for a certain act, as in "A bit of 'ows-yer-father".
* Used at the end of "George and Lil", a 1980s PIF about burglary prevention.
* In Icelandic it's ''Saltkjöt og baunir! Túkall!'' meaning ''Salt mutton and pease pudding! Two crowns!''.
* American [=POW=]s in Vietnam communicated by tapping Morse code on their cell walls. One would initiate a conversation by tapping the familiar "shave and a haircut" pattern, and the other would finish with "two bits". If the respondent instead repeated "shave and a haircut", it meant he was a Vietnamese agent.
* In Sweden there are two 'lyrics' to this tune. The oldest is "Kvart över elva, halv tolv." "A quarter past eleven, half an hour to twelve." The second is the cough-drop ad jingle above.
* [[http://www.youtube.com/watch?v=zE5PGeh2K9k This]] video on making an electronic secret knock detector of course uses it as the secret knock.
* The tune is well-known in Mexico, where playing it in public is liable to get you beat up, since it's associated with [[YourMom to one's mother.]]
* An old novelty book called Telephone Songs (or something like that) listed the buttons to "play" as 9-4-4-2-1-6-6. Now go try it yourself.
* A children's playground song used for counting people out uses the tune:
--> Skunk in the barnyard.\\
Somebody ate it.\\
That's you!
* All of the current ''Toyline/MyLittlePony'' generations can be said to this tune, as most people refer to them as either "Gen" or "G", followed by their number - try saying phrases like ''"My Little Pony G3"'' or ''"My Little Pony Gen 4"'' in this tune, and you'll get the idea.