Blog/Mario 64/🎮Game Guides

How to Fly in Super Mario 64: Dive for Speed, Then Climb

Wing Mario can't flap for height. Every bit of height costs speed and every dive buys it back. Here is how takeoff works, the one glide the code holds steady, why the nose lifts on its own, how each flight ends, and the A-button trick that cancels fall damage.

Published October 23, 2026·12 min read·By Mythras
Official Super Mario 64 artwork of Wing Mario flying toward the viewer with white wings on his red cap and one arm swept forward, in front of a small globe carrying Peach's castle, a Power Star, a Goomba, a Boo, two penguins and a Bob-omb beside a palm tree.

Wing Mario can't flap for height. Nothing in Super Mario 64's flying code gives you height for free: every bit of altitude is paid for in speed, every dive pays it back, and the game skims a little speed off the top on every frame you stay up. Fly the Wing Cap like a jet, holding the stick back to climb, and Mario stalls and drops nose first. Fly it like a glider and a single minute of wings will carry you clean across a course.

The Super Mario Wiki puts the feel of it in one line: to stay airborne you have to keep raising and lowering Mario, the way Caped Mario flew in Super Mario World. The n64decomp decompilation of the game's code shows why in one short function. Unless a sentence says otherwise, the mechanics here come from that decompilation, with Ukikipedia and the Super Mario Wiki filling in the rest.

Speeds are in the game's own units per frame, and the game runs at 30 frames per second, per Ukikipedia. This covers the N64 game, which Super Mario 3D All-Stars and the Nintendo Switch Online app both run a version of; the DS remake's differences are near the end. Where to find each cap switch is the cap guide's job, so this post starts once the red switch is pressed.

Every flight input in one table

Input (N64)What Mario doesNotes
Triple jump, wearing the Wing CapTakes offNo running speed needed
Fire a cannon, wearing the Wing CapSwitches to flight once he starts to fallThe cap timer stops while you aim
Control Stick backNose up: climbs, loses speedPitch tops out at 60 degrees
Control Stick forwardNose down: dives, gains speedPitch bottoms out at 60 degrees
Control Stick left or rightTurnsThe faster he flies, the faster he turns
ZEnds the flight in a ground poundHe keeps the cap
A or BNothing, while flyingThe flying code reads only the stick and Z
Hold A while falling (not flying)Wings flutter, and he falls at half speedNo fall damage on the N64

Two of those rows deserve a sentence before the numbers.

The stick flies like a plane's. Forward points Mario's nose down, back points it up, exactly as the decompiled pitch code and Ukikipedia's flying page describe it. It is the same layout as swimming, which the swimming guide covers.

The camera takes over. As Mario takes off, the code switches to a camera that sits behind him (ten frames into a triple-jump takeoff, or as a cannon shot turns into flight), and it hands back the area's normal camera when the flight ends. The camera guide has what that normal camera is in each area.

Taking off: three ways into the air

The triple jump. Normally the third jump of a chain only becomes a triple jump if Mario is running faster than 20 units a frame. With the Wing Cap on, the decompiled landing code skips that check outright (its comment says so), so the third jump becomes a flying triple jump even from a standstill. That is why the cap guide tells you to triple jump in place. The takeoff jump also launches harder: it leaves the ground at 82 units a frame upward, against 69 for an ordinary triple jump. Flight starts near the top, once Mario's upward speed falls below 4, and the code raises his speed to at least 32 on the way in.

Two things to know about that takeoff jump. Mario cannot turn during it (the code uses its no-turning air movement), so face where you want to go before the third jump. And B or Z during it cancels the takeoff into a dive or a ground pound.

The cannon. In a cannon you aim from level up to 80 degrees, and the shot leaves at 100 units a frame, split between forward and up by the angle. With the Wing Cap on, the code switches Mario to flight on the first frame he is moving downward, which is the top of the arc. A level shot starts flying almost at once, at close to the full 100. A steep one starts higher but slower, because forward speed is 100 times the cosine of the angle: a 45-degree shot reaches the top of its arc at about 67. Better still, the cap timer stops while Mario sits in a cannon aiming, so line up the shot as long as you like.

Arriving in flight. The Tower of the Wing Cap is the one place Mario enters already flying. The Super Mario Wiki says so, and in the decompiled level scripts it is the only level that uses the flying spawn. Its cap is shorter, though; the timer section below has the numbers.

