The 2012 Malaysian Grand Prix (officially the 2012 Formula 1 Petronas Malaysia Grand Prix) was a Formula One motor race held on 25 March 2012 at the Sepang International Circuit in Selangor, Malaysia. It was the fourteenth running of the Malaysian Grand Prix as a round of the Formula One World Championship, and the thirty-second time the event has been held. The 56-lap race was the second round of the 2012 Formula One season and was won by Ferrari driver Fernando Alonso. Sergio Pérez of the Sauber team finished the race in second position, and McLaren driver Lewis Hamilton completed the podium with third place after starting in pole position.

Sergio Pérez achieved his first podium finish. The Sauber team recorded their best ever result (excluding their time as BMW Sauber) and also the first podium for a Ferrari customer engine since Sebastian Vettel's victory at the 2008 Italian Grand Prix in a Ferrari-engined Toro Rosso. Jean-Éric Vergne scored his first ever points in Formula One in his second race by finishing in eighth position.

Report Background Following extended debate over the legality of the Mercedes rear wing and front-wing F-duct on the F1 W03 during the , and the threat of a protest against the system, Red Bull Racing and Lotus F1 requested a final ruling on the system ahead of the race at Sepang. On the Thursday before the race the FIA rejected all claims that the system was illegal, allowing Mercedes to compete with an unaltered car.

Caterham driver Heikki Kovalainen was given a five-place grid penalty for the race for being in breach of Article 40.8 of the sporting regulations. Article 40.8, which governs procedures for restarts under the safety car, states that no driver may overtake another until such time as he has crossed the first safety car control line on the circuit (except in the case of race control allowing lapped traffic to be released from behind the safety car). Kovalainen was penalised for passing two cars before he crossed this line during the Australian Grand Prix. Kimi Räikkönen was also given a five-place grid penalty after his team changed the gearbox in his car after Friday practice.

After struggling in the Australian Grand Prix, Ferrari prepared a brand-new F2012 chassis for Felipe Massa, with the team citing "unusual performance" of the chassis he used in Melbourne as the reason for the change. The team denied reports that they were planning to replace Massa with Sauber driver Sergio Pérez – who is a part of the Ferrari Driver Academy – while both Sauber and Pérez claimed that they had not been contacted by Ferrari.

HRT driver Pedro de la Rosa expressed confidence that his team would qualify for the race. HRT failed to qualify for the Australian Grand Prix the week before the race in Malaysia, with both de la Rosa and teammate Narain Karthikeyan failing to set a lap time within 107% of the fastest time set in the first qualifying period. De la Rosa admitted that the team did not have a Drag Reduction System (DRS) device available to them in Australia, and expected the addition of the system to the HRT F112 to yield up to a second per lap in qualifying.

Williams test driver Valtteri Bottas replaced Bruno Senna for the first practice session on Friday morning.

The race used a single DRS zone, unchanged from the 2011 race, with the detection point located on the back straight and the activation point immediately after the final turn.

Tyre supplier Pirelli brought its silver-banded hard compound tyre as the harder "prime" tyre and the white-banded medium compound as the softer "option" compound, whereas last year the "soft" compound was the yellow-banded soft compound tyre.

Free practice

Lewis Hamilton was the fastest driver in the first practice session, ahead of Sebastian Vettel and Nico Rosberg. Romain Grosjean finished the session fifth-fastest despite his car becoming stuck in seventh gear. Jenson Button was ninth overall, but was forced to end his session early after the team discovered an oil leak. Ferrari's difficult start to the season continued with Felipe Massa and Fernando Alonso finishing thirteenth and fifteenth respectively, while HRT encountered further difficulties, with Narain Karthikeyan's car crippled by transmission problems; both Karthikeyan and de la Rosa finished the session seven seconds slower than Hamilton.

Hamilton repeated his performance in the second session, setting a lap time one-tenth of a second slower than the time he posted in the first session. Michael Schumacher was second-fastest, with Jenson Button third. Bruno Senna returned to the cockpit after Williams test driver Valtteri Bottas completed the morning session in Senna's car; Senna placed nineteenth overall. After placing fifteenth in the first session, Fernando Alonso ended the day sixth-fastest, though his lap time was only a tenth of a second faster than his time in the first session. Teammate Massa languished in sixteenth, considerably slower in the afternoon than he was in the morning. Both HRT drivers managed to improve their morning times by two seconds, to end the session five seconds adrift.

A fire broke out in the premises of Lotus early on Saturday morning. The fire started with an electrical fault in the refrigerator. Lotus's reception unit and the stable's kitchen were destroyed in the fire. No one was injured in the fire.

The circuit was declared damp for the third and final practice session on Saturday afternoon after light rain fell during the GP2 support race. The damp conditions saw several drivers – most notably Lewis Hamilton – running wide early on, before a dry line was established. Despite the off-track excursions, the session was not interrupted by red flags. Rosberg topped the sixty-minute session, the only driver to go below one minute thirty-seven for all practice sessions, ahead of Vettel and Mark Webber. The Ferraris once again struggled, with Alonso in thirteenth place, 1.3 seconds behind Rosberg, and Massa in sixteenth, a further second behind. The two HRT drivers continued to languish five seconds off the pace, but were within sight of the Marussias of Timo Glock and Charles Pic.

