"Unfair Science Fair"
Portal to Mars
The portal to Mars.
Season: 1
Production code: 123a
Broadcast number: 46
Story by:
Bobby Gaylor
Martin Olson
Written & Storyboarded by:
Elizabeth Ito
Aliki Theofilopoulos
Directed by:
Dan Povenmire
Zac Moncrief
Broadcast Information
Disney Channel US Premiere:
March 20, 2009
Disney XD US Premiere:
February 17, 2009
International Debut:
September 11, 2008 (Disney Channel Latin America)
See more...
Paired with
"Unfair Science Fair Redux (Another Story)"
Story arc(s)
"Unfair Science Fair Redux (Another Story)"
Book Adaptations:
Journey to Mars
DVD Releases:
The Daze of Summer
Ayeee! I am doomed to be an incompetent flunkee FOREVER! EVER! Ever! ever!

— Isabella Garcia-Shapiro, quoting Baljeet

Baljeet is discouraged about his prospects at a science fair, so Phineas and Ferb decide to help him build a portal to Mars. Candace competes with Wendy for a job to be with Jeremy. Meanwhile, Dr. Doofenshmirtz seeks to overcome a past rival: a bicarbonate volcano.

Episode Summary

Depressed about his science project

Baljeet worrying about getting an A- for his final grade.

Phineas and Ferb meet Isabella in their backyard, and she tells them to go see Baljeet. She says she heard him wailing with despair that he was a "total flunkie" when passing by his house.

Phineas says it sounds pretty serious, so the boys stop by Baljeet's house, only to find him sitting in his messy room in total darkness. They ask him what's wrong and he says that he qualified for the science fair. They don't see a reason to be despaired about that, so Baljeet tells them that he told his teacher, Mr. McGillicuddy, that he would make a portal to Mars for his science project, but Mr. McGillicuddy said that it is impossible to make such a thing, so he will only give Baljeet an A-. This would be the lowest grade Baljeet has ever gotten in his life.

Baljeet, not being "mechanically inclined", asks Phineas and Ferb to help build a portal to Mars for him, and they agree to help him. Phineas agrees, then wonders where Perry is.

Something just occurred to me

Perry is shown sneaking into a filing cabinet and landing in his lair, where he awaits instructions from Major Monogram. Major Monogram is caught dead in the embarrassing act of putting on a wig. He hurriedly puts it on lopsided and begins to fill in Perry on his mission, fixing it as he talks. It seems that Doofenshmirtz has purchased chicken-wire, 3 metric tons of baking soda, and lederhosen, and Perry is to figure out why.

Phineas, Ferb, and Baljeet begin construction on Baljeet's Portal to Mars. Baljeet is shown to be completely clueless about building things; he hits nail with the wrong end of hammers or with wrenches, gets wrenches stuck on his nose, etc. Phineas and Ferb, meanwhile, finish the portal with ease and enjoyment, despite Baljeet.

The next day, Baljeet is shown standing at the science fair with Phineas and Ferb with a huge smile on his face. He is already set up; he tells them that he has been waiting since midnight and he can't stop smiling. Phineas shakes out his cheeks to loosen up the cramps, but soon the huge smile is back.