Mario, seen from behind with no wings on his cap, standing waist-deep in a white cloud at the start of Wing Mario Over the Rainbow in Super Mario 64, with a rainbow arcing in from the left and a red block floating at the top of the screen; the HUD shows 18 lives, 0 coins and 118 stars.

Wing Mario Over the Rainbow, despite the name, does not start you in flight. Its level script drops Mario onto the first cloud from above, without wings, and the course's red blocks are where the wings come from.

Speed is altitude

Every frame, the flying code takes speed off Mario in proportion to how far his nose points up, and adds it back in proportion to how far it points down, then takes a flat 0.1 on top. Run that at the angles that matter:

Nose angleSpeed change per secondHeight change per frame, at a speed of 32
60 degrees up (the limit)Loses about 43Up about 27.7
30 degrees upLoses about 23Up 16
LevelLoses 3None
4.5 degrees downNoneDown about 2.5
30 degrees downGains about 17Down 16
60 degrees down (the limit)Gains about 37Down about 27.7

The row that runs the whole system is 4.5 degrees down. Level flight still bleeds 3 speed a second, so the one attitude that holds speed steady is a shallow descent, sinking about 2.5 units a frame, roughly 75 a second. You cannot cruise flat forever. You glide.

That is why the Super Mario Wiki recommends taking the Tower of the Wing Cap's red coins starting with the pair on the east side and going counterclockwise: each pair sits lower than the last, and Mario slowly loses altitude while he flies.

Ukikipedia's flying page adds the efficiency tip that follows from the formula. Speed changes in step with the nose angle, but height changes with its sine, so a fast, steep dive followed by a slower, shallow climb nets more than holding one straight line.

The nose has a mind of its own

The code does one more thing every frame: it tilts Mario's nose by itself, based on his speed.

  • Above 32, the nose rises on its own, by 6 angle units a frame for every unit of speed over 32 (65,536 units make a full circle).
  • Below 32, it sinks on its own, by the same rule.
  • Below 16, it sinks faster, 10 units a frame for every unit under 32.
  • At 4 or less, it drops 1,024 units a frame, about 5.6 degrees. That is the stall: the game pushes the nose down until a dive rebuilds your speed.

So 32 is the balance point, and the two rules together explain how flying feels:

  • Hands off, Mario bobs. Faster than 32 his nose lifts and he slows; slower, it drops and he speeds up. Leave the stick alone after a triple-jump takeoff and he swings around that 4.5-degree glide, between roughly 28 and 36 speed, and our frame-by-frame model of the decompiled code has him covering about 57,000 units forward and losing about 4,600 of height over a full minute.
  • You cannot hang in the air. Haul the stick back from cruising speed and, in the same model, Mario gains about 300 units of height and runs out of speed in under two seconds, and then the stall rule takes the nose down.
  • A cannon shot climbs by itself. Fired level at 100, the nose rises about 2.2 degrees a frame with no input. Left alone, the model has Mario hitting the 60-degree limit in about a second, climbing roughly 3,000 units and stalling about three seconds after the shot. If you want to stay low, hold the stick forward.

Wing Mario seen from behind, climbing steeply toward a glaring sun through scattered white clouds in Super Mario 64; the HUD shows 100 lives and 120 Power Stars.

There is an audio cue for speed, too. When Mario's nose comes up through level while he is flying at 48 or faster, the code plays a whoosh and one of his yahoo, waha or yippee voice clips. If you hear it, you are carrying real speed into the climb.

Steering scales with speed

The stick does not set a turn rate. It sets a target, and the target is your stick position multiplied by your speed: speed divided by 4 for turning, divided by 5 for pitching. At full stick and a speed of 32, Mario's turn tops out at about 2.8 degrees a frame, around 84 degrees a second. At 16 he turns half as fast, and at 64 twice as fast.

The rate also builds up rather than snapping to the target, so in our model a full-stick U-turn at a speed of 32 takes about three seconds. Turning does cost a little speed in the code, but at the turn rates the stick can reach that cost is a small fraction of the 3-a-second that level flight already loses.

The practical rule: make big direction changes while you are fast, and do not expect a slow, stalling Mario to answer the stick.

How a flight ends

