Tire Mechanics Simulator Back
Vehicle Dynamics

Tire Mechanics Simulator — Pacejka Magic Formula

Adjust slip angle, vertical load, and friction coefficient to visualize lateral force, longitudinal force, and the friction circle in real time. Understand cornering stiffness and grip limits intuitively.

Parameters
Slip Angle α (°) 5.0
Slip Ratio κ 0.00
Vertical Load Fz (N) 4000
Friction Coefficient µ 0.90
Tire Preset
Pacejka Coefficients
B (Stiffness Factor) 10.0
C (Shape Factor) 1.30
E (Curvature Factor) 0.97
0
Peak Fy (N)
0
Cα (N/°)
0
Mz est (Nm)

Magic Formula

$$F_y = D\sin\!\bigl(C\arctan(B\alpha - E(B\alpha - \arctan(B\alpha)))\bigr)$$

D = µ·Fz, B=stiffness, C=shape, E=curvature

0
Current Fy (N)
0
Current Fx (N)
0
Grip Utilization (%)
Lateral Force Fy vs Slip Angle α
Longitudinal Force Fx vs Slip Ratio κ
Friction Circle — Tire Contact Patch Force Vector

What is the Pacejka Magic Formula?

🧑‍🎓
What exactly is this "Magic Formula" for tires? It looks like a complicated sine and arctan function.
🎓
Basically, it's an empirical equation that perfectly fits measured tire data. In practice, engineers needed one formula to predict lateral force ($F_y$) based on slip angle ($\alpha$). Instead of a simple linear model, this captures the real, nonlinear behavior—the initial grip build-up, the peak force, and then the drop-off. Try moving the "Slip Angle α" slider in the simulator above to see this exact S-shaped curve come to life.
🧑‍🎓
Wait, really? So all those parameters (B, C, E, D) just shape that one curve? What does "D" stand for?
🎓
Exactly! Each parameter controls a specific feature. "D" is the peak value of the curve, which represents the maximum lateral force the tire can generate. In the Magic Formula, $D = \mu \cdot F_z$. That means the peak force depends directly on the friction coefficient ($\mu$) and the vertical load ($F_z$). For instance, a heavier car (higher $F_z$) or a grippier track surface (higher $\mu$) increases D. You can test this by increasing the "Vertical Load Fz" or "Friction Coefficient µ" in the simulator and watch the whole curve stretch upward.
🧑‍🎓
That makes sense. But what's the "friction circle" shown in the other plot? How does it relate to this Magic Formula curve?
🎓
Great question! The friction circle visualizes a tire's total grip limit. A tire has a finite amount of friction to split between cornering (lateral force) and accelerating/braking (longitudinal force). The circle's radius is that maximum force, $ \mu F_z $ (which is our "D"). The Magic Formula curve tells you how much of that total grip you're using for cornering at a given slip angle. In the simulator, when you also adjust the "Slip Ratio κ" (for braking/acceleration), you'll see the combined force vector move inside the circle, showing how you trade off one force for the other.

Physical Model & Key Equations

The core of the simulator is the Pacejka Magic Formula, which calculates the lateral force $F_y$ generated by a tire as a function of its slip angle $\alpha$.

$$F_y = D\sin\!\bigl(C\arctan(B\alpha - E(B\alpha - \arctan(B\alpha)))\bigr)$$

Where:
• $F_y$ = Lateral (cornering) force [N]
• $\alpha$ = Slip angle [rad]
• $D$ = Peak factor = $\mu \cdot F_z$
• $B$ = Stiffness factor (controls the slope at $\alpha=0$)
• $C$ = Shape factor (typically ~1.3-1.6 for lateral force)
• $E$ = Curvature factor (influences the shape near the peak)

The friction circle concept is governed by the vector sum of lateral and longitudinal forces, limited by the maximum available friction force.

$$\sqrt{F_x^2 + F_y^2} \leq \mu F_z$$

Where:
• $F_x$ = Longitudinal force (from braking or acceleration) [N]
• $F_y$ = Lateral force [N]
• $\mu$ = Friction coefficient between tire and road
• $F_z$ = Vertical load on the tire [N]
This inequality means the combined force vector must stay inside a circle of radius $\mu F_z$. This is why a tire cannot brake hard and corner hard at the exact same time.

Real-World Applications

Vehicle Dynamics Simulation (CAE): This is the primary use. Automotive engineers embed the Magic Formula in software like Adams/Car or Simulink to predict how a vehicle will handle, brake, and accelerate long before a physical prototype is built. They tune the B, C, E parameters to match test data from specific tires.