Meanwhile, Candace is seen using binoculars at Mr. Slushy Burger to spy on Jeremy. He spots her (she's sitting only about 2 yards away), so she tries to tell him that she bought them for her dad and was testing them to see if they worked. Then she sees the "Help Wanted" sign on the counter. Jeremy tells her that they are looking for another employee, and that she should apply; however, when Candace starts to accept the offer, another girl, Wendy, walks in front of Candace with a huge smile and perky, motivated attitude and says that she has come to take the job too. The manager comes over and proposes a competition to see who will get the job first. Wendy shows her uglier, competitive side towards Candace when she holds out her hand to shake for luck, then snatches it away and announces that she'll call Candace "Mo-lasses."


Doofenshmirtz's Truck of Doom.

Perry is shown tailing Dr. Doofenshmirtz's truck with a jet pack. When they enter a parking garage, he jumps into the car. Doofenshmirtz immediately traps him into a baby's car seat. He then treats Perry to a display of his hairy man-legs, claiming that can wear lederhosen because he's "got the legs for it." A car behind them honks and the driver shouts at them. Doofenshmirtz mistakes the person as a man, telling Perry that people must mistake her as a man all the time on the phone. Unfortunately, the woman had gotten out of her car and was standing right outside his window as he says this. He tries to roll up the window, but not in time to avoid getting a black eye.

While waiting in line for the science fair, Doofenshmirtz (pulling Perry and the car seat in a wagon) makes fun of a kid in front of him with a model of Pluto. He starts to ramble on about how Pluto isn't considered to be a planet anymore. The kid's older brother, who it seem was the real competitor, overhears him and punches Doofenshmirtz for insulting Pluto, leaving him with two black eyes.

Doofenshmirtz then relates to Perry why he is even bothering putting himself through all of this. He says that when he was young, his inventions, which he referred to as simply "Inator", always lost to a baking soda volcano at the science fair. Even when he did poetry, he still lost to baking soda volcanoes. So he has decided to create the biggest baking soda volcano ever. At this point, they are called as next in line, so he hurries to check himself in. The check-in man says, "Aren't you too old to be entering this science fair?", to which Doofenshmirtz replies, "No, what makes you say that? I mean, come on, look at me - I'm wearing lederhosen!". The man admits him into the science fair; evidently, this is the reason why he was wearing the lederhosen.

Meanwhile, Mr. McGillicuddy comes over and sees the portal to Mars that Phineas and Ferb built for Baljeet. He is a first skeptical that it could actually operate and function properly, so Baljeet fires it up. Through the portal, they can see an alien science fair, parallel to their own. Mr. McGillicuddy grows extremely excited, gives Baljeet an A+++, and runs off to show the judges what Baljeet has made.

Meanwhile, Doofenshmirtz is preparing his own project; there is apparently a light show that goes along with his huge volcano, so he goes and unplugs Baljeet's project to make way for his own. Therefore, when the judges come over, Baljeet's project does not operate, and the judges are now skeptical of Mr. McGillicuddy. Pushing Baljeet out of the way, he tries to pull the lever himself and it still won't work. When he tries calling through the portal to the Martians, the judges glance at each other, look askance at him, and go for corn dogs. Meanwhile, he is still trying to operate the machine; he turns it up to high and tries to pull the lever again, with no results. Phineas says it's too bad Baljeet didn't win the science fair, to which Baljeet replies that he never cared about winning, but about the grade, so they all walk out for corn dogs, leaving Mr. McGillicuddy with the machine.

Showdown at the Slushy Dawg

Candace and Wendy fighting for a position at Mr. Slushy Burger with Jeremy.

Candace and Wendy prepare to compete for the job. The manager tells them to dress all the hotdogs in front of them and walks out, saying he will be back in a while to check their work. The girls face off Western-style, then pull out mustard and ketchup bottles and begin to furiously dress the dogs. Candace's ketchup runs out and she squeezes it, whining that it's out; it squirts out a huge blob of ketchup, which lands on Wendy. Wendy retaliates by squirting Candace with mustard, who shoots back a deluge of relish. Mandy puts a bottle of something that is either sour cream or mayonnaise on the table and slams a tray down on it, completely covering Candace. Candace throws a handful of pickle slices at her.

Mr. McGillicuddy finally notices that the machine is unplugged. He plugs it back into a high-voltage plug. Meanwhile, Perry escapes the car seat by jumping out of his pants (revealing that Perry wears green boxers with purple polka-dots). He runs over to where Doofenshmirtz is pouring vinegar into the volcano and jumps on top of him, knocking him over. Doofenshmirtz, now covered in vinegar, slips over the railing and lands in the volcano's mouth. The pressure in the baking-soda volcano build until finally it erupts explosively and Doofenshmirtz flies through the air, just as Mr. McGillicuddy turns on the portal. The portal sucks him into itself and transports him to Mars, along with the rubble from the exploded volcano, then it consumes itself. With the portal gone, Mr. McGillicuddy is left stammering for words.

A girl with mechanical arms on her back asks if it's too late to enter the science fair. When she says she used the arms to build a baking soda volcano, the judges are impressed and award the volcano first prize. Part of the portal to Mars opens for just long enough for Doofenshmirtz to complain "Oh, come on!".

Back at Mr. Slushy Burger, Candace and Wendy have both used up all the mustard, relish, and ketchup, which makes them both lose the job. Candace decides to call Wendy "snail", to which she sarcastically replies that Candace is quick.

Meanwhile, Phineas, Ferb, Isabella, and Baljeet are eating corn dogs, when Isabella asks then that she couldn't believe that they'd built a portal to Mars, but didn't actually use it, and Phineas and Ferb reply by telling her that they did, but it's another story. Not long later, Perry rejoins the group.


For a full transcript of "Unfair Science Fair", click here.


End Credits

In Britain Disney XD confusingly puts the end credits from Unfair Science Fair Redux (Another Story) at the end of this episode as well. (British screenings don't put a commercial between the episodes and credits).


Unfair Science Fair title card
The image gallery for "Unfair Science Fair" may be viewed here.

Running Gags

The "Too Young" Line

Man in the Fair: Aren't you a little old to be entering this Science Fair?
Dr. Doofenshmirtz: No, what makes you say that? I mean look at me, I'm wearing lederhosen.

Ferb's Line/Oh, there you are, Perry

He also appears to sing the word "pureéd" in the Baliwood song, along with Phineas and Baljeet.

Isabella: So, you two have built a portal to Mars and you didn't even go through it yourselves?

Phineas: Oh, we did.
Ferb: But that's another story

Phineas: (sees Perry) Oh, look! There's Perryyyyyy!

What'cha doin'?


Perry's entrance to his lair

Enters through the file cabinet in Baljeet's living room and falls into his chair, pieces of paper flying around him.

I know what we're gonna do today

Line in song
Phineas: I know what we're gonna do today, Ferb and I are on the case! We'll help you build your prototype, you won't be a disgrace!

Hey, where's Perry?

Line in song

Phineas: Wait- something just occurred to me! Where's Perry? Where's Perry?
Song ends

Baljeet: Did you have him when you came over?

Evil Jingle


Memorable Quotes

Isabella: Hey, Phineas. You might wanna check up on Baljeet. I was walking by his house when I heard him scream, (uses fake Indian accent) "AIEEE! I AM DOOMED TO BE AN INCOMPETENT FLUNKEE FOREVER!" ...ever... ever... ever... (uses normal voice) I added the echo part.
Major Monogram: (startled by Perry's entrance because he's not wearing his wig) Oh! Agent P! (puts on wig) It appears that Doofenshmirtz has made some rather unusual purchases: chicken wire, three metric tons of baking soda, and lederhosen. You know, those leather windpipe shorts that make you look like a walking cuckoo clock? Man, he is one sick puppy.
Baljeet: Inside I am thanking you a thousand times, even though on the outside, I remain quite frugal.
Wendy: Oops, too slow! I think I'll call you Molasses.
Candace: Molasses? Well, I think I'll call you something... slower than Molassess, that's for sure. (Jeremy and the unnamed manager stare at Candace) Uh, this isn't part of the competition, is it?
Doofenshmirtz: So, Perry the Platypus, I bet you're wondering why I'm wearing lederhosen? What? I've got the legs for it. (shows Perry his legs) Huh, huh? (vehicle stops behind them) So, anyway, the answer will be clear enough when--

Woman: (man's voice) COME ON, HANSEL! MOVE IT!
Doofenshmirtz: (honks horn) Hey, wise guy, I'm expecting--Oh, sorry ma'am. Sorry.
(the woman gets out of her car and walks up behind Doofenshmirtz)
Doofenshmirtz: Wow, her voice was so muscular and growl-y, I thought she was a man. I mean, people must call her "Sir" all the time on the phone. It must be so embar--Oh. Oh, she's standing right behind me now, isn't she? (he tries to roll up his window, but the woman punches him in the face, leaving him with a black eye) Not one word, Perry the Platypus.
(the scene cuts to the science fair. The screen pans left to reveal that Doofenshmirtz and Perry are at the end of an extremely long line)
Doofenshmirtz: Oh, great, a line! Oh, brother. What, is that a model of Pluto? (laughing) That planet doesn't even exist anymore, you moron!
Big brother: (takes the model from his younger brother) Thanks for holding my spot in line, little bro. (to Doofenshmirtz) What were you saying about Pluto?
Doofenshmirtz: Nothing, I'm sure it's a--
(the big brother uses his project to hit Doofenshmirtz, leaving him with a second black eye)
(sighing) I suppose you're wondering why I'm putting myself through all this? When I was young, I entered a science fair with my very first Inator! I-I wasn't very clever with names yet. It was just, you know, Inator. Just as I was about to show my invention to the judges, a kid with a baking soda volcano stole the show! The next year, I tried again with my Even-Bigger-Inator! And, again, my thunder was stolen by a baking soda volcano. I've had enough of science. I decided to devote my life to poetry, instead.
Flashback Doofenshmirtz: The movies are gray...the TV is black...the horses are running... please bring me some food.

Doofenshmirtz: Yet, curiously, I still lost to a baking soda volcano!
Judge: Are those mechanical arms?

Girl: Why, yes. I used them to make this baking soda volcano.
Judge: A baking soda volcano? First prize!

Dr. Doofenshmirtz: Oh, come on!
Candace: Snail, I'll call you snail!
Wendy: Oh, you're quick.

Background Information

  • Ashley Tisdale (the voice of Candace) previously co-starred with guest stars Brenda Song (the voice of Wendy) and Brian Stepanek (the voice of the science teacher) in The Suite Life Of Zack and Cody.
    • In the Suite Life episode, "A Nugget of History," London Tipton (Song) tries to get a job at the Cluck Bucket fast food restaurant where Maddie Fitzpatrick (Tisdale) already works. The resulting mess that Maddie and London left at the Cluck Bucket strongly resembles the disaster that Candace and Wendy brought to the Mr. Slushy Burger.
  • Baljeet is clearly not at all "mechanically inclined", as demonstrated throughout the construction of the portal to Mars.
  • This episode shows that Phineas, Ferb, and their main group of friends are not vegetarian (they are seen eating corn dogs at the end).
  • Perry appears to not get embarrassed easily because after his fur came off revealing his underwear he ran off without covering up.
  • Doofenshmirtz says "Not one word, Perry the Platypus" in a way similar to the way the wife of the van company says "Not one word." ("Leave the Busting to Us!")
  • The girl who wins is one of the dancers in Shimmy Jimmy.
  • When Candace says "Let's walk and talk," Doofenshimrtz says the same thing in "Out to Launch."
  • Doofenshmirtz's poem was originally written by storyboard artist/writer Aliki Theofilopoulos Grafft's father when she was a child.
  • The white-haired judge with glasses that evaluated Baljeet's entry can be seen in one of the "smaller venues" that Love Händel played at. He was positioned behind Swampy.
  • The white-haired judge looks like J.B. from "Toy to the World".
  • The brown-haired judge looks like the station manager from "Leave the Busting to Us!".
  • This is one of the few times Baljeet uses a contraction. He says to his teacher, "It's a portal to Mars."

Production Information

  • Episode description from a 2009 Disney XD Phineas and Ferb press release:[1]
Brian Stepanek ("Brian O'Brian" and "The Suite Life of Zack & Cody") and Brenda Song ("The Suite Life on Deck") guest star in an episode in which Phineas and Ferb must step in to help their neighbor, Baljeet, with his science project, a portal to Mars, while Dr. Doofenshmirtz also enters the fair in an attempt to redeem himself after an embarrassing loss years ago. Meanwhile, Candace competes with another girl (guest star Brenda Song) for a job at the Mr. Slushy Burger, where Jeremy works. Stepanek plays the hiring manager.

International Premieres

  • September 11, 2008 (Disney Channel Latin America)
  • October 10, 2008 (Disney Channel Netherlands)
  • January 23, 2009 (Disney Channel Germany)
  • March 27, 2009 (Disney Channel Brazil)
  • June 28, 2009 (Disney Channel Spain)


  • The caption beneath Baljeet's forefathers reads "FOREFTATHERS".
  • Baljeet's paper says that he got an A++, not an A+++ like Mr. McGillicuddy said he had.
  • Perry is not shown in his car seat-trap after Doofenshmirtz gets punched by the unfortunately masculine woman.
  • Candace and Wendy took the mayo, pickles, and relish out of nowhere; they only had ketchup and mustard.
  • In "Rollercoaster", you can see that Baljeet's house is next to the Flynn-Fletcher house, but Phineas and Ferb have to ride their bicycle to get there. As well, when the camera zooms out to a bird's eye view, to go follow Candace in Unfair Science Fair Redux (Another Story), it appears that their houses are far away.
  • When Baljeet, Ferb, and Phineas sing, "There's Perry!" Ferbs larger eye is in front of his little eye.
  • Perry should not have been able to enter his lair, as he is at Baljeet's house (he is seen leaving the backyard with the boys), and in Unfair Science Fair Redux (Another Story), Candace is seen walking by Perry just before he enters his lair, but she is at the Flynn-Flecher house. However, It's possible that Perry simply went back to Phineas and Ferb's house.
  • When Candace shows the binoculars to Jeremy it disappears after Jeremy talks to her about applying for the job.
  • When Perry escapes from the trap, he removes his bottom fur and runs off in his underwear but when he battles Doofenshmirtz, it is back on and his underwear isn't shown. He should have still been in his underwear.
  • In the flashback, Doofenshmirtz has a beard in college but in the episode Crack That Whip he says that he has been unable to grow a beard since he was 15. Though the beard may have been fake.
  • If the seat belt on the baby seat that Perry was sitting in was tight enough to rip off Perry's fur off his lower half, then it should have ripped the fur off his arms too considering the fact that Perry's arms were trapped too.
  • After Isabella says that she added the echo part, her socks were missing.
  • When the song starts, you can hear Phineas singing but his mouth is closed.
  • In the flashback,at the second science fair the baking soda volcano had already erupted and normally baking soda volcanoes can't erupt good the 2nd time.


  • Candace will actually get a job at Mr. Slushy Dawg later on in "The Bully Code", ironically quitting in the end.


Volcano Science Fair Judges

Doofenshmirtz apparently lost to Pinocchio.

  • The Suite Life Of Zack and Cody - (Refer to Background Information)
  • Meet the Robinsons - When Doofenshmirtz and Perry are waiting in line, the music resembles a similar scene at the science fair.
  • Pinocchio - One of the kids in Doofenshmirtz's flashback bears an uncanny resemblance to the title character.
  • Stargate - The Portal to Mars looks a lot like the Stargate.
  • Spider-Man - The girl who wins the blue ribbon has four metal arms attached to her back similar to Doctor Octopus, one of Spider-Man's enemies.
  • Batman - At the beginning, the boys think of flying with bat wings like the DC comic book superhero.
  • Wendy Wu: Homecoming Warrior - Brenda Song's character name, Wendy, may refer to the title character she played in Warrior.
  • King of the Hill - When Phineas, Ferb and Baljeet are building the portal to Mars, they are carrying a large pole with Baljeet just hanging from the pole instead of helping them carry it. This directly mirrors a scene in the episode Old Glory where Hank, Dale and Bill are carrying a pole and Dale is the one goofing off.
  • PRISE - During the song Baliwood, one of Baljeet's forefathers is seen in a portrait holding a piece of paper that says "1st A+ Prise" instead of "1st A+ Prize". This is most likely a spelling mistake or it could be referring to Harvard's PRISE program (Program for Research in Science and Engineering).
  • Plants vs. Zombies - In the regristation, one teenager seems to be holding a Chomper.


  • When Perry escapes some of his fur comes off revealing that he wears green boxer shorts with purple polka dots on them (This is the first time we see Perry in his underwear; the next is in "Perry Lays an Egg").
  • Perry is the fourth character to be shown in underwear. The other characters being Dr. Doofenshmirtz, Phineas, and Ferb.
  • First time Perry is trapped in something baby-related.
  • First time Baljeet appears without Buford. This happens again in the succeeding episode.
  • This episode shows Heinz Doofenshmirtz's first inator and explains why he has the name inator in all of his inventions.


designates a character that did not appear in this episode


"Phineas and Ferb Get Busted!"
Episodes Next:
"Unfair Science Fair Redux (Another Story)"