What happensWhat the code doesThe Wing CapDamage
You press ZGround pound, straight downKeptOrdinary fall-damage rules, unless you hold A
Mario touches the groundHe lands in a belly slideKeptNone: this landing skips the fall-damage check (a lava floor still burns)
Mario flies into a wallBonk: knocked backward, flight overKeptFall damage on landing if the drop is long, unless you hold A
Mario flies into a lava wallLava boostKept3 wedges
The timer runs outHe drops into a freefallGoneOrdinary fall-damage rules

Two rows of that table are the useful ones.

Touching down is free. However fast and steep you come in, the flying code sends Mario straight into a belly slide with no fall-damage test. The cap stays on, so you can stand up and triple jump straight back into the air.

Ceilings do not end a flight. Fly up into one and Mario stops against it instead of bonking. Scrape one on the way down, or fly out past the edge of the level, and you hear a thud while the game tips his nose down about 2.8 degrees a frame until he is clear. He keeps flying throughout.

Hold A: the flutter that cancels fall damage

Wing Mario flying low over the white cloud platforms of Wing Mario Over the Rainbow in Super Mario 64, between a red block and a yellow block, with two red coins sitting on the clouds and a rainbow in the lower right; the HUD shows 18 lives, 16 coins and 118 stars.

Outside of flight, the Wing Cap still changes how Mario falls. In the decompiled gravity code, if he is wearing it, falling, and A is held down, his wings flutter and gravity softens: he gains 2 units a frame of downward speed instead of 4, and tops out at 37.5 instead of 75.

That number matters because fall damage only applies when Mario hits the ground falling faster than 55 units a frame, per Ukikipedia's fall damage page and the same code. Start fluttering early in a fall and he never gets that fast, so on the N64 holding A cancels fall damage outright. The Super Mario Wiki's Wing Mario page says the same.

Put that together with the table above and you have a safe way down from any height:

  • Press Z, then hold A. The ground pound drops you straight onto your target, and holding A keeps its fall below the damage line. Without A, a ground pound speeds up like any other fall, and a drop of more than 1,150 units from the top of the ground pound's spin costs 2 wedges (4 past 3,000).
  • Hold A after a bonk. The knockback fall flutters too, as long as the cap is still on.

It does nothing during flight itself, since the flying code ignores gravity, and it is gone the moment the cap runs out. The health guide has the full fall-damage thresholds.

The timer: 60 seconds, 40 in the tower

  • A Wing Cap from a red block lasts 1,800 frames, 60 seconds, in the decompiled pickup code. Ukikipedia and the Super Mario Wiki both give a minute.
  • The Tower of the Wing Cap gives you 1,200 frames, 40 seconds, the cap you spawn with there. The tower has its own red block, so once you have pressed the switch, break it for a fresh 60.
  • A second Wing Cap tops you back up to 60. Picking up a cap only ever raises the timer.
  • It stops in a cannon, at a sign and in conversation. The timer pauses while Mario is reading, talking or sitting in a cannon, except in its last two seconds.
  • You get about two seconds of warning. With 60 frames left the Powerful Mario music fades out, and over roughly the last two seconds the wings blink on and off.
  • Red blocks come back. A cap block you break reforms about 10 seconds later. A cap you leave on the ground lasts 10 seconds, blinks for a little over one more, then vanishes.
  • Landing does not end it. Touching down leaves the cap on and the timer running.

Where you can fly

The decompiled level data puts 15 Wing Cap red blocks in six places, and the Super Mario Wiki's Wing Cap page lists the same six places:

WhereRed Wing Cap blocksCannonsGetting airborne
Bob-omb Battlefield36Triple jump or the cannon network
Lethal Lava Land1NoneTriple jump only
Shifting Sand Land31Triple jump or the cannon
Tower of the Wing Cap1NoneYou arrive flying
Wing Mario Over the Rainbow62Triple jump, or either cannon once the Bob-omb Buddy opens them
Castle Grounds (the roof)11, by the lake, at 120 starsThe cannon puts you on the roof

The course guides linked in the table cover what the wings are for in each course, the secret stars guide covers the tower and the rainbow course, and the 120-star guide covers the roof. Falling off the bottom of the tower or the rainbow course costs no life, as the lives guide explains, which makes them good places to practise.

One more pair of wings is not yours to steer. Per the Super Mario Wiki, grabbing the star Bowser leaves behind after the final fight turns Mario into Wing Mario for the ending.

What changes on DS, Switch and the 1996 cartridge

