Did you know…
Why do planes retract their landing gear?
Short answer
Planes retract their landing gear to cut aerodynamic drag: wheels, legs and shock absorbers exposed to the airflow slow the aircraft and force it to burn more fuel. Stowing them lets the plane fly faster and farther, and shields the mechanism from the cold and dryness of altitude. The cost is weight and complexity.
.jpg)
The drag that costs fuel
An extended landing gear is one of the least aerodynamic parts of an aircraft: legs, wheels, shock absorbers, hydraulic lines and open doors exposed to an airflow of hundreds of kilometers per hour. That geometry produces parasitic drag, drag that doesn't contribute to lift and only slows the aircraft down. On a light aircraft with fixed gear, the penalty is accepted in exchange for simplicity, but on a commercial jet extended gear increases total drag so noticeably that pilots deliberately use it as an aerodynamic brake during rapid descents. Retracting it right after takeoff allows the aircraft to accelerate, climb with less power and burn less fuel throughout the whole cruise.
Speed, range and noise
Drag increases with the square of speed, so the faster an aircraft flies, the more it costs to fly with the gear down. At an airliner's cruise speeds, around 800 to 900 km/h, extended gear would simply be unthinkable: besides the fuel burn, the aerodynamic loads on the doors and legs would exceed structural limits, which is why there's a maximum speed for flying with the gear extended, and an even lower one for operating it. Retracting it also cuts noise: the gear is one of the main sources of aerodynamic noise on approach, ahead even of idling engines on some aircraft.
Protecting the mechanism
At cruise, the outside temperature is around -55 °C and the air is extremely dry and thin. Tires, hydraulic seals and brakes fare better in the enclosed environment of the gear bays, where they also pick up some heat from nearby systems. After takeoff, the brakes are applied briefly to stop the wheels from spinning before they're stowed, preventing gyroscopic vibration from damaging the bay.
The price: weight, complexity and maintenance
Retractable gear needs hydraulic actuators, position locks, sensors, doors and a gravity-drop emergency extension procedure for when the hydraulics fail. All of that adds weight and requires inspection. That's why many trainer aircraft, light utility planes and some regional turboprops keep fixed gear, sometimes faired to recover part of the lost efficiency. Retraction becomes worthwhile once cruise speed is high enough that the fuel savings comfortably outweigh the weight and cost of the mechanism.
More questions

Physics of flight
Why can't a Corsair pilot apply full power when going around after a failed carrier landing?
Because at low speed and high power the Corsair would drop its left wing suddenly and with almost no warning, due to propeller torque. If the throttle was… more…

Physics of flight
What did the phrase "banking with intent to turn" mean among F-104 pilots?
It was a joke among Canadian F-104 pilots: banking the aircraft "with intent to turn" referred to its poor low-speed turning. Its sustained turn capability… more…

Julian Herzog (Website) (CC BY), vía commons Physics of flight
What is "flight envelope protection," which the A320 pioneered?
A set of limits embedded in the flight control software: it calculates the flight envelope, adds a safety margin, and blocks pilot inputs that would take the… more…

Julian Herzog (Website) (CC BY), vía commons Physics of flight
What is the A320's SHARP package for?
SHARP (SHort AiRfield Package) improves takeoff and landing performance on short runways and is designed to increase low-speed lift. It combines aerodynamic… more…

Physics of flight
What flaw sank Vought's all-metal V-141 fighter?
It wasn't a single flaw: tests showed the V-141 still flew poorly, was prone to spinning, and also suffered tail flutter, which is why it was rejected. It… more…

Physics of flight
What wind tunnel did NACA use to study the Corsair, and how big was it?
The full-scale 30- by 60-Foot Tunnel at the Langley Research Center, in Hampton, Virginia. NACA dedicated the facility on 27 May 1931 and used it to test the… more…