Saturday afternoon in Montreal, 23 May 2026. George Russell starts his final qualifying lap at the Circuit Gilles Villeneuve, 72.578 seconds later he crosses the line, and the timing screen puts his Mercedes on pole by 0.068 s from his team-mate...
In This Chapter
- 1.1 How This Book Works: Free Data, Five Readers, Four Anchors
- 1.2 Four Forces and One Law
- 1.3 Friction, μN, and Why Downforce Multiplies Grip
- 1.4 Your First Speed Trace: Python from Zero
- 1.5 Measuring g-Forces Without an Accelerometer
- 1.6 Grip Is a Budget: The Traction Circle
- 1.7 Downforce in the Data: Calibrating the Model
- 1.8 The Lap-Time Integral: Where the Time Is
- 1.9 From Physics to the Pit Wall
- Project Checkpoint: physics.py
- Chapter Summary
- What's Next
Chapter 1 — What Makes an F1 Car Fast? Forces, Grip, Power, and the Physics That Produces 5g in a Corner
Saturday afternoon in Montreal, 23 May 2026. George Russell starts his final qualifying lap at the Circuit Gilles Villeneuve, 72.578 seconds later he crosses the line, and the timing screen puts his Mercedes on pole by 0.068 s from his team-mate Andrea Kimi Antonelli, with Lando Norris's McLaren a further 0.083 s back. That is the whole story the broadcast graphic tells: a name, a time, a gap.
The car told a much longer story, and it told it about four times a second. OpenF1's free archive holds 274 samples of speed, engine rpm, gear, throttle and brake from that single lap, one every 0.240 s on median. Lay them end to end and you get Figure 1.1.