VersionFlying
Original Japanese cartridge (1996)No voice clip when you pull out of a fast dive; the code only plays the whoosh. Ukikipedia also notes that B or Z during the takeoff jump can leave the flying camera stuck behind Mario on this version
Super Mario 3D All-Stars and Nintendo Switch OnlineThey run a version of the N64 game; the version differences guide covers which build each one uses
Super Mario 64 DSA white feather called Wings replaces the Wing Cap, and only Mario can use it in the single-player game. Yoshi, Luigi or Wario hitting the same block gets a Power Flower instead. The Wings appear in the same places plus Snowman's Land and Tall, Tall Mountain, and slowing your fall no longer prevents fall damage

The DS details are from the Super Mario Wiki's pages for the Wings and for Wing Mario. The Tall, Tall Mountain guide covers the DS-only star that uses them there.

Mistakes that drop you out of the sky

  • Holding the stick back to gain height. Climbing at the limit costs about 43 speed a second, and from cruising speed you stall in under two seconds. Dive first, then climb.
  • Expecting level flight to hold altitude. It loses 3 speed a second. The steady glide sinks.
  • Leaving a cannon shot alone. At 100 speed the nose climbs by itself into a stall. Push forward to hold your line.
  • Turning while slow. Turn rate scales with speed. Make your big turns fast.
  • Pressing A or B to flap. Neither does anything in flight. The stick and Z are the whole control set.
  • Ground pounding from altitude without holding A. It is an ordinary fall without the flutter.
  • Turning during the takeoff jump. You cannot. Face your heading before the third jump.
  • Spending the cap on the ground. Break the red block only when you are ready to launch, and aim cannons at leisure, because the timer stops while you sit in one.
  • A camera stuck behind Mario after a takeoff goes wrong. Ukikipedia documents this as a Wing Cap camera glitch, triggered by landing just after starting to fly. Getting fired from a cannon, knocked back by an enemy, or leaving the course clears it.

Quick Action Checklist

  • Press the red switch first; then any red block gives you the Wing Cap.
  • Take off with a triple jump in place, or fire from a cannon; face your heading before the third jump.
  • In a cannon, take your time: the cap timer is paused while you aim.
  • Remember the plane controls: stick forward dives, stick back climbs.
  • Treat speed as altitude: dive to build speed, then trade it for height with a shallow climb.
  • Expect the nose to rise on its own above 32 speed and sink below it; at 4 or less it drops hard.
  • Turn while you are fast, because turn rate scales with speed.
  • Land without fear: touching down from flight skips the fall-damage check, and you keep the cap.
  • To come straight down from height, press Z and hold A.
  • Watch for the two-second warning: the music fades and the wings blink.
  • Practise in the Tower of the Wing Cap or Wing Mario Over the Rainbow, where a fall costs no life.

Frequently Asked Questions

How do you fly in Super Mario 64?
To fly in Super Mario 64, press the red switch in the Tower of the Wing Cap, then break a red block to put on the Wing Cap and either triple jump, which works even from a standstill while wearing it, or fire Mario out of a cannon. Push the Control Stick forward to dive and gain speed, pull it back to climb and lose speed, and press Z to end the flight in a ground pound.
How long does the Wing Cap last in Super Mario 64?
A Wing Cap from a red block in Super Mario 64 lasts 1,800 frames, 60 seconds. The one Mario arrives with in the Tower of the Wing Cap lasts 1,200 frames, 40 seconds. The timer pauses while Mario sits in a cannon or reads a sign, except in its last two seconds, and grabbing another Wing Cap resets it to 60 seconds. With about two seconds left, the music fades and the wings start to blink.
How do you gain altitude while flying in Super Mario 64?
In Super Mario 64, flying Mario gains height only by spending speed. Pull back on the stick to climb, but the climb costs speed quickly (about 43 a second at the 60-degree limit), so dive first to build speed and then pull up into a shallow climb. Above a speed of 32 the nose also rises on its own, and below 32 it sinks; the only attitude that holds speed steady is a shallow glide 4.5 degrees nose-down.
How do you stop flying in Super Mario 64?
Press Z while flying in Super Mario 64 and Mario drops out of flight into a ground pound, keeping the Wing Cap. Touching the ground while flying also ends the flight, in a belly slide that skips the fall-damage check. Flying into a wall knocks Mario backward out of flight, and the flight also ends when the Wing Cap timer runs out.
Does the Wing Cap prevent fall damage in Super Mario 64?
Yes, if you hold A. In the N64 version of Super Mario 64, holding A from early in a fall while Mario wears the Wing Cap makes his wings flutter and caps his falling speed at 37.5 units a frame, and fall damage only applies above 55, so he lands unhurt. Landing directly out of flight also skips fall damage. In Super Mario 64 DS, the Wings still slow Mario's fall but no longer prevent the damage.
Where is the Wing Cap in Super Mario 64?
Super Mario 64 has 15 Wing Cap red blocks in six places: 3 in Bob-omb Battlefield, 1 in Lethal Lava Land, 3 in Shifting Sand Land, 1 in the Tower of the Wing Cap, 6 in Wing Mario Over the Rainbow and 1 on the castle roof, which the lakeside cannon reaches once you have 120 stars. They only become solid after you press the red switch in the Tower of the Wing Cap, reached by looking up into the sunlight in the castle lobby at 10 stars.