Racing Telemetry Analysis: Race engineers use the friction circle plot to analyze driver performance. By plotting lateral vs. longitudinal g-forces from onboard sensors, they can see if a driver is using the tire's grip optimally through a corner or if they are "over-driving" and asking for more force than the tire can provide.

Advanced Driver-Assistance Systems (ADAS): Systems like Electronic Stability Control (ESC) need to know the tire's force limits to prevent skids. The controller estimates the available $\mu F_z$ based on conditions and uses a simplified version of the friction circle model to decide how to apply braking to individual wheels to keep the car stable.

Tire Design and Testing: Tire manufacturers perform thousands of tests on tire test rigs to measure force vs. slip angle curves. They then fit the Magic Formula to this data, creating a "tire model" that can be shared with car manufacturers for their simulations, allowing for collaborative development between tire and vehicle engineers.

Common Misconceptions and Points to Note

First, avoid assuming "the Magic Formula parameters are fixed constants specific to a tire." In reality, particularly D (peak factor) and B (stiffness factor) are strongly dependent on the vertical load Fz. For example, if the load doubles, the maximum lateral force D nearly doubles, but the cornering stiffness (initial slope) increases by more than double. Overlooking this nonlinearity will lead to significant errors in simulations of sporty driving with heavy load transfer. Use the tool's Fz slider to see how the shape of the graph itself changes.

Next, the misconception that "the friction circle is a perfect circle." A real tire's friction limit is not perfectly symmetric between longitudinal and lateral forces; it often resembles an ellipse. This stems from the tire's tread characteristics. While the Magic Formula itself has models that consider combined slip (simultaneous longitudinal and lateral slip), the circle shown in this tool is an idealization to help you understand the concept of a "combined force limit." In practice, more sophisticated combined slip models are necessary.

Finally, pitfalls when adjusting parameters. The four parameters B, C, D, and E interfere with each other. For instance, if you arbitrarily increase the D value just to raise the maximum lateral force, the initial slope of the graph (the effective cornering stiffness) will also change. To achieve the target characteristics, you need expertise such as using dedicated software for fitting experimental data or adjusting B and D in conjunction. Manually creating a "plausible curve" is good for learning but insufficient for replicating real vehicle data.

Related Engineering Fields

The calculations in this simulator form the core of Vehicle Dynamics. The tire forces obtained here are incorporated into "two-wheel" or "four-wheel" vehicle models, directly leading to predictions of overall vehicle behavior like steering response and stability limits (spin, plow). For example, if the initial slope of lateral force versus slip angle differs between the front and rear axles, it manifests as understeer characteristics.

Furthermore, integration with Control Engineering is crucial. Beyond the aforementioned ESC (Electronic Stability Control), the Magic Formula model is also used as foundational data for algorithms in state-of-the-art torque vectoring utilizing motor control, which constantly estimates each tire's friction margin (distance from the center of the friction circle to the current force point) to optimally distribute drive and brake forces across all four wheels. The tire model is the core of the "object to be controlled" in a vehicle.

It also couples with Suspension Geometry. While camber angle acts on the tire, suspension movement changes camber and toe angles, which add to the tire's slip angle. For higher-fidelity simulations, extended versions of the Magic Formula that include camber angle are used, analyzing the loop between suspension movement and tire forces. This is essential for analyzing rally cars after landing a jump or the roll attitude during cornering.

For Further Learning

First, I recommend experiencing the flow from "tire to vehicle dynamics." Once you understand the standalone tire characteristics with this tool, try integrating this tire model into simple vehicle models like a "two-wheel bicycle model" or "steady-state cornering for a four-wheel vehicle." Calculating how a vehicle turns based on steering input using a spreadsheet or Python will make it tangible how tire characteristics affect vehicle behavior.

Regarding the mathematical background, learning about parameter fitting for nonlinear functionsLevenberg-Marquardt method, a type of least squares. Learning this process will help you intuitively grasp which parts of the graph each parameter B, C, D, and E sensitively controls.

The next recommended topics are "Combined Slip Models" and "Transient Characteristics (Relaxation Length)." Real vehicles experience longitudinal and lateral slip simultaneously, and tire forces do not develop instantaneously with steering input; they settle to a steady-state value only after traveling a "relaxation length" of several centimeters to tens of centimeters. Dynamic tire models incorporating these effects are key for more realistic driving simulators and high-precision control development. First, make this foundational Pacejka Magic Formula your own.