📊 Figure (described): Speed (top), throttle (middle) and brake on/off (bottom) along Russell's 1:12.578 pole lap. The trace rises to a sampled maximum of 332 km/h on the back straight, then falls to 61 km/h at the hairpin, the slowest point of the lap; six brake applications produce six speed minima. Throttle is either fully open or fully closed for most of the lap: the car spends 74.0% of the distance at 98% throttle or more.
Look at the deepest valley, around 2,600 m into the lap. The brake comes on at 279 km/h (173 mph). The car is down to 65 km/h when the brake is released, the minimum speed of 61 km/h follows a moment later, and the whole stop takes about 118 m and 3.2 s. A few seconds later the same car is accelerating hard enough to reach 332 km/h before the brake comes on again for the final chicane, where it sheds 158 km/h in 1.84 s.
Now try that in your road car. Shedding 214 km/h in about 3 seconds is an average deceleration of nearly 2 g, and, as we will measure in Section 1.5, the peak at the start of the stop is well over twice that. A road car is limited by its tyres: with a friction coefficient of about 1 (🧪 a typical assumed value for road tyres), it cannot stop much harder than 1 g. The F1 car does something else too, which is harder to see in a speed trace: it goes round corners at accelerations that would slide any road car straight off the circuit.
So here is the question this chapter answers, and in a sense the question the whole book answers:
How can a 780 kg machine on four rubber tyres brake, corner and accelerate like this, and where, exactly, does its lap time come from?
The answer runs through Newton's second law, a friction coefficient, a wing that pushes the wrong way, and one integral. By the end of the chapter you will have derived the cornering-speed equation, measured braking and cornering g-forces from free telemetry (honestly, with all the noise), confronted a textbook model with 42 real qualifying laps, and written the first module of the race simulator you will build across this book.
🏎️ Fan Track: Read every section; skip the code blocks if you want, but read the paragraph after each one, which says what the output means. Sections 1.3 and 1.6 are the two ideas you will use in every later chapter: downforce multiplies grip, and grip is a budget.
🔧 Engineering Track: Sections 1.3, 1.6 and 1.7 are yours. Derive the cornering equation yourself before reading it, then check the fitted friction coefficient and lift area in Section 1.7 against your intuition. Chapter 3 and Chapter 11 build directly on
physics.py.📊 Analytics Track: Section 1.4 is your first contact with the data and the toolkit; Section 1.5 is a lesson in estimating a quantity the data does not contain, and in how much the answer depends on your smoothing choices. Chapter 2 then teaches the full pipeline.
🎮 Sim Racer Track: The g-g diagram in Section 1.6 is the same picture your sim's telemetry tool draws. Compare a real pole lap's shape with yours.
1.1 How This Book Works: Free Data, Five Readers, Four Anchors
Before the physics, three promises and an introduction.
The free-data promise. Every lap time, gap, g-force estimate and probability in this book comes from timing data you can download without paying anything, and you can rerun every chart. Our two sources are OpenF1 (openf1.org), a free historical API covering 2023 to round 21 of 2026 (the Las Vegas GP of 22 November 2026), and Jolpica-F1, the community successor to the Ergast API, which covers results back to 1950. OpenF1 gives us laps with sector times, tyre stints, pit stops, race-control messages, weather and, for qualifying, sprint and race sessions, car telemetry at roughly 3.7 Hz: speed, rpm, gear, throttle, brake on/off and DRS state. For qualifying sessions it also has the car's position (x, y, z) on the circuit. The book's toolkit (toolkit/ in the repository) loads all of it from a local copy, so no chapter's code makes a network call.
Where a number is not something timing data can tell us (a tyre's friction coefficient, a car's lift coefficient), we say so, and we either take a sourced value from the reference tables in data/reference/ or mark the result with 🧪 as an illustrative model.
A word on FastF1. If you have followed F1 data online you have met FastF1, the best-known Python library for F1 timing. It is excellent. But since 2026 its official timing source requires an F1 TV subscription (FastF1 3.9 asks for F1 account credentials), so it is no longer a free route. This book teaches FastF1 as the optional F1 TV path in Chapter 2 and Appendix J, and every analysis runs on the free sources.
Meet Sector Four. A lap has three timing sectors; the fourth, the joke goes, is what you find in the data. Sector Four is a small online F1 analytics study group, and its five members will pop up throughout the book. They are fictional and have no connection to any real team.
- Ines Duarte, 27, a physiotherapist in Lisbon who became a fan through Drive to Survive. She asks the sharpest "but why?" questions.
- Tomasz "Tom" Kowal, 21, a mechanical engineering student and aero lead on his university's Formula Student team. Physics, aero, tyres.
- Aisha Bello, 31, a data scientist at a logistics company: strong Python, new to racing. She builds Box Box, the race strategy simulator you will build with her, one module per chapter.
- Kenji Mori, 17, a sim racer in online leagues. Braking points, racing lines, telemetry overlays.
- Ray Castellano, 61, a retired actuary who has followed F1 since the 1980s and places small, careful bets. He likes base rates and distrusts hype.
Five learning tracks. You have already seen the routing boxes. The tracks are fixed for the whole book: 🏎️ Fan (Ch 1, 3, 4, 6–10, 12–18, 19, 21, 28–29, 32–35, plus code-optional reading of Ch 22 and 27); 🔧 Engineering (Ch 1–11, then 12, 20, 22, 23, 28–30); 📊 Analytics (Ch 1–2, 12–14, 19–27, 34–37, 40); 🎮 Sim Racer (Ch 1, 3, 4, 5, 7–11, 16, 17, 19, 23); 🎰 Betting (Ch 1–2, 12–14, 16, 19–22, 26–27, 36–38).
Four anchors. Four real analyses recur across the book, each introduced once and reused:
- Anchor A, the speed trace that shows where the tenths are (Chapter 19): Verstappen's 1:26.983 against Norris's 1:26.995 in 2025 Suzuka qualifying, a 0.012 s gap traded back and forth around the lap.
- Anchor B, the degradation model that calls the pit stop (Chapter 22): the 2025 Mexico City GP, where a model fitted on early-stint data lands within 2 laps of Norris's actual stop, and a model fitted on practice data misses by 7.
- Anchor C, the safety-car gamble (Chapter 14): Singapore, where a 10,000-race simulation says the robust plan is a flexible one-stop, not the two-stop that intuition suggests.
- Anchor D, the teammate chain (Chapter 21): Hamilton and Verstappen compared through every teammate they share a link with, where the data lean towards Verstappen by about 0.1–0.3% of a qualifying lap and the size depends on the method.
Every one of those chapters stands on this one. Strategy is about tyres, tyres are about grip, and grip is physics. Let us start with the forces.
1.2 Four Forces and One Law
Strip an F1 car down to the physics and there are four forces that matter for lap time.
- Thrust (or tractive force): the forward push the tyres exert on the road when the power unit drives the rear wheels. In 2026 the power unit pairs an internal combustion engine of about 400 kW with an electric motor-generator, the MGU-K (motor generator unit, kinetic), that may deploy up to 350 kW; there is no longer an MGU-H (
data/reference/regulations_2026.md). From 2014 to 2025 the MGU-K was limited to 120 kW. Chapter 6 takes the power unit apart. - Drag: the air resisting the car's motion, growing with the square of speed.
- Downforce: the vertical aerodynamic force pushing the car into the track, also growing with the square of speed. Wings and, since 2022, a shaped floor generate it, which is the subject of Chapter 3.
- Tyre friction: the horizontal force the four contact patches can exert on the road, in any direction. Every braking, cornering and accelerating force the car experiences is ultimately a friction force at the tyres. Chapter 4 and Chapter 5 are about them.
There is a fifth, of course, weight, $mg$, which never changes during a lap except as fuel burns off. Weight and downforce together set the normal load: how hard the tyres are pressed onto the track.
The law that ties them together is Newton's second:
$$\sum \vec F = m \vec a$$
In words: the net force on the car equals its mass times its acceleration, in every direction at once. Along the direction of travel, the forward tyre force minus drag sets the longitudinal acceleration $a_x$. Sideways, the tyres must supply the centripetal force that bends the car's path, which sets the lateral acceleration $a_y$.
📐 Definition: g is the acceleration due to gravity, 9.81 m/s². An acceleration "of 4 g" is 4 × 9.81 = 39.2 m/s². Measuring accelerations in g compares them with the car's own weight: at 4 g lateral, the tyres are pushing sideways with a force four times the car's weight.
Braking: Newton in a straight line
A worked number makes this concrete. In the hook, the final-chicane stop took the car from 307 km/h to 149 km/h, a loss of 158 km/h = 43.9 m/s, in 1.84 s of brake-on time. Newton says the average deceleration is
$$\bar a = \frac{\Delta v}{\Delta t} = \frac{43.9\ \text{m/s}}{1.84\ \text{s}} = 23.9\ \text{m/s}^2 = 2.43\ g$$
In words: speed lost divided by time taken. For a 780 kg car that is an average retarding force of $m \bar a$ = 780 × 23.9 = 18.6 kN, about 2.4 times the car's weight. The tyres and the brakes do most of that work; drag helps a little.
Which raises the obvious problem. The tyres provide friction, and friction is limited by how hard the tyres are pressed into the road. On a road car that limit is roughly the car's weight times a friction coefficient near 1: about 1 g. How does an F1 car average 2.4 g over a stop, and peak far higher?
🔄 Check your understanding
- Name the four forces that matter for lap time, and say which two grow with the square of speed.
- The hairpin stop in the hook took the car from 279 km/h to 65 km/h in 3.24 s of brake-on time. What was the average deceleration in g?
Answer
- Thrust (tractive force), drag, downforce and tyre friction; drag and downforce grow with $v^2$. (Weight is the fifth force, constant over a lap apart from fuel burn.)
- Δv = 214 km/h = 59.4 m/s; 59.4 / 3.24 = 18.3 m/s² = 1.87 g. The average is low because the brake stays on into the slow corner, where there is little downforce: it is the start of the stop that is ferocious (Section 1.5).
1.3 Friction, μN, and Why Downforce Multiplies Grip
🧩 Productive struggle: Before reading on, try this. A corner has radius $R$. The tyres can produce a sideways force of at most $\mu$ times the normal load $N$. With no aerodynamics, $N = mg$. Write the maximum cornering speed. Now add a downforce $F_L = \tfrac12 \rho C_L A\, v^2$ to the normal load and try again. What goes wrong when you try to solve for $v$? Spend five minutes before you look.
The friction limit
The simplest useful model of a tyre is the one you met in school physics:
$$F_{\max} = \mu N$$
In words: the largest horizontal force a tyre can transmit is its friction coefficient times the force pressing it into the road. Here $\mu$ (the friction coefficient) depends on the rubber compound, its temperature, the track surface and much else; $N$ is the normal load. Real tyres are more subtle: $\mu$ falls as the load rises (load sensitivity), and the force builds up with a small sliding of the rubber (slip), which is what Pacejka's "Magic Formula" models in Chapter 5. But $F = \mu N$ captures the central idea: more load means more grip.
On a road car, $N$ is just the weight, so the friction limit is a fixed number of g. An F1 car cheats. Its wings and floor generate downforce:
$$F_L = \tfrac12 \rho\, C_L A\, v^2$$
In words: downforce grows with air density times the square of speed, times a car-specific lift coefficient-area product. Here $\rho$ is the air density (about 1.225 kg/m³ at sea level, 15 °C), $v$ the speed in m/s, and $C_L A$ (written ClA in our code) the product of a lift coefficient and a reference area. Teams do not publish ClA. What is published is a pair of reference points: Mercedes-AMG F1 states that downforce equals the car's weight at about 150 km/h, and that at the end of a straight it is "probably three or four times the weight of the car" (both in data/reference/engineering_reference.csv, class "team/supplier claim", c. 2022, quoting a 795 kg minimum weight).
Those two statements pin down ClA. Setting $\tfrac12 \rho\, C_L A\, v^2 = mg$ at $v$ = 150 km/h = 41.67 m/s with $m$ = 795 kg:
$$C_L A = \frac{2 m g}{\rho v^2} = \frac{2 \times 795 \times 9.81}{1.225 \times 41.67^2} = 7.33\ \text{m}^2$$
In words: the lift area that makes downforce equal weight at 150 km/h. Check it against the second reference point: at 300 km/h the speed is doubled, so downforce is four times larger, four times the weight. The two public statements are consistent with each other, which is reassuring.
That gives us an illustrative car, which is the first thing Box Box will know about the world:
🧪 Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. Mass 780 kg (the 2026 qualifying minimum of 726 kg plus a nominal tyre mass, with the FIA's headline figure of 768 kg including tyres, plus a little fuel:
regulations_by_season.csv); ClA 7.33 m² (from the Mercedes reference point above); CdA 1.30 m² (assumed); μ = 1.6 (assumed); ρ = 1.225 kg/m³.
from boxbox import physics as ph
car = ph.CarParams() # 🧪 every default is an assumption
f = ph.forces([80, 100, 150, 200, 250, 300, 330], car)
print(f[["speed_kmh", "downforce_n", "drag_n", "downforce_over_weight", "grip_limit_g"]])
speed_kmh weight_kN downforce_kN drag_kN normal_kN max_tyre_force_kN downforce_over_weight grip_limit_g
80.0 7.7 2.2 0.4 9.9 15.8 0.29 2.06
100.0 7.7 3.5 0.6 11.1 17.8 0.45 2.32
150.0 7.7 7.8 1.4 15.4 24.7 1.02 3.23
200.0 7.7 13.9 2.5 21.5 34.4 1.81 4.50
250.0 7.7 21.7 3.8 29.3 46.9 2.83 6.13
300.0 7.7 31.2 5.5 38.8 62.1 4.07 8.12
330.0 7.7 37.7 6.7 45.4 72.6 4.93 9.49
Read the last column. With these assumed parameters, the friction limit of the car is about 2 g at 80 km/h, 4.5 g at 200 km/h, and an implausible 8 g at 300 km/h. Hold on to that word implausible: the published figures are "sustained forces of around 4–5 g" in fast corners with peaks near 6 g (Formula1.com, January 2026, in the reference table). Our model car is too optimistic at high speed, and in Section 1.7 the data will tell us why. For now the important thing is the shape: grip grows with speed, and it grows fast.