Keep Reading

Sources & Further Reading
Last updated October 23, 2026.

Related Guides

Official Super Mario 64 artwork of Mario swimming to the right through bright blue water, arms spread mid-stroke and legs trailing behind him, with clear bubbles floating all around.
🎮Game GuidesOct 14, 2026·13 min read

Super Mario 64 Swimming Guide: Tap A, Don't Hold It

Holding A is the slow way to swim in Super Mario 64. Here is the stroke rhythm the code rewards, how the stick steers, how to jump out of the water, what each current does, and the eight seconds of free speed hiding in two clams.

Read article
Super Mario 64's Game Over screen: Mario's weary face with half-closed eyes in front of a dark red background tiled with the words GAME OVER. This is Nintendo Music's artwork for the Game Over track.
🎮Game GuidesOct 10, 2026·14 min read

Super Mario 64 Lives and Game Over: What You Actually Lose

A Game Over in Super Mario 64 is a file reload: you keep everything you saved and lose everything you did not. Here is when the game actually writes your file, exactly what a Game Over rolls back, the five courses where a fall is free, and every way to earn a life, from the coin tally to the Monty Mole streak that never runs dry.

Read article
The Super Mario 64 Original Soundtrack album cover: a large rendered Mario standing beside orange 'Original Sound Track' lettering, with several smaller Marios, a lunging Bowser and the Nintendo 64 logo around it.
🎮Game GuidesOct 2, 2026·12 min read

Super Mario 64 Music: Every Track and Where It Plays

Super Mario 64 scores 15 courses with seven songs, and only one of them belongs to a single course. Here is which track plays in every course and secret level, the five levels whose music rearranges itself as Mario moves, what triggers the boss music and the jingles, all 36 soundtrack tracks under their 1996 and current names, and where to listen today.

Read article
Mario in mid-air in the green cavern of Bowser in the Dark World, beside a white tower topped by a red octagonal platform, with a sloped green walkway set with blue crystals to the left and a wooden bridge and a yellow ! Block below him.
🎮Game GuidesSep 30, 2026·14 min read

Super Mario 64 Bowser Levels Guide: All 24 Red Coins

Bowser in the Dark World, the Fire Sea and the Sky each hide one Power Star behind eight red coins on the obstacle course in front of the fight. Here is the route through all three, where every red coin sits, and what else the level data holds.

Read article
The Mushroom Castle hub in Super Mario 64, the central room whose star doors gate access to every course.
🌱Beginner GuidesJul 20, 2026·12 min read

Super Mario 64 Beginner Guide: Your First 30 Power Stars

Super Mario 64 does not gate you on difficulty, it gates you on Power Stars. Here is exactly which doors need what, which stars are fastest to grab, and the route that gets a first-timer from one star to thirty without wandering the castle in circles.

Read article
Mario standing face to face with Yoshi on the red-tiled roof of the castle in Super Mario 64, with the star counter reading 120.
🎮Game GuidesSep 28, 2026·10 min read

Super Mario 64 120-Star Reward: Yoshi and the Castle Roof

Super Mario 64 does not announce your 120th Power Star. The reward is outside: a cannon grate that stops loading, Yoshi on the castle roof, and a gift that quietly resets the next time you load your file. Here is what 120 stars changes, checked against the wikis and the decompiled code.

Read article