Skip to content
← All posts
Model Explainer7 min readData: 2026 season to date

How we predict F1 pit stops, and how to read them

Pit-stop probability, pit-window survival and pit-stop count: the three F1 pit predictions RaceHooks publishes every lap, and how to read them together live.

Will this car stop, and when? Everyone watching an F1 race asks it. We publish three pit predictions instead of one, because the question runs on three timescales: pit-stop probability for this lap, pit-window survival for the next few laps and pit-stop count for the whole race. Any one of them on its own can point you the wrong way. Put them side by side and you can often see a stop coming several laps before the car turns into the pit lane.

The three pit predictions we publish

All three are part of the pit decision surface, drivers[].pit, on the analytics.strategy feed. That feed updates every lap, per driver, in races and sprints:

OutputFieldRangeQuestion it answers
Pit-stop probabilitypit.pNextLap0–1Will this driver make a green-flag stop next lap? (Stops under safety car, VSC or red flag are not counted.)
Pit-stop recommendationpit.recommendedtrue / falseHas that probability cleared the decision threshold?
Pit-window survivalpit.windowlaps + probabilitiesHow long until the stop, given the stint so far?
Pit-stop countpit.planpByStops keyed "1" / "2" / "3+"How many stops will this driver make in the whole race?
3
pit predictions per driver per lap: this lap, the next few laps, and the whole race

All three come from our models. They're three of the fourteen production ML models we run on every session. The analytics feeds that carry them are on the Custom tier.

Pit-stop probability: this lap

Pit-stop probability is a gradient-boosted ensemble. It reads a rolling window of recent laps for each driver: tyre age and compound, fuel-corrected pace, stint length, the gaps to the cars ahead and behind, and track status. From those it estimates the probability of a stop this lap.

Each lap's payload carries two values built from it:

recommended turns true once the probability clears a threshold set for the current regulations era. The threshold is recalibrated as each season's stop patterns build up.

This is the number to watch for the moment itself. On the pit wall it's the signal to cover a rival's stop. In a broadcast truck it means "get the pit-lane camera ready." For anyone trading in-play, it's the lap a position swap starts to look likely.

Pit-window survival: the next few laps

Pit-window survival is a survival model over stint length. A per-lap probability can tell you a stop is likely now. A survival model tells you how much longer this stint is likely to run, given it has lasted this long already. A car that has done 20 laps on mediums has already outlasted every version of the race where it stopped on lap 15, and its window accounts for that.

pit.window carries four fields:

FieldMeaning
medianStintLengthMedian total length of this stint, in laps
expectedResidualLapsExpected laps left before the stop, given the stint so far
survivalPWithin3LapsP(stop within 3 laps), from the survival model
pWithin5LapsP(stop within 5 laps), from the survival model

The window state also drives the alert feed, analytics.pit-window. That feed fires for a driver on the laps when their window reads OPEN or URGENT. Each alert includes the pit probability, whether an undercut on the car ahead is viable, the tyre cliff risk, and the driver's stop count so far. Subscribe to it and you get a webhook when the window opens, instead of polling for it.

Two three-lap numbers, on purpose

pit.pWithin3Laps and pit.window.survivalPWithin3Laps answer the same question with two different estimators: one is the per-lap model extended to three laps, the other comes from the survival model. We gave them different names so nobody mixes them up. When they agree, the read is solid. When they disagree, look closer.

Pit-stop count: the whole race

Pit-stop count is a race-level model. It estimates how many stops each driver will make in total. Its inputs are the strategy shape of the weekend: the circuit's degradation profile, pit-lane time loss, grid slot, race distance, starting compound, and the rain signal.

pit.plan carries:

The distribution updates once per lap. At the start of the race it is effectively the pre-race estimate. After that it takes account of what has already happened, so a driver who has stopped twice by half distance can no longer carry a high one-stop probability. A strategist uses it to plan around a rival: is that car stretching for a one-stop, or will it come in again? A broadcaster can use it to frame strategy before the race starts. Before the race, the analytics.race-preview feed publishes a grid-stage stop-count distribution for every driver.

Reading them together

The pattern a pit wall watches for: the car's own window is closing while the threat from the car behind is rising.

The threat side lives on the same feed, on the rival's row. A rival with threat.undercut.viable set and a climbing threat.undercut.pSuccess has a real chance of jumping you by stopping first. Its threat.undercut.call reads UNDERCUT_NOW, WAIT or HOLD. (The tyre numbers explained in Reading live tyre degradation feed directly into this read.)

Here is an illustrative sequence for a single car. "Car A" is running second, and the numbers are invented to show how the fields move together:

LappNextLappWithin3LapsexpectedResidualLapsRival behind: undercut pSuccessRead
180.040.1157.5—Mid-stint. No action.
200.070.1965.00.31Window approaching; rival now in undercut range.
220.130.3413.00.48analytics.pit-window fires OPEN. Both clocks are running.
230.220.5252.00.57recommended: true; rival's call reads UNDERCUT_NOW.
24————Car A stops first and covers the undercut.

Illustrative only. These numbers are not from a real race.

You can't call it from any one row. On lap 22, a 13% chance of stopping this lap sounds low. But the survival model expects about three laps left in the stint, the three-lap probability is above a third, and the car behind has close to even odds on an undercut. Put those together and the call has to be made on this lap or the next.

Common misreads

Treating a probability as a certainty. A pNextLap of 0.22 means the car stays out on roughly four of every five laps that look like this one. Watch how the number moves from lap to lap rather than reacting to one reading.

Mixing up the scales. pNextLap is a per-lap number. pWithin3Laps, survivalPWithin3Laps and pWithin5Laps cover several laps, so they are larger by construction. The pitProbability on the analytics.pit-window alert is on the three-lap scale. Don't compare it directly with pNextLap.

Ignoring the safety car. A safety car or VSC changes the cost of a stop for the whole field at once. When that happens, the pit-window alert gives the reason in overrideReason (VSC_WINDOW or SC_WINDOW) and the estimated time saved by stopping under it in vscNetDeltaSec. A jump in pit probability under a safety car comes from the race situation. It doesn't mean that car's tyres just got worse. To anticipate one, watch raceState.pSafetyCar on the same feed. A third override, LEADER_PITTED, flags the lap the race leader has just stopped.

Reading mostLikelyStops as the plan. If pByStops reads 0.52 for one stop and 0.45 for two, mostLikelyStops says 1, but the race is close to a coin flip between the two strategies. Use the full distribution.

Treating a missing field as zero. pit.window, pit.plan and the threat blocks are left out when there's nothing to report. A missing undercut block means no live undercut duel, not zero risk.

Where to go next

Each model has its own reference page with fields and payloads: pit-stop probability, pit-window survival and pit-stop count. To see the full strategy surface in context, start at RaceHooks analytics.

The takeaway

Pit-stop probability tells you if a car stops this lap, the survival window tells you how many laps the stint has left, and pit-stop count tells you how many stops the race holds. A stop is coming when the window is closing at the same time the car behind's undercut is getting stronger.

RaceHooks is a motorsport analytics API with fourteen production ML models enriching live race data, delivered to you in real time.