📊 Figure (described): Downforce and drag divided by the car's weight, from 0 to 340 km/h, for the illustrative car. Downforce crosses 1× weight at 149 km/h (the reference point) and reaches about 4× at 300 km/h, inside the published 3–4× band; drag reaches about 0.7× weight. Both curves are parabolas because both forces grow with speed squared.
The cornering-speed equation
Now the derivation you tried in the productive struggle. A car going round a flat corner of radius $R$ at speed $v$ needs a centripetal force $m v^2 / R$. The tyres can supply at most $\mu N$. Without downforce:
$$\frac{m v^2}{R} \le \mu m g \quad\Rightarrow\quad v_{\max} = \sqrt{\mu g R}$$
In words: without aerodynamics the limit depends only on grip and radius, not on the car's mass. Mass cancels because a heavier car needs more force but gets proportionally more grip.
With downforce, the normal load grows with speed:
$$\frac{m v^2}{R} \le \mu \left(m g + \tfrac12 \rho\, C_L A\, v^2\right)$$
Collect the $v^2$ terms:
$$v^2 \left(\frac{m}{R} - \frac{\mu \rho C_L A}{2}\right) \le \mu m g \quad\Rightarrow\quad v_{\max}^2 = \frac{\mu g R}{1 - \dfrac{\mu \rho\, C_L A\, R}{2m}}$$
In words: the no-downforce answer, divided by a factor that shrinks as the corner gets bigger. The denominator is where the struggle bites: when $R$ reaches
$$R^{*} = \frac{2m}{\mu \rho\, C_L A}$$
the denominator hits zero. Above $R^*$, every extra km/h brings more downforce than the corner demands. The point-mass model then says the corner is never grip-limited: it is flat out, and the car's speed there is limited by power and drag instead. For our illustrative car, $R^*$ = 2 × 780 / (1.6 × 1.225 × 7.33) = 109 m.
A worked number. Take a 60 m corner. Without downforce, $v = \sqrt{1.6 \times 9.81 \times 60} = 30.7$ m/s = 110.5 km/h. With downforce, the denominator is $1 - 1.6 \times 1.225 \times 7.33 \times 60 / (2 \times 780) = 1 - 0.553 = 0.447$, so $v^2 = 941.8 / 0.447 = 2{,}105$ m²/s² and $v$ = 45.9 m/s = 165.2 km/h: 50% faster on the same tyres.
R = 15 m: no downforce 55.2 km/h | with downforce 59.5 km/h | ratio 1.08
R = 30 m: no downforce 78.1 km/h | with downforce 91.8 km/h | ratio 1.18
R = 60 m: no downforce 110.5 km/h | with downforce 165.2 km/h | ratio 1.49
R = 100 m: no downforce 142.6 km/h | with downforce 507.3 km/h | ratio 3.56
The 15 m hairpin gains only 8% from downforce; the 60 m corner gains 49%. And the 100 m corner's "507 km/h" is the model telling you that the corner is past $R^*$: in reality it would be taken at whatever speed the straight before it allows. That is the single most important consequence of downforce: it matters more the faster the corner.

📊 Figure (described): Maximum cornering speed against corner radius for the illustrative car with downforce (solid), the same tyres without downforce (dashed), and a sensitivity case with μ = 1.3 (dotted). The curves are close together below about 30 m and diverge sharply above it; the downforce curve shoots upwards near the flat-out radius R* = 109 m. Slow corners are mechanical-grip corners, fast corners are aero corners.
🔍 Why this works: Downforce is free normal load. Weight also adds normal load, but it adds mass in exactly the same proportion, so the g-limit stays at μ. Downforce adds load without adding mass. The ratio of grip to mass therefore climbs with speed: $a_{\max}/g = \mu\,(1 + F_L/mg)$. That one expression explains why the F1 car can corner at several g, why its braking is strongest at the start of a stop (when it is fastest), and why a car that loses downforce behind another car (Chapter 3 and Chapter 35) loses most in fast corners.
⚠️ Common pitfall: Treating the point-mass model as a lap-time predictor. It ignores load transfer between the axles and from side to side (Chapter 8), tyre load sensitivity, banking, kerbs, the driver, and the fact that corners are not circles. It is a thinking tool: it tells you which way and roughly how much. When you need a number, calibrate it against data, which is exactly what Section 1.7 does.
📺 On the broadcast: when a commentator calls a corner "a real downforce corner" (Copse, Pouhon, the Suzuka Esses) they mean a corner above or near $R^*$ for the car's setup, where the limit is set by the aerodynamics rather than by the tyres alone. When they say a car "lacks low-speed grip", they mean the slow corners at the left of Figure 1.4, where downforce helps little and mechanical grip, which means tyres and suspension, decides.
1.4 Your First Speed Trace: Python from Zero
Physics without data is opinion. Let us get the data on screen. If you have never written Python, this section is for you: we go line by line. Chapter 2 then teaches the whole pipeline (how the archive is built, cleaned and joined), and Appendix A is a pandas primer.
Install the stack
You need Python 3.13 and a handful of free libraries. From a terminal in the book's root folder:
python -m pip install -r requirements.txt # pandas, numpy, scipy, statsmodels, scikit-learn, matplotlib, pyarrow
pandas holds tables (a DataFrame is a spreadsheet you can program), numpy does fast arithmetic on arrays, matplotlib draws charts and scipy and statsmodels do signal processing and statistics. The book's data snapshot lives in data/processed/ (tables) and data/raw/openf1/ (telemetry files), and the toolkit reads both.
Import the toolkit
Every chapter script starts with the same short header:
import sys
from pathlib import Path
sys.stdout.reconfigure(encoding="utf-8") # print accented driver names correctly on Windows
BOOK = Path(__file__).resolve().parents[3] # the book's root folder, three levels up from code/
sys.path.insert(0, str(BOOK)) # so Python can find toolkit/
sys.path.insert(0, str(BOOK / "project")) # so Python can find boxbox/
import matplotlib
matplotlib.use("Agg") # draw charts to files, no window needed
from toolkit import f1data, metrics, plots, telemetry, history
sys.path is the list of folders Python searches when you write import; we add the book's root so that toolkit is found. The toolkit has five modules: f1data (OpenF1 tables), telemetry (car data and positions), metrics (the book's standard definitions, such as a "clean lap"), history (Jolpica, 1950 onward) and plots (the house chart style).
Load one session
session = f1data.session(2026, "villeneuve", "Q") # 2026 Canadian Grand Prix, qualifying
res = f1data.results(session).sort_values("position") # the classification, P1 first
pole = res.iloc[0].acronym # .iloc[0] = first row; .acronym = its 'acronym' column
lap = telemetry.fastest_lap_telemetry(session, pole) # every telemetry sample of that driver's fastest lap
f1data.session takes a year, a circuit (or GP name, or round number) and a session kind ("Q" for qualifying, "R" for the race) and returns one row describing the session. results returns a table; .sort_values("position") sorts it. fastest_lap_telemetry finds the driver's fastest timed lap in the laps table and cuts that lap's samples out of the session-long telemetry file. Running code/01_first_speed_trace.py prints:
Top five:
position acronym team_ref q3_s gap_to_leader_s
1 RUS mercedes 72.578 0.000
2 ANT mercedes 72.646 0.068
3 NOR mclaren 72.729 0.151
4 PIA mclaren 72.781 0.203
5 HAM ferrari 72.868 0.290
Pole lap: RUS, lap 23, 72.578 s, 274 samples, median spacing 0.240 s
time_s distance_m speed n_gear throttle brake
0.00 0.00 278.32 7 100.0 0
0.08 6.27 279.00 7 100.0 0
0.40 31.07 279.00 7 100.0 0
0.60 46.60 280.00 7 100.0 0
0.84 65.30 281.00 7 100.0 0
1.16 90.32 282.00 7 100.0 0
Each row is one sample. time_s counts from the start of the lap; speed is in km/h; n_gear is the gear; throttle is 0–100%; brake is 0 or 100 only, because OpenF1 records the brake as on or off, not as a pressure. Notice the irregular spacing (0.08 s, then 0.32 s, then 0.20 s): the samples arrive at about 3.7 per second, not on a fixed clock. The first row was interpolated exactly at the timing line.
And distance_m? It is not measured. No channel says how far the car has travelled; the toolkit integrates speed over time, $d(t) = \int_0^t v\,dt'$, using the trapezoid rule. That integration runs slightly short: Russell's lap integrates to 4,321 m against the official 4.361 km, 0.9% short. The book's circuit profiles find a median of −0.83% across 44 qualifying sessions. Keep that in mind whenever two laps are compared metre by metre.
Plot it
fig, (a1, a2, a3) = plt.subplots(3, 1, sharex=True, height_ratios=[3, 1.1, 0.7]) # three stacked panels
a1.plot(lap.distance_m, lap.speed) # speed against distance
a2.plot(lap.distance_m, lap.throttle) # throttle against distance
a3.fill_between(lap.distance_m, 0, lap.brake / 100, step="post") # brake on/off as blocks
a1.set_ylabel("Speed (km/h)")
plots.savefig(fig, CHAPTER_DIR, "ch01-fig-01-canada-pole-speed-trace")
That is Figure 1.1. The script also prints the summary numbers:
Top speed (sampled): 332 km/h at 3349 m
Slowest corner: 61 km/h at 2655 m
Corners found (speed minima, prominence 20 km/h): 6
Full-throttle share of lap distance (throttle >= 98 %): 74.0 %
Integrated lap distance: 4321 m
Biggest braking zones (brake-on runs >= 0.3 s, drop >= 20 km/h):
start_m length_m duration_s entry_speed_kmh min_speed_kmh mean_decel_g
2533.85 118.34 3.24 279.0 65.0 1.87
152.01 155.83 3.80 257.0 82.0 1.30
3736.27 108.02 1.84 307.0 149.0 2.43
1129.62 98.63 2.44 235.0 96.0 1.61
The toolkit's corners_from_speed finds corners as local speed minima that recover by at least 20 km/h on both sides, so a flat-out kink is not a "corner" here, and the numbering follows lap order, not the official turn numbers. braking_zones finds runs of brake-on samples. Because the brake channel is on/off and sampled every quarter of a second, a braking point is located only to within roughly 10–20 m at high speed.
📺 On the broadcast: the speed trace is the "telemetry" graphic the TV director cuts to when two drivers are close, usually overlaid with the rival's lap. Now you know what it is built from: four samples a second of speed, with distance integrated rather than measured. When the graphic shows a driver "braking 5 m later", remember that 5 m at 300 km/h is less than a quarter of the distance between two samples.
Finally, if a session has position data (qualifying sessions do), the same lap goes onto a map:
fig = plots.track_map(lap, color_by="speed", corners=telemetry.corners_from_speed(lap))

