Is the F1 Movie Based on a True Story? What Sonny Hayes Borrows from Real Racing

No, F1 The Movie is not a true account of a driver's comeback. Brad Pitt's Sonny Hayes and his APXGP team are fictional. But Sonny's past does borrow from a real accident: Martin Donnelly's crash at Jerez in 1990. The production also took place at real Formula 1 events. Those connections deserve separate answers, because a story can use historical footage and actual racing circuits without becoming a biography.
The useful distinction is between Sonny's career and the material used to construct it. We can trace part of his backstory to a real driver, and part of the racing imagery to cars that ran on track. Neither tells us that his return to APXGP happened. The film gives an invented competitor a place inside a recognizable sport, then uses filmmaking to make that place convincing.

Sonny Hayes and APXGP Are Fictional
Sonny's comeback begins when his former teammate Ruben Cervantes, played by Javier Bardem, recruits him to help a struggling team. Joshua Pearce, played by Damson Idris, is the young driver he must work with. That setup supplies the drama: a returning veteran and a newcomer have different reasons to want the same seat at the front of the sport. It is a scripted relationship, rather than a reconstruction of two drivers' documented careers.
APXGP belongs to the film's version of Formula 1. Its presence at real venues makes the distinction easy to miss: a garage, a uniform, and a car can all exist for a production without the team having competed in the championship. The physical objects establish what the filmmakers built, not a missing chapter in the sport's history.

Martin Donnelly's Crash Informed Sonny's Past
Pitt identified Martin Donnelly's accident as the inspiration for Sonny's backstory in Formula 1's Beyond The Grid interview. Donnelly crashed during practice for the Spanish Grand Prix at Jerez in 1990. Pitt also said Donnelly allowed the filmmakers to use his footage. That is a specific historical connection, and a more useful answer than simply declaring every person and event invented.
The effects company Industrial Light & Magic describes how Donnelly's archive footage was combined with new material filmed at Brands Hatch. Digital work helped turn that material into Sonny's crash. The scene therefore has a historical source and a fictional owner: it explains what happened to Sonny within the movie. It does not make the rest of his life Donnelly's story, or turn his later comeback into an event the archive proves.

Pitt and Idris Drove Real Cars Built for the Film
The production cars were real racing machines, but they were not ordinary Formula 1 entries. Director Joseph Kosinski told F1 Explains that the crew bought Formula 2 chassis and worked with Mercedes engineers to adapt them. The cars received custom bodywork and space for the camera equipment. Pitt and Idris drove them on circuits including Silverstone and Abu Dhabi. Their on-track work was part of making a film, not an entry into the championship.
American Cinematographer's interviews with the production team confirm the use of modified F2 cars and the actors' own driving. The same account describes digital changes to the cars' appearance. Real driving and visual effects were both involved. An actor being physically behind the wheel does not establish that every competing car, background detail, or incident in the finished shot was photographed exactly as we see it.

Real Racing Did Not Eliminate Visual Effects
ILM's account gives a particularly clear example: a shot of Sonny's car heading toward a guardrail required extensive computer graphics, including changes to the surroundings, the vehicle, and even his hands. Its production breakdown corrects the tempting idea that everything around the fictional hero must be documentary footage. Lewis Hamilton's role as producer and technical adviser brought racing expertise to the project; it did not make Sonny's races historical results.
That mixture is worth understanding on its own terms. The physical driving gives the filmmakers material to work with; the invented team lets them build a comeback around a driver who never existed. Donnelly's accident adds a real reference to that driver's past. F1 borrows enough from the sport to invite the true-story question, but the answer remains specific: Sonny's comeback is fiction, made with real racing access, a historical influence, and substantial screen craft.