"Magic Carpet Ride"
Aerial Area Rug
Phineas, Ferb, Lawrence and the kids riding a magic carpet.
Season: 3
Production code: 306B
Broadcast number: 123
Story by:
Jennifer Keene
Written & Storyboarded by:
Michael Diederich
Tom Minton
Directed by:
Jay Lender
Broadcast Information
Disney Channel US Premiere:
June 18, 2011
Disney XD US Premiere:
July 9, 2011
International Debut:
June 25, 2011 (Disney XD Canada)
See more...
Paired with
"Candace Disconnected"
DVD Releases:
The Perry Files
Hop on, boys, we're about to take off on a ride of a lifetime.

— Lawrence Fletcher

Inspired by Dad's favorite childhood program, the boys decide to create a magic carpet, and Candace is convinced that fortune cookies will lead her to bust her brothers. Meanwhile, Dr. Doofenshmirtz plans on ruining his brother's art unveiling by using his "Stain-inator" to ruin a mysterious painting, but as it turns out, the painting is Dr. Doofenshmirtz's very own masterpiece that he created when he was a youth back in Gimmelshtump.

Episode Summary

Lawrence invites Phineas and Ferb to watch the brand new digitally remastered third series of his favorite show growing up, The Pinhead Pierre Show!; however they are unimpressed by the outdated effects of the magic carpet scene. Linda asks Lawrence to look at some kitchen tile samples to redo the living room, and he obeys, showing signs of disappointment that his childhood memories are not as exciting as he remembered. Phineas declares that he knows what they are going to do today, and wonders where Perry is.

Major Monogram is awakened as Perry drops into his chair at headquarters. He tiredly tells Perry that Doofenshmirtz has completely cleared the Tri-State Area of all grape juice, red wine, chocolate, marinara sauce, India ink, and "worst of all", coffee. He then apologizes for being drowsy, explaining that he hasn’t had his morning coffee.

At the Better Panda restaurant, Candace tells a passive Stacy that things never turn out how she plans. Stacy offers a fortune cookie to her, and after some coincidental fortunes come true, Candace places her faith in them and takes a bowl of fortune cookies from the restaurant.

Back at the house, Phineas explains how the modified carpet works to Lawrence, and the second floor of the house lifts up so the carpet can take to the sky. Meanwhile, Perry breaks into a window of Doofenshmirtz Evil Incorporated and is immediately tied up to a luggage carrier. Doofenshmirtz wheels him to his hovercraft and shows him his Stain-inator. He explains his back-story and plan on the way: When he was a youth in Gimmelshtump he yearned for a career in fine arts. He loved painting, though found his muse somewhat inaccessible. One day as he was about to give up he gained inspiration and stayed up for three days painting his masterpiece. However, his brother Roger accidentally spilt sloppy Joe and many other foods and drinks on it. Doofenshmirtz made a solemn vow that Roger would someday pay for what he did, and had his vow notarized. He explains that his Stain-inator was designed to ruin a painting that Roger would be unveiling for the lobby of City Hall.

Isabella, Buford, and Baljeet join Phineas and Ferb (and Lawrence) on the magic carpet ride as they fly through the sky. Candace further explains her belief of fortune cookies to Stacy. The last fortune leads her home.

As Mayor Roger Doofenshmirtz prepares to unveil the painting, Doofenshmirtz puts the Stain-inator on auto fire, making it unstoppable. However, it is revealed that the painting is Doofenshmirtz’s, that Roger had spent the past two decades restoring in order to make amends. Upon hearing this, Doofenshmirtz attempts to stop the Stain-inator from firing, but it is too late, and the painting is ruined again, much to both Doofenshmirtz and Roger's dismay. As an unhappy Roger ponders over his failure to unveil Heinz's painting to the public, an unhappy Doofenshmirtz lets his hovercraft crash while Perry (who shows no concern for this) flies off on his para-glider. Doofenshmirtz then angrily kicks the Stain-inator in frustration, causing it to fire and hit the bottom of the magic carpet as it descends into the living room. Candace leads Linda into the living room. She is impressed with the new carpet and says that it’s much better than tiles. Everyone goes out for Chinese food and Candace’s last fortune message says “Don’t believe everything you read,” leaving Candace very upset.


For a full transcript of "Magic Carpet Ride", click here.


End Credits

Last verse of Aerial Area Rug.


Magic Carpet Ride title card
The image gallery for "Magic Carpet Ride" may be viewed here.

Running Gags

I know what we're gonna do today!/Hey, where's Perry?

Lawrence: (sadly) Oh well, I suppose it wasn't quite as thrilling as I remember. Carry on, boys.
Phineas: Ferb, I know what we're gonna do today! Hey, where's Perry?

The "Too Young" Line


Ferb's Line

Ferb: Does anyone else want to be king of the world?
Phineas: Eh, keep it, Bro. It suits you.

What'cha doin'?


Oh, there you are, Perry


Perry's entrance to his lair

Perry just drops down to his chair and sees Major Monogram sleeping on screen.