📊 Figure (described): The Circuit Gilles Villeneuve traced from the car's x/y position samples, coloured from dark (slow) to bright (fast), with the six speed minima numbered in lap order. The long bright stretches are the straights; the hairpin and the chicanes show up as dark knots. This lap is the raw material for the lateral-g estimate in Section 1.5.
📋 Try it: Analyze this session. Change two words in
code/01_first_speed_trace.pyto load the 2026 Monaco GP qualifying session ("monaco") and rerun it. Before you look at the output, predict: will the top speed be higher or lower than Montreal's 332 km/h? Will the full-throttle share be above or below 74%? How many corners will the 20 km/h prominence rule find?
Reveal
The book's circuit profiles (median of the top five qualifying laps, 2026) give Monaco a top speed of 286 km/h, a full-throttle share of 52.6% and 11 braking zones; Montreal's profile is 331 km/h, 73.3% and 7. Your single pole lap will differ slightly from the five-lap medians, which is the point of medians. Monaco's lowest corner speed in the profile, 45.7 km/h at the hairpin, is the lowest of any 2026 circuit in the profiles.
🔄 Check your understanding
- Why is
distance_mslightly shorter than the official lap length?- The brake channel reads 100 for 13 consecutive samples. Can you tell whether the driver was braking harder at the start or the end of that run?
Answer
- It is integrated from sampled speed. Between samples the integration assumes speed changes linearly, the speed itself is rounded to whole km/h, and the car's true path is not perfectly captured by a quarter-second clock; the net effect in this archive is a shortfall of about 0.5–1.7%.
- No. The channel is on/off. The deceleration (from the speed channel) tells you how hard the car was slowing, which is what Section 1.5 estimates; brake pressure itself is not in the data.
1.5 Measuring g-Forces Without an Accelerometer
Teams measure accelerations directly with accelerometers and inertial units. OpenF1 has no g channel: no accelerometer, no steering angle, no brake pressure, no tyre temperature, no ride height. What we do have is speed, about four times a second, and position. From those two we can estimate both components of acceleration. This section shows how, and how much the answer depends on choices you have to make.
Longitudinal g from the speed channel
Longitudinal acceleration is the rate of change of speed, $a_x = dv/dt$. The naive estimate is the difference quotient between consecutive samples:
$$a_x \approx \frac{v_{i+1} - v_i}{t_{i+1} - t_i}$$
In words: speed change between two samples divided by the time between them. The problem is resolution. Speed arrives in whole km/h, so one step of 1 km/h over a typical 0.24 s gap is already 0.12 g, and a timestamp that is a few hundredths of a second off turns a smooth deceleration into a spike. The standard remedy is to smooth before differentiating. We resample speed onto a regular 0.05 s grid and fit a Savitzky–Golay filter, which fits a low-order polynomial in a moving window and takes its derivative analytically:
def longitudinal_g(tel, window_s=1.0, dt=0.05):
t = tel.time_s.to_numpy(float)
v = tel.speed.to_numpy(float) / 3.6 # km/h -> m/s
tg = np.arange(t[0], t[-1], dt) # regular time grid
vg = np.interp(tg, t, v) # speed on that grid
n = max(5, int(round(window_s / dt)) | 1) # window length in points (odd)
a = savgol_filter(vg, n, 2, deriv=1, delta=dt) / G # quadratic fit, first derivative, in g
return pd.DataFrame({"time_s": tg, "distance_m": np.interp(tg, t, tel.distance_m), "ax_g": a})
The window length is the key choice, so code/03_g_forces_from_telemetry.py tries four:
Raw dv/dt between samples: min -5.66 g, max 2.48 g, resolution of one 1 km/h step over 0.24 s = 0.12 g
Longitudinal g vs smoothing window (Savitzky-Golay, order 2):
window_s peak_braking_g peak_accel_g braking_held_0p5s_g
0.25 -5.66 2.48 -4.46
0.50 -4.83 1.96 -4.33
1.00 -4.02 1.70 -3.84
1.50 -3.46 1.68 -3.38
The peak braking deceleration on Russell's lap is anywhere from 3.5 g to 5.7 g depending on the window. That is not a bug, it is the lesson. A short window keeps the true peak but also keeps the noise; a long window kills the noise but also flattens the peak, because the deceleration really does change quickly as the car slows and loses downforce. The column on the right is more robust: the largest deceleration held for half a second (a rolling median), which moves only from 4.5 to 3.4 g across the same range. We adopt a 0.5 s smoothing window and quote "held for 0.5 s" values as the headline: about 4.3–4.8 g at the start of the hairpin stop.
🧪 Illustrative model: the smoothing windows (0.5 s longitudinal, 1 s lateral) are analysis choices, not measured quantities. Every g value in this chapter is an estimate whose size depends on them; the tables in this section report the sensitivity.
Lateral g from the track map
Lateral acceleration needs the shape of the path. For a car moving at speed $v$ along a curve with radius $R$,
$$a_y = \frac{v^2}{R} = v^2 \kappa = v\,\omega$$
In words: speed squared times the path's curvature ($\kappa = 1/R$), or equivalently speed times the rate at which the car's heading turns ($\omega$, the yaw rate in steady cornering). Speed we have. Curvature must come from the x/y positions, and curvature is a second derivative of position, which is where noise goes to multiply.
How noisy are the positions? On Antonelli's 2026 British GP pole lap, each position sample sits a median of 0.4 m (90th percentile 1.4 m) off the straight line through its two neighbours. That sounds small, but with samples 20 m apart at 300 km/h, a 1 m wobble implies a radius of a few hundred metres that is not there, and at 300 km/h ($v^2$ = 6,944 m²/s²) a spurious radius of 200 m is 3.5 g of fake cornering. Computing curvature from one lap's positions gave us 9–15 g peaks at Suzuka in early tests, which is physically impossible.
So the toolkit-side function physics.reference_line does three things:
- It smooths one lap's path heavily (a 120 m window) into a base line.
- It projects every car's fastest-lap samples (all laps within 107% of pole, typically 20–22 cars and over 6,000 points) onto that base line, and takes the median sideways offset in 4 m bins. Averaging two dozen laps cuts the scatter roughly fivefold.
- It shifts the base line by that offset and computes curvature with a 40 m Savitzky–Golay window.
Then lateral_g_windowed converts heading change into acceleration over a 1 s window, $a_y \approx \bar v \cdot |\Delta\psi| / \Delta t$, which needs only first differences of the averaged line and is far less noise-sensitive than $v^2 \kappa$ sample by sample. The price: it cannot see a peak shorter than a second, and in a fast left-right chicane the heading changes cancel inside the window, so the estimate dips towards zero mid-chicane.
Lateral g vs method and line-smoothing window:
line_window_m curvature_peak_g curvature_held_1s_g heading_1s_peak_g
30 5.46 4.08 3.93
40 5.20 3.77 3.93
60 4.76 3.58 3.93
80 4.39 3.56 3.93
heading-rate window 0.5 s: peak 5.12 g
heading-rate window 1.0 s: peak 3.93 g
heading-rate window 1.5 s: peak 3.77 g
The heading-rate estimate (right column) does not depend on the curvature window at all, which is why we prefer it; it does depend on its own time window (5.1 g at 0.5 s, 3.9 g at 1 s). Montreal is a circuit of chicanes and slow corners, so its peak lateral load is modest: about 3.9 g averaged over a second.