Qualifying Unlike the cooler conditions of the previous race in Melbourne, qualifying was run under hot and sunny conditions with an ambient temperature of and a track temperature of .

The first qualifying period began with Paul di Resta leading a host of cars for their first flying lap. As expected, most teams posted their early timed laps on the slower 'prime' tyre and after ten minutes the four Mercedes powered cars from McLaren and Mercedes were ahead, led by Michael Schumacher. As in Melbourne, Felipe Massa was again in danger of being eliminated and as a result he and teammate Fernando Alonso both used a set of the medium 'option' tyre to avoid an embarrassing elimination. Late on in the session, Mark Webber also switched to the softer tyres and consequently set the fastest time of 1-minute 37.172 seconds. Significantly, both the HRT Pedro de la Rosa and Narain Karthikeyan were within the 107% time needed to qualify because of Webber's lap. A front right wheel lock-up going into the braking zone of turn 1 resulted in severe vibration and effectively eliminated Toro Rosso's Jean-Éric Vergne on his final timed run. He finished the session 18th ahead of the Caterham cars of Heikki Kovalainen and Vitaly Petrov. Kovalainen was later demoted from his 19th place slot to the back of the grid, for the first time in his career, because of a five place grid penalty he incurred at the last race for overtaking under safety car conditions. The HRTs occupied the two places in front of him, the two Marussia cars were in front of them (with Timo Glock out-qualifying rookie Charles Pic) and teammate Petrov moved up into 19th. Schumacher and Jenson Button rounded out the top three.

The second session began with Sergio Pérez the first to set a timed lap. All drivers opted for the softer compound medium tyre. Kimi Räikkönen set the fastest time in a session which saw all the cars set closely matched times. Pastor Maldonado had a minor off before turn 11 and was the quickest driver not to make the final session; his Williams teammate Bruno Senna was 13th. Ferrari driver Felipe Massa (who had a new chassis for the weekend) was 12th, closing the gap between himself and Fernando Alonso from one second, as it had been in Australia, to four tenths. Alonso, however, managed to make it into the final session. The two Force Indias qualified in 14th and 16th positions, with di Resta fractionally beating Nico Hülkenberg's time. Daniel Ricciardo was 15th for Toro Rosso, three places ahead of Vergne, whilst Kamui Kobayashi took up the last place (17th). Kobayashi's Sauber teammate, Sergio Pérez, did manage to make it into the final part if qualifying. When the chequered flag was waved Schumacher held 11th place provisionally, behind Maldonado (9th) and teammate Nico Rosberg. However, both Mercedes cars were already on hot laps before the flag was waved, and were able to complete their laps to improve their times. This pushed Maldonado outside of the top ten fastest times, meaning he couldn't participate in the final session any more.

Despite a front left wheel lock-up at the final corner, Lewis Hamilton set the fastest time by four tenths of a second upon his first attempt. He subsequently returned to the pits during his second, knowing that he already had pole position. The second McLaren of Jenson Button set the second fastest time, one tenth behind Hamilton's time, to complete the second McLaren front row lock-out in the season's two races. Michael Schumacher demonstrated the improved pace of the Mercedes car since by achieving his highest qualifying position since his return to the sport, with third place. Webber and Räikkönen set an identical time, but Webber was granted fourth position because he set his time first. Räikkönen's five place grid penalty for gearbox change meant he dropped from fifth to tenth place, despite an otherwise impressive performance from the Lotus team. This promoted Sebastian Vettel to fifth position, who had chosen to set his lap on the harder 'prime' tyres. The second Lotus of Romain Grosjean had another good qualifying with sixth place, after Räikkönen's penalty. Rosberg, Alonso and Pérez took seventh, eighth and ninth respectively on the grid. The final session was so closely fought out that the top eight drivers were separated by less than half a second.

Race Forty minutes before the race the pitwall radar read that more than thirty minutes of steady 2-3 (0 = no rain and 4 = heavy shower) intensity rain was expected at 15:50 pm local time (ten mins before race start). All drivers except the two HRT's began the race on the green banded intermediate tyre. The HRT team opted for the blue banded full wet tyres. Grosjean starting from 7th, made a good start and was third into turn 1. Schumacher and Grosjean made contact at turn 4 and both spun, losing several positions in the process and Grosjean eventually retired on lap 4 after spinning into a gravel trap. On the first lap, turn 9 to 11 was almost completely dry but the rest of the track was very wet. Pérez stopped after the first lap to change to full wets in a move that would elevate him to an eventual podium scoring position. With almost all drivers having pitted onto full wets by laps 5, the pitwall radar was shown to read "the intensity will increase to 4 from time to time" meaning heavy rain was still to come.