Memorable Quotes

Major Monogram: WRONG PANTS! Huh? Oh, sorry, Agent P. I just was, uh, dozing there. Anyway, it appears Dr. Doofenshmirtz has cleared all the Tri-State Area of grape juice, red wine, marinara sauce, chocolate, India ink, and, worst of all, (holds up mug) coffee! So, uh, go and, you know, that thing, that thing, uh... Sorry. I'm just no good without that first mug o' Joe.
Candace: What do you say to that, Doubty McNonbelief?
Stacy: Why am I suddenly Irish?
Roger: I've always been a great lover of the arts.
Heinz: Liar Liar Pantalones del Fuego.
Doofenshmirtz: Behold this, you stupid... (kicks Stain-inator)
Candace: I don't get it, I thought these things are right about everything, I mean look.

Cracks and reads the final fortune cookie quietly and hands it to Stacy

Stacy: Reads Final Fortune cookie that Candace handed to her Don't believe everything you read; Words to live by.

Background Information

  • The magic word, streptococcus, is the type of bacteria that causes strep throat.
  • Pantalones del fuego is "pants on fire" in Spanish.
  • We never figure out what Roger's painting or Doofenshmirtz's old paintings are, as they were only shown from the easel behind.
  • In the Pinhead Pierre segment, a green border is seen around Pinhead Pierre to make it look like the sketch was very badly greenscreened.

Production Information

  • On October 2, 2010 Martin Olson - Phineas and Ferb's songwriter confirmed there will be an Aladdin-like episode, where Phineas and Ferb build a magic moving carpet.[1]
  • Listed on the Disney Channel TV Listings here.
  • This episode was aired in Disney Channel on Demand on June 17, 2011.

International Premieres

  • June 25, 2011 (Disney XD Canada)
  • July 15, 2011 (Family Channel)
  • July 28, 2011 (Disney Channel Brazil)
  • July 28, 2011 (Disney Channel Latin America)
  • October 5, 2011 (DIsney XD UK)
  • October 7, 2011 (Disney Channel Asia)
  • October 23, 2011 (Disney XD Spain)
  • October 25, 2011 (Disney XD Germany)
  • November 19, 2011 (Disney Channel Portugal)
  • December 8, 2011 (Disney Channel Scandinavia)


And its weave is so tight and so soft

Where did Isabella's socks go?

  • During the song Aerial Area Rug, you can see that Isabella is wearing her socks, then at one scene during the song her socks are gone.
The man's Heart Eyes

The man's eyes change

  • When Stacy and Candace are talking in the restaurant, right when Candace says "Maybe", the eyes of a man on the right side of the screen appear to melt together.
    • This may have been done on purpose; the man's eyes melt into the shape of a heart, which may indicate he is simply in love.
  • In his flashback, Doofenshmirtz has a small beard, however, in "Crack That Whip" he says that he's unable to grow facial hair.
  • The TV can not work if they are floating in mid-air, the cable is not in.
  • When Doofenshmirtz kicked the Stain-inator, the paintball which was released from it was red, but when it was in the air, the color is purple.
  • When Candace seen the boys are up to, the cheese was not there in her left arm. But when she will call Mom, the cheese is there.
  • When Doofenshmirtz first trapped Perry, the ropes were red, when he was on the ship, the ropes were purple. When Doof starts talking, they go back to red.
  • When the boys show Lawrence their invention, at first, the TV has the word "Ready" and the white and blue rectangles have already floated up. However, when it zooms in, the word "Ready" disappears and the blue rectangle haven't floated up yet.
  • The gang instantly switched their poses and places on the rug many times in the song.
  • Also in the song, Phineas appears in a tuxedo at one point.
  • The paint ball hits the bottom of the carpet staining only that, but later on the entire living room floor is shown to be stained.
  • When Monogram gave Perry his mission, he take his coffee cup, with the text "World's greatest superior officor", but "officor" is a mistake, it would have been "officer".



  • Aladdin - Phineas and Ferb build a magic carpet. Another reference is when Phineas helps lift Isabella up. Also, the song and episode title reference the Aladdin themed magic carpet ride at various Disney theme parks. Even moreso, when Candace and Stacy are near the fish market, the man's yell of "Hey all, catch it now, fresh fish! Fresh fish!" is similar to the scene where Jasmine walks down the bazaar and a fish seller there yells the same thing from the 1992 film.
  • Steppenwolf - The title of the episode shares the name of a song from the band Steppenwolf.
  • Titanic - Ferb asks who would also like to be king of the world while standing on the front of the carpet with his arms outstretched. This is a reference to the iconic "King of the World" scene from this film.
  • Wizards of Waverly Place - Magic carpets of this show are also run on machine parts.
  • The Odyssey - The book Doofenshmirtz is holding while laying in bed in the flashback.
  • Pinocchio - Candace says "Fate is kind", which is one of the lyrics of "When You Wish Upon a Star".




"Candace Disconnected"
Episodes Next:
"Bad Hair Day"