📊 Figure (described): Three panels against lap distance for Russell's pole lap. Middle: the raw difference quotient (grey) spikes to −5.7 g, while the 0.5 s smoothed estimate (orange) shows six braking events peaking between about −3 g and −4.8 g and acceleration phases of 1–2 g. Bottom: lateral g from sample-by-sample curvature (grey) and from the 1 s heading-rate method (green), peaking near 4 g in the fastest direction changes. Braking peaks and lateral peaks sit side by side, rarely on top of each other.
⚠️ Common pitfall: Quoting the single-sample maximum of a derived quantity. On Russell's lap the raw difference quotient says −5.66 g; a maximum taken from a noisy series is biased upwards, because the largest value is usually the largest error. Quote a peak that is held for a stated time, give the smoothing, and show the sensitivity.
Every circuit, both seasons
code/04_peak_g_by_circuit.py repeats the estimate for every qualifying session of 2025 and 2026 on disk, taking the fastest lap that passes a quality gate (no frozen telemetry stretch over 2 s, no sample gap over 1.5 s, no speed jump implying more than 8 g between two samples, integrated distance within −3%/+2% of the official length). The gate is not a formality: the book's data checks found frozen stretches longer than 2 s in about 9.4% of the fastest 2026 qualifying laps, including the 2026 Suzuka pole lap, so our Suzuka 2026 value comes from Piastri's lap, the fastest one that passes. Two sessions were wet and are excluded (2025 Las Vegas, the 2026 Brazilian GP at Interlagos).
Sessions: 44 (42 dry); with lateral estimate: 42 dry
2025: braking held 0.5 s median 4.49 g (range 3.57-5.54, n = 22); lateral 1 s median 5.97 g (range 4.16-7.90, n = 22)
2026: braking held 0.5 s median 3.85 g (range 3.42-4.48, n = 20); lateral 1 s median 5.40 g (range 3.72-6.83, n = 20)

📊 Figure (described): For each of 20 dry 2026 qualifying sessions, the peak braking deceleration held for 0.5 s (squares) and the peak 1 s-average lateral acceleration (circles), against the published bands. Braking sits between 3.4 and 4.5 g, below the published "up to 6 g"; cornering ranges from 3.7 g (Mexico City, Montreal) to 6.8 g (Shanghai), mostly inside or just above the published 4–5 g sustained band.
How do these compare with what has been published? The reference table quotes, for the current era, "up to 6 g" under heavy braking and "sustained forces of around 4–5 g" in high-speed corners with peaks near 6 (Formula1.com, January 2026, class "official"), a measured peak of 5.6 g for Hamilton through Turn 7 at Mugello in 2020 (same source), and "over 5 g" at Suzuka's Turn 1 in 2024 (Mercedes-AMG F1, "team/supplier claim"). Three honest conclusions:
- Braking estimates land in the right range but below the brochure peaks. A 0.5 s hold is not an instantaneous peak; the instantaneous figure from a 0.25 s window reaches 5.7 g in Montreal and 6.7 g on Piastri's 2025 Zandvoort lap. Case Study 2 checks the braking estimates stop by stop against Brembo's published figures.
- Lateral estimates are less trustworthy, and above about 6 g we would not trust them at all. Five 2025 laps (Losail, Jeddah, Albert Park, Suzuka, Zandvoort) come out between 6.9 and 7.9 g. Nothing published supports cornering at 7.9 g. The likely culprits are residual position noise amplified by $v^2$, and the possibility that the position feed's processing sharpens some corners; the data cannot tell us which. At Suzuka, every car's samples share the same sharp kink on the approach to Degner, which points to the feed rather than the cars.
- The comparison between seasons is more robust than either level. The same method, applied the same way to both years, says 2026 pole laps brake about 0.6 g less hard (median 4.49 → 3.85 g) and corner about 0.6 g less hard (5.97 → 5.40 g) than 2025's. That is what you would expect from the 2026 rules, which cut downforce, and it lines up with the book's 2026-versus-2025 comparison: same-circuit dry pole laps were a median 2.097 s (2.48%) slower in 2026 (Chapter 29).
⚠️ Common pitfall: Comparing your estimate with a published figure as if both measured the same thing. "Up to 6 g" is a peak from an accelerometer at an unspecified sampling rate, perhaps from a different car generation; ours is a 0.5 s hold derived from a speed channel at 3.7 Hz. Before you call a figure "wrong", make sure you are comparing like with like: the same quantity, the same averaging, the same era.
🔄 Check your understanding
- Why does a longer smoothing window lower the estimated peak braking g?
- Why does the lateral estimate get worse at high speed, even if the position noise is the same everywhere?
Answer
- The window averages the derivative over its length; braking deceleration is highest at the start of the stop and falls as speed (and downforce) falls, so averaging over a longer stretch mixes the peak with lower values.
- Because $a_y = v^2 \kappa$: an error in curvature is multiplied by speed squared. The same 1 m wobble produces nine times as much fake g at 300 km/h as at 100 km/h.
1.6 Grip Is a Budget: The Traction Circle
🚪 Threshold concept: grip is a budget. The tyres can deliver one total horizontal force, in any direction. Braking, cornering and accelerating all draw on that same budget. Once you see a lap as a running negotiation over how to spend it, every driving and setup question in this book changes shape.
Section 1.3 treated cornering as if the tyres had nothing else to do. They do. The friction limit $F_{\max} = \mu N$ is a limit on the total horizontal force, whatever its direction. If the tyres are already braking with a force $F_x$, the sideways force they can add is only what is left:
$$\sqrt{F_x^2 + F_y^2} \le \mu N \quad\Longleftrightarrow\quad \sqrt{a_x^2 + a_y^2} \le \mu \left(g + \frac{F_L}{m}\right)$$
In words: the combined acceleration, forwards-backwards and sideways, cannot exceed the friction limit, which itself grows with downforce. Drawn on axes of $a_y$ against $a_x$, the allowed region is a disc: the traction circle (or friction circle). Real tyres give a little more longitudinally than laterally and their limits differ between braking and driving, which turns the circle into a friction ellipse (Chapter 5). And a car is also limited by its power: above low speeds it cannot use the full grip budget for acceleration, so the top of the circle is cut off by the engine, not the tyres.

📊 Figure (described): The friction limit of the illustrative car as circles in the lateral-longitudinal plane at 80, 180 and 300 km/h, with radii of 2.1, 4.0 and 8.1 g. The circle grows with speed because downforce adds normal load. The model is deliberately naive (no ellipse, no power limit); its 8 g at 300 km/h overshoots the published peaks, a problem Section 1.7 diagnoses.
The budget in the data
Put the two estimates from Section 1.5 on one time grid and plot one against the other, and you have a g-g diagram: every moment of the lap as a dot in the traction circle.
gg = lon.merge(lat_w[["time_s", "ay_g"]], on="time_s").dropna() # join on the 0.05 s time grid
gg["combined_g"] = np.hypot(gg.ax_g, gg.ay_g) # sqrt(ax^2 + ay^2)

