The Magic Formula: how a tire curve is written down
Hans Pacejka's Magic Formula writes the whole force-against-slip curve with four numbers. What B, C, D and E each do to the curve, and why it is a fit to measurements rather than a law of physics.
On a stage#
You will never see this formula from the driver's seat, but it describes the curve you feel through every corner: how quickly grip arrives with slip, where it peaks, and how much is left once you go past. A tire whose curve has a sharp peak punishes overdriving; one that stays high after its peak forgives it. Knowing which part of the curve does what makes it easier to describe what a car is doing.
The idea#
Measure a tire on a test rig, sweeping its slip angle or slip ratio, and you get a curve of force against slip like the ones in Tire forces: slip angle and slip ratio. To use that curve in calculations, engineers need it written down. The Dutch engineer Hans B. Pacejka, a professor at Delft University of Technology, developed a family of tire models for this, known as the Magic Formula.
It is called magic because the structure of the equation has no particular physical basis. It is a curve fit: a shape flexible enough to match the measured curves of many kinds of tire in many conditions. MathWorks' documentation describes it the same way, as an empirical equation built on fitting coefficients. The full versions need 10 to 20 coefficients for each force or moment, so that the curve can change with load, camber and other conditions. The basic form needs four, B, C, D and E, and it already shows how the curve is built.
Because it is a fit, it is only as good as the measurements behind it. Outside the range a tire was measured over, the curve can say anything, and the slip it is fed is itself poorly defined at very low speeds, where the formula is known to misbehave.
The model#
y = D × sin( C × arctan( B×x − E × (B×x − arctan(B×x)) ) )
y the force the tire makes (the same form is used for the
aligning torque)
x the slip: slip ratio for braking and driving, slip angle
for cornering
B stiffness factor: stretches the curve along the slip axis
C shape factor: sets how far the curve falls after its peak
D peak factor: the highest value the curve reaches
E curvature factor: bends the curve around and after the peak
B×C×D the slope of the curve at zero slip: for sideways force,
the cornering stiffness
In MathWorks' form for braking and driving force, the whole
right-hand side is multiplied by the vertical load F_z (N), so D
acts like a peak friction coefficient.
Because a sine never exceeds 1, the curve can never rise above D: D is the peak. And at very small slip the formula reduces to y ≈ B×C×D×x, so B×C×D is the slope at the origin, the stiffness of the tire for small slips. MathWorks states the slope as B×C×D×F_z in its form.
What B, C and E do is easiest to see by changing one at a time. Starting from the set used below, worked out from the formula:
- B stretches the curve sideways. Double it and the peak arrives at half the slip; halve it and the peak arrives at twice the slip. The peak height does not change.
- C sets the drop past the peak. Raise it from 1.9 to 2.3 and a locked wheel keeps 67% of the peak force instead of 92%. Lower it to 1.5 and, with this set, the curve is still rising at 100% slip: it never comes back down.
- E bends the curve near the peak. At 0.97 the curve is flat-topped and stays high; set it to 0 and the peak comes earlier and sharper, and a locked wheel keeps only 34% of the peak force.
- D scales everything up or down.
Worked example#
MathWorks publishes typical coefficient sets for different roads. For dry tarmac they are B = 10, C = 1.9, D = 1, E = 0.97, for braking and driving force against slip ratio. With D = 1, the force is shown as a share of the vertical load. Figure 1 draws that curve from 0 to 50% slip.
- Starting slope: B × C × D = 10 × 1.9 × 1 = 19. At 1% slip the straight line gives 0.19; the formula gives 0.188, almost the same.
- Peak: worked out from the formula, the curve peaks at about 18% slip, at a force equal to the load (D = 1).
- Locked wheel: at 100% slip the formula gives 0.915, so a locked wheel keeps about 92% of the peak force with this set.
The other typical sets, worked out the same way:
| Surface | B | C | D | E | Peak | Peak at slip | Locked, share of peak |
|---|---|---|---|---|---|---|---|
| Dry tarmac | 10 | 1.9 | 1 | 0.97 | 1.00 | about 18% | 92% |
| Wet tarmac | 12 | 2.3 | 0.82 | 1 | 0.82 | about 9% | 78% |
| Snow | 5 | 2 | 0.3 | 1 | 0.30 | about 31% | 95% |
| Ice | 4 | 2 | 0.1 | 1 | 0.10 | about 39% | 96% |
The pattern is the one drivers know: on snow and ice the peak is far lower, and it arrives at much more slip.
To read Figure 1, start at the origin: the dotted line is where the force would go if the tire stayed in its linear region. The solid curve leaves it within the first few per cent of slip and rounds over to the peak. Then compare the two curves past the peak: same B, C and D, different E, and by 50% slip the dashed one has lost about half its force while the solid one keeps 96%.
In the sim#
What carries over: the formula is a way of describing a curve, so the vocabulary fits any tire. A tire that grips at small slip has a high B × C × D; one with a sharp, punishing peak has a low E or a high C; one that keeps going past the limit has the opposite.
What cannot be assumed: that a particular game uses the Magic Formula at all, or what coefficients it uses. Games can describe their tires in many ways, and this article makes no claim about any of them. The typical sets above are MathWorks' generic examples for engineering models, not measurements of a rally tire, and the peak slips they give need not match a real tire or a game.
MathWorks' generic dry set puts the peak at about 18% slip; Burckhardt's fitted road model, another published family, puts it at about 17% on dry asphalt. On snow and ice the two families disagree far more. The difference is a reminder that every curve is a fit to one tire. See Threshold braking and lock-ups and Wheelspin and lock-up.
Sources#
- H. B. Pacejka, Tire and Vehicle Dynamics, 3rd edition, 2012, page 165 for the basic formula, as cited in Wikipedia's article "Hans B. Pacejka", read in 2026, which also gives his years at Delft University of Technology, the 10 to 20 coefficients, the meaning of "magic" and the low-speed limit.
- MathWorks, "Tire-Road Interaction (Magic Formula)", Simscape Driveline documentation, release R2026b, read in 2026: the names of B, C, D and E, the starting slope B×C×D×F_z, the description as an empirical fit, the typical coefficient sets for dry tarmac, wet tarmac, snow and ice, and its reference to H. B. Pacejka, Tire and Vehicle Dynamics, 2005.
- The peaks, peak slips and locked-wheel shares in the table, and the effects of changing B, C and E, were worked out from the formula with those coefficients.
- H. Zhang, C. Zhang, L. Xu and Z. Jia, "Slip ratio control based on adaptive fuzzy sliding mode for vehicle with an electromechanical brake system", Mechanics & Industry 25, 2024: Burckhardt's friction model and its parameters, from which the 17% dry-asphalt peak was worked out.