📊 Figure (described): Each dot is one 0.05 s instant of Russell's pole lap, at its estimated lateral g (x) and longitudinal g (y), coloured by speed, with reference circles at 2 g and 4 g. The dots fill a rough half-disc: straight-line braking down to about −4.8 g sits on the vertical axis, cornering out to about 4 g on the horizontal, and the combined phases (trail braking into corners, accelerating out) arc between them. Acceleration never exceeds about 2 g: the top of the budget is cut off by power, not grip.
Peaks on the pole lap: braking -4.83 g, acceleration 1.96 g, lateral (1 s) 3.93 g, combined 4.83 g
0-150 km/h: 95th percentile of combined g = 3.11 g (n = 345 grid points)
150-250 km/h: 95th percentile of combined g = 3.60 g (n = 526 grid points)
250-400 km/h: 95th percentile of combined g = 3.16 g (n = 561 grid points)
Share of lap time with combined g above 2 g: 30.7 %; above 3 g: 10.6 %
Share of lap time with |longitudinal| < 0.3 g and lateral < 0.5 g (straight, steady): 11.5 %
Share of lap time accelerating at > 0.3 g: 45.3 %; braking at < -0.3 g: 26.7 %
Three things stand out. First, the shape: the dots hug the axes at the extremes. The hardest braking happens almost in a straight line, the hardest cornering happens with little braking, and in between the driver trades one for the other. That is the traction circle being respected. Second, the top half is flat: acceleration tops out around 2 g, far inside the grip budget at speed, because the car is power-limited almost everywhere except the exit of slow corners. Third, how little of the lap is "cruising": only 11.5% of Russell's lap is spent neither accelerating, braking nor cornering appreciably, while 45.3% is spent accelerating and 26.7% braking. A qualifying lap is a continuous negotiation with the grip budget.
Note what the 95th percentiles do not show. If the budget grew with speed as fast as the naive model says, the 250–400 km/h band would show far higher combined g than the slow band. It does not (3.16 g against 3.11 g), but that is mostly because Montreal has no fast corners: above 250 km/h the car is on a straight, using its budget for nothing much. The budget is there; the circuit does not ask for it.
Ines: So when the driver's braking, he literally can't turn as hard?
Tom: Not with the same tyres at the same instant. Every newton of braking is a newton he can't use sideways. That's why they brake in a straight line first and only bleed the brake off as they turn in.
Kenji: Trail braking. In the sim you feel it as the front washing out if you turn in with too much brake still on.
Aisha: And the dots show exactly that trade. I'll put the circle in Box Box so the simulator can't cheat it.
📋 Try it: Compare these drivers. In 2026 Mexico City qualifying, Lewis Hamilton (Ferrari) took pole by 0.009 s from George Russell (Mercedes). Modify
code/03_g_forces_from_telemetry.pyto build the g-g diagram for both laps (ph.lap_g_forces(session, driver="HAM")anddriver="RUS"). Before you run it, predict whose diagram will be fuller near the 3–4 g ring. Then compute, for each driver, the share of the lap with combined g above 3 g. What would a 0.009 s gap look like on a g-g diagram?
Reveal
At a 0.009 s gap the diagrams are nearly indistinguishable, and the difference in "share above 3 g" is smaller than the uncertainty of the lateral estimate. That is itself the answer: a g-g diagram shows how a car uses its grip, not reliably who was faster by a hundredth. For that you need the distance-aligned delta trace of Chapter 19 and Chapter 23. Case Study 1 shows the two laps' speed traces and the delta.
🔄 Check your understanding
- A car is braking at 3 g in a corner where its combined limit is 5 g. Using the circle, how much lateral acceleration is still available?
- Why is the top half of a real g-g diagram flatter than the bottom half?
Answer
- $\sqrt{5^2 - 3^2} = 4$ g. Note that braking used 60% of the radius but only 36% of the "budget" in the squared sense; easing off the brake a little frees a lot of cornering.
- Forward acceleration is limited by the power unit, not by tyre grip, at all but low speeds, so the car never reaches the top of its friction circle. Braking uses tyres and brakes, which can reach the limit.
1.7 Downforce in the Data: Calibrating the Model
Section 1.3 gave us a model with an embarrassing prediction: 8 g at 300 km/h. Section 1.5 gave us noisy but real estimates. Now we put them together, and the data gets to correct the model.
The lateral limit, from the cornering equation, is
$$\frac{a_{y,\max}}{g} = \mu + \frac{\mu \rho\, C_L A}{2 m g}\, v^2$$
In words: lateral grip in g is a constant (the tyres' friction coefficient) plus a term that grows with speed squared (the downforce). That is a straight line in $v^2$. If we can find moments where the car is at the lateral limit, we can plot measured $a_y$ against $v^2$: the intercept estimates $\mu$, and the slope estimates $\mu \rho C_L A / 2mg$.
Where is a qualifying car at its lateral limit? To a first approximation, at the apex of each corner, the speed minimum, where the driver has finished braking and not yet begun to accelerate hard, so the whole grip budget is pointing sideways. code/05_downforce_in_the_data.py collects every apex (speed minimum) on every dry 2025 and 2026 qualifying lap that passed the quality gate, estimates $a_y$ there from $v^2 \kappa$ on the averaged track line, and fits the line.
for _, c in telemetry.corners_from_speed(tel).iterrows():
m = (lat.distance_m - c.distance_m).abs() <= 15 # within 15 m of the apex
apex.append(dict(year=year, v_kmh=c.min_speed_kmh, ay_g=lat.ay_g[m].median()))
A = pd.DataFrame(apex)
A["v2"] = (A.v_kmh / 3.6) ** 2 # v^2 in m^2/s^2
ols = sm.OLS(A.ay_g, sm.add_constant(A.v2)).fit() # a_y = b0 + b1 * v^2
sm.OLS is ordinary least squares from statsmodels; add_constant adds the intercept column. The output:
Apex points: 294 from 42 dry laps; braking stops: 267
2025: n = 150 apexes; OLS a_y/g = 1.117 + 9.251e-4 · v² R² = 0.61
bootstrap 95% CI intercept 0.89–1.30; slope 7.83e-4–11.09e-4
Huber robust: 1.099 + 9.363e-4 · v²
implied (mass 810 kg, rho 1.163): mu = 1.117, ClA = 11.32 m², downforce = weight at 125 km/h, predicted limit at 100/200/300 km/h = 1.83, 3.97, 7.54 g
median apex a_y: below 120 km/h 1.71 g (n = 68); 180 km/h and above 4.32 g (n = 34)
2026: n = 144 apexes; OLS a_y/g = 1.510 + 6.666e-4 · v² R² = 0.42
bootstrap 95% CI intercept 1.18–1.76; slope 4.42e-4–9.72e-4
Huber robust: 1.332 + 8.322e-4 · v²
implied (mass 780 kg, rho 1.153): mu = 1.51, ClA = 5.86 m², downforce = weight at 171 km/h, predicted limit at 100/200/300 km/h = 2.02, 3.57, 6.14 g
median apex a_y: below 120 km/h 1.83 g (n = 84); 180 km/h and above 4.05 g (n = 19)

📊 Figure (described): Each point is one corner apex on a dry 2025 (orange) or 2026 (blue) pole-quality qualifying lap: estimated lateral g against apex speed squared, with the apex speed on the top axis. Both seasons show the rising straight line the downforce model predicts: corners taken below 120 km/h sit around 1.7–1.8 g, corners above 180 km/h around 4.0–4.3 g. The 2026 line starts higher and climbs less steeply than 2025's; the scatter around both lines is large.
Read it carefully, because there is a lot here.
The shape is right. Faster corners really are taken at higher g. The median apex below 120 km/h is 1.7–1.8 g; the median above 180 km/h is 4.0–4.3 g. A car whose grip did not grow with speed would show a flat cloud. This is downforce, visible in free timing data.
The fitted cars are different from our illustrative car. For 2026 the fit implies $\mu$ ≈ 1.51 and a ClA of 5.86 m², so downforce equals weight at about 171 km/h rather than the 150 km/h of the 2022-era Mercedes reference, and the predicted limit at 300 km/h is 6.1 g rather than 8.1. That is much closer to the published "peaks near 6 g". Two reasons, both physical. Tyre load sensitivity: real rubber's $\mu$ falls as the load rises, so the downforce term buys less grip than the constant-$\mu$ model assumes, and a straight-line fit absorbs that into a smaller slope. And the 2026 rules, which reduced downforce: the fitted 2026 slope is about 28% below 2025's.
The seasons cross over. The fits say a 2026 car generates more lateral g than a 2025 car at 100 km/h (2.02 against 1.83 g, +11%) and less at 200 km/h (3.57 against 3.97 g, −10%):
Fitted apex a_y at 100 km/h: 2025 1.83 g, 2026 2.02 g, change +11 %
Fitted apex a_y at 200 km/h: 2025 3.97 g, 2026 3.57 g, change -10 %
The high-speed loss is what the rule change was designed to produce. The low-speed gain is a plausible reading (a lighter car, a different tyre and suspension package) but the intervals overlap: the 2025 intercept CI is 0.89–1.30 and 2026's is 1.18–1.76, and the slope CIs overlap too. With 150 and 144 noisy apexes, the data support "the 2026 line is flatter" more firmly than "2026 has more low-speed grip".
⚠️ Common pitfall: Reading a fitted coefficient as a measured car property. The "μ = 1.51" and "ClA = 5.86 m²" are what a two-parameter model needs to fit noisy apex estimates, given an assumed mass (780 kg) and the session's air density. Apexes are not all at the limit (some are direction changes in chicanes; some are compromised to set up the next straight), the curvature is noisier at high speed, and the R² is only 0.42. Treat them as calibrated model inputs, not as a team's numbers.
Braking tells the same story
Downforce should also make braking harder at high speed, and so should drag, which acts as a free brake: at entry, the limit is $\mu(mg + F_L) + F_D$. code/05_downforce_in_the_data.py also takes every stop of at least 0.5 s and 40 km/h on the same laps and measures the peak deceleration in its first 0.75 s:
Braking 2025: n = 140 stops; decel at start = 1.14 + 4.20e-4 · v²; median 4.52 g for entries ≥ 280 km/h vs 2.20 g below 220 km/h
Braking 2026: n = 127 stops; decel at start = 0.82 + 4.41e-4 · v²; median 3.93 g for entries ≥ 280 km/h vs 1.83 g below 220 km/h

📊 Figure (described): Each point is one braking zone: the peak deceleration in its first 0.75 s against the speed at which the brake came on, with fitted curves in $v^2$. Stops from above 280 km/h reach a median 4.5 g (2025) and 3.9 g (2026); stops from below 220 km/h reach about 2 g. The 2026 cloud sits slightly below 2025's at every speed.
The faster the car arrives, the harder it can stop: stops from above 280 km/h decelerate about twice as hard as stops from below 220 km/h. This is why the hook's hairpin stop averaged under 2 g while its first instant was well over 4 g: by the end of the stop the car has lost most of the downforce that made the start possible. It is also why braking points are so sensitive: a car that arrives 10 km/h faster can brake harder and has further to brake. Chapter 7 builds a braking-distance model on exactly this curve.
🔄 Check your understanding
- In the apex regression, what does the intercept estimate, and what does the slope estimate?
- Using the 2026 fit, what lateral g does the model predict at an apex of 150 km/h?
Answer
- The intercept estimates the tyre friction coefficient $\mu$ (the lateral limit with no downforce); the slope estimates $\mu \rho C_L A / 2 m g$, the downforce term per unit $v^2$.
- $v$ = 41.67 m/s, $v^2$ = 1,736; 1.510 + 0.0006666 × 1,736 = 1.510 + 1.157 = 2.67 g.
1.8 The Lap-Time Integral: Where the Time Is
We now know what the car can do at each point. Lap time is what you get when you add it up. If the car moves at speed $v(s)$ at distance $s$ along the lap, it spends $ds / v(s)$ seconds on each short stretch $ds$. The lap time is the sum around the closed loop:
$$T = \oint \frac{ds}{v(s)}$$
In words: lap time is the integral of one over speed along the lap. Every lap-time simulator in existence, from a team's to the one you will build in Chapter 11, is a machine for computing $v(s)$ subject to the car's limits and then evaluating this integral. Minimising $T$ means maximising speed everywhere the limits allow, which is the optimisation problem the whole of F1 is built around (theme 1 of this book).
A check you can only do honestly once
physics.lap_time_from_trace(distance, speed) evaluates the integral with the trapezoid rule on $1/v$. There is a trap here, and code/06_lap_time_integral.py walks straight into it on purpose:
RUS 2026 Canada pole lap: official lap time 72.578 s
integral with telemetry.distance_m (circular): 72.680 s (distance 4321 m)
integral with x/y line distance (independent): 72.299 s (distance 4314 m)
... with x/y distance scaled to official 4,361 m: 73.089 s
difference xy vs official: -0.279 s (-0.39 %)
The first line looks like a triumph: within 0.1 s of the official time. It is nothing of the kind. distance_m was computed by integrating speed over time, so integrating $ds/v$ over it simply returns the elapsed time; the 0.1 s difference is only the mismatch between two trapezoid rules. The honest check uses a distance that was not built from speed: the position along the averaged x/y line. That gives 72.299 s, 0.39% short, because the averaged line (4,314 m) is a little shorter than the integrated distance. Scale the distance to the official 4.361 km instead and the integral overshoots by 0.7%: the official lap length is measured on the track's centreline, and a racing line is shorter.
⚠️ Common pitfall: Validating a calculation against data that was derived from the same inputs. Integrating $ds/v$ over speed-integrated distance, or checking a model's fitted values against the data it was fitted on, will always look good. Find an independent quantity (here, position) or hold some data back.
Where is the time spent?
The integral says something important about where lap time lives. A stretch of track taken slowly costs time out of proportion to its length. physics.time_by_speed_band splits a lap into speed bands and reports each band's share of distance and share of time:
2026 monaco (ANT, 72.051 s): below 150 km/h: 27.8 % of distance, 45.9 % of time
2026 villeneuve (RUS, 72.578 s): below 150 km/h: 12.6 % of distance, 24.0 % of time
2026 monza (RUS, 81.846 s): below 150 km/h: 4.7 % of distance, 11.1 % of time

📊 Figure (described): For three 2026 pole laps, solid bars show each speed band's share of the lap's distance and hatched bars its share of time. In every case the slow bands' time bars are taller than their distance bars and the fast bands' are shorter. At Monaco, the stretches below 100 km/h are 12.7% of the distance but 26.3% of the time; at Monza, the stretches above 300 km/h are 46.9% of the distance and 37.0% of the time.
Across all 21 2026 qualifying sessions, the median pole lap spends 13.8% of its distance but 24.3% of its time below 150 km/h. At Monaco nearly half the lap time (45.9%) is spent below 150 km/h; at Suzuka (10.7%) and Monza (11.1%) about a tenth.
What is 1 km/h worth?
Differentiate the integral and you get the marginal value of speed. Raising the speed by $dv$ over a stretch $ds$ saves
$$dT = -\frac{ds}{v^2}\, dv$$
In words: the time saved by going a little faster is proportional to one over speed squared. Worked numbers, per 100 m of track and +1 km/h: at 100 km/h (27.8 m/s), 100 / 27.8² × (1/3.6) = 36 ms; at 200 km/h, 9 ms; at 300 km/h, 4 ms.
Per 100 m: +1 km/h saves 36.00 ms at 100 km/h, 9.00 ms at 200 km/h, 4.00 ms at 300 km/h

📊 Figure (described): For the three 2026 pole laps, the time saved by +1 km/h per 100 m of track in each speed band. The bars fall steeply from left to right: one km/h is worth roughly ten times as much below 100 km/h as above 300 km/h, at all three circuits. The per-metre value depends only on the speed; the circuits differ in how many metres they have in each band.
Put the two results together and you have the central tension of car design. Per km/h, slow corners pay most. But fast stretches are long, and a car gains top speed and fast-corner speed by different means (less drag, more downforce) than it gains slow-corner speed (mechanical grip, traction, braking). Over a whole lap at Montreal, +1 km/h everywhere below 150 km/h saves 0.165 s; +1 km/h everywhere on the lap saves 0.400 s. At Monaco the slow stretches alone are worth 0.363 s of the 0.548 s. That is why Monaco and Monza get different cars (Chapter 10), and why "where is the time?" is the first question of every setup meeting.
📋 Try it: Design the setup. You can trade drag for downforce. A higher-downforce rear wing adds, say, 5 km/h at every apex below 200 km/h and costs 6 km/h everywhere above 250 km/h (🧪 assumed numbers for the exercise). Using the band tables from
code/06_lap_time_integral.py(thes_saved_per_kmhcolumn), decide whether the wing is worth it at Monaco and at Monza. Write down your answer before you calculate.
Reveal
At Monaco the bands below 200 km/h are worth 0.249 + 0.113 + 0.085 s per km/h (from the
s_saved_per_kmhcolumn of the band table), so +5 km/h saves roughly 2.2 s, while the 250–300 band is worth about 0.04 s per km/h, so −6 km/h costs about 0.24 s, and there is no running above 300 km/h: a large net gain. At Monza the slow bands are worth only about 0.12 s per km/h in total (+5 km/h saves about 0.6 s) while the bands above 250 km/h are worth about 0.15 s per km/h (−6 km/h costs about 0.9 s): a net loss. The same wing, opposite answers, which is the whole logic of circuit-specific aero packages. Real trades are not uniform per band, and Chapter 11's simulator does this properly.
1.9 From Physics to the Pit Wall
This is a book about race strategy and analytics, and you may wonder why it opens with friction circles. Here is why: every strategic quantity you will meet is a physical one in disguise.
- Tyre degradation is the friction coefficient $\mu$ falling as rubber wears and overheats. Lose a little $\mu$ and the whole traction circle shrinks; Section 1.8 tells you the cost lands mostly in the slow corners. The book's measured rates, fuel-corrected at the toolkit's assumed 100 kg start fuel and 0.03 s/kg, are a median 0.064 s/lap for SOFT, 0.051 for MEDIUM and 0.048 for HARD in dry races 2023–2026 (Chapter 22). Without that correction the MEDIUM and HARD slopes are close to zero, because the falling fuel load makes the car faster every lap and hides the wear. A degradation number that does not state its fuel correction is not a number.
- Fuel is mass. A lighter car needs less grip for the same cornering and less force for the same braking, so it laps faster. The data-driven fuel-plus-track-evolution effect is about −0.056 s per race lap, an upper bound on the pure fuel effect because track evolution is mixed in (Chapter 20).
- Dirty air is lost downforce. Following closely shrinks the following car's traction circle in fast corners, which is why overtaking is hardest where the leader is quickest (Chapter 35).
- Pit stops trade a fixed time loss for a bigger traction circle on fresh tyres. The book's pooled green-flag pit loss is a median 22.5 s, and fresh tyres are a median 1.078 s/lap faster (fuel-corrected): the arithmetic of when to stop, Chapter 12, starts there.
📋 Try it: Call the pit stop (physics edition). It is lap 30 of a dry race. Your driver's tyres have lost grip; you estimate the traction circle has shrunk by 2% (a 2% fall in effective $\mu$). Using Section 1.8, roughly how much lap time is that? Is it worth a stop costing 22.5 s with 25 laps to go, if fresh tyres restore the full circle?
Reveal
A 2% smaller circle lowers the grip-limited speed by about 1% in every corner ($v \propto \sqrt{\mu}$ in the no-downforce limit, so 2% grip ≈ 1% speed; with downforce it is a little more). If roughly a quarter of a 90 s lap is grip-limited cornering (Section 1.8's median share below 150 km/h is 24% of time), 1% slower there is about 0.2–0.3 s per lap. Over 25 laps that is 5–8 s, less than the 22.5 s stop: stay out, unless the loss is growing. In real races the tyre delta after a stop is bigger (the measured median is 1.078 s/lap) because wear, temperature and the falling fuel load all interact, and the break-even with measured inputs is about 21 laps. This back-of-envelope version is the intuition; Chapters 12, 13 and 22 give the real decision.
Project Checkpoint: physics.py
Aisha opens a fresh file. "Every module after this one will ask the same questions: how much grip, at what speed, how long does it take. So the first module answers them." Box Box's first module is project/boxbox/physics.py.
What it contains:
| Function | What it does |
|---|---|
CarParams(mass_kg, cl_a, cd_a, mu, rho, power_kw) |
🧪 dataclass of car parameters; defaults anchored to the reference table, all assumptions |
forces(v_kmh, p) |
weight, downforce, drag, normal load, max tyre force, grip limit in g |
max_corner_speed(radius_m, p, with_downforce=True) |
the cornering-speed equation of Section 1.3 |
flat_out_radius(p), speed_where_downforce_equals_weight(p) |
$R^*$ and the 1× weight crossover |
traction_circle(v_kmh, p), grip_utilisation(ax, ay, limit) |
the budget of Section 1.6 |
lap_time_from_trace(distance, speed), time_by_speed_band(...) |
the integral of Section 1.8 |
longitudinal_g, reference_line, lateral_g, lateral_g_windowed, lap_g_forces |
the estimates of Section 1.5 |
params_from_apex_fit(intercept, slope, mass, rho) |
the calibrated car of Section 1.7 |
check_lap(tel, official_m), official_lengths(), air_density(p, T) |
data-quality and reference helpers |
The heart of it is ten lines:
def max_corner_speed(radius_m, p: CarParams, with_downforce: bool = True):
r = np.asarray(radius_m, float)
k = (p.mu * p.rho * p.cl_a / (2 * p.mass_kg)) if with_downforce else 0.0
den = 1.0 - k * r
with np.errstate(divide="ignore", invalid="ignore"):
v2 = np.where(den > 0, p.mu * G * r / den, np.inf) # inf = beyond R*: flat out
out = np.sqrt(v2) * 3.6
return float(out) if np.ndim(out) == 0 else out
code/project_checkpoint.py demos it on real data:
3. Fitted to 144 apexes of 2026 qualifying: CarParams(mass_kg=780.0, cl_a=5.86, cd_a=1.3, mu=1.51, ...)
downforce = weight at 171 km/h; R* = 153 m; 60 m corner: 137.7 km/h (illustrative car 165.2)
5. Peaks: braking -4.32 g, lateral (1 s) 5.60 g; time above 80 % of the fitted circle: 39.2 %, median utilisation 0.70
The fitted car takes a 60 m corner at 137.7 km/h, against 165.2 km/h for the reference-anchored illustrative car: calibration costs the model its optimism. On Antonelli's 2026 Monaco pole lap, the car spends 39.2% of the time above 80% of the fitted circle, with a median utilisation of 0.70.
Ray reads over her shoulder. "So your simulator now knows a car can't brake and corner flat out at once."
"It knows more than that," Aisha says. "It knows its own parameters are guesses, and it knows which data it's been checked against."
How it plugs in later: Chapter 3's aero.py replaces the constant ClA and CdA with speed-dependent aero maps and does the top-speed calculation properly; Chapter 5's pacejka.py replaces $F = \mu N$ with the Magic Formula; Chapter 7's brakes.py uses the braking curve of Section 1.7; and Chapter 11's lapsim.py evaluates $T = \oint ds/v$ on a speed profile built from max_corner_speed, traction_circle and the power limit. The 🧪 label travels with every one of those parameters.
Chapter Summary
| Quantity | Formula / definition | Book value (source) |
|---|---|---|
| Friction limit | $F_{\max} = \mu N$ | μ fitted ≈ 1.5 (2026 apexes, model-dependent) |
| Downforce | $F_L = \tfrac12 \rho C_L A v^2$ | = weight at ~150 km/h (Mercedes ref., c. 2022); fit 2026: ~171 km/h |
| Cornering limit | $v^2 = \mu g R / (1 - \mu\rho C_L A R / 2m)$ | 60 m corner: 110.5 km/h no downforce vs 165.2 km/h (🧪 car) |
| Flat-out radius | $R^* = 2m / (\mu \rho C_L A)$ | 109 m (🧪 car), 153 m (fitted 2026 car) |
| Traction circle | $\sqrt{a_x^2 + a_y^2} \le \mu(1 + F_L/mg)$ | Canada 2026 pole: combined peak 4.83 g |
| Longitudinal g | smoothed $dv/dt$ (0.5 s Savitzky–Golay) | braking held 0.5 s: median 4.49 g (2025), 3.85 g (2026), dry pole laps |
| Lateral g | $a_y = v\,\omega = v^2\kappa$, 1 s window | median peak 5.97 g (2025), 5.40 g (2026); unreliable above ~6 g |
| Lap-time integral | $T = \oint ds / v(s)$ | median 2026 pole lap: 13.8% of distance, 24.3% of time below 150 km/h |
| Value of speed | $dT = -ds\,dv / v^2$ | +1 km/h per 100 m: 36 ms at 100 km/h, 4 ms at 300 km/h |
Decision checklist for any g-force or physics number you quote:
- [ ] Is it measured, estimated from other channels, or from an assumed-parameter model (🧪)? Say which.
- [ ] What smoothing or averaging produced it, and how sensitive is it to that choice?
- [ ] Did the lap pass a quality check (no frozen stretch, no gaps, sensible distance)?
- [ ] Are you comparing like with like (same quantity, averaging, era) when you set it against a published figure?
- [ ] Is a relative comparison (season vs season, driver vs driver, same method) more robust than the absolute level?
- [ ] For a validation: is the check independent of the inputs?
What's Next
You have loaded one session and computed a great deal from it; Chapter 2 shows you where that session came from. It builds the whole free data pipeline (OpenF1, Jolpica and the FastF1 option), cleans it lap by lap, and gives Box Box its second module, data.py, the RaceData loader every strategy chapter will use.