← Back to Toolbox

Riding Physics Estimator

Upload a ride with power data to estimate your CdA (aerodynamic drag area) and Crr (rolling resistance). Uses the same physics model as the Workout Route Tuner.

1. Upload a Ride with Power Data

Drop a .fit, .gpx, or .tcx file here or click to browse

Needs GPS, elevation, and power data. .fit (Garmin raw) is recommended — it always has power. Garmin's .gpx export strips power; use Strava's .gpx or the .tcx export instead.

How It Works

The physics: At each data point in your ride, the power meter records power P, GPS gives speed v and grade θ. The relationship is:

P = [ ½·ρ·CdA·(v + v_wind)² + Crr·m·g·cos(θ) + m·g·sin(θ) ] · v

Rearranging: P/v − m·g·sin(θ) = ½·ρ·(v+v_wind)²·CdA + m·g·cos(θ)·Crr

This is linear in CdA and Crr! With hundreds of data points, we solve the overdetermined system using ordinary least squares. The known quantities at each point are power, speed, grade, air density, mass, and headwind (computed from wind speed/direction and the rider's GPS heading).

Wind model: Wind blows from a fixed compass direction at constant speed. At each GPS point, we compute the route bearing and project the wind vector to get the headwind component. On a loop, headwind and tailwind sections roughly cancel, so setting wind to 0 is often fine.

Air density: Computed from temperature and elevation using the barometric formula: ρ = 1.225 · (1 − 0.0000226·altitude)^5.256 · (288.15 / (273.15+T)).

Acceleration correction: The basic equation assumes steady state, but riders accelerate and decelerate constantly. We compute acceleration from the speed trace and subtract the inertial force m·a from the left-hand side. Points with acceleration above the threshold are also filtered out entirely.

Power→speed lag: Power is measured instantly at the crank, but it takes time for drag and rolling resistance to reach a new equilibrium speed. This mismatch adds noise. The "lag" setting shifts power data backwards in time before fitting. Use "Auto-detect" to find the lag that maximizes R². Typical values are 0–5 seconds.

File formats: .fit is the native Garmin binary format and always includes power. Garmin Connect strips power from .gpx exports — use the .tcx or .fit export instead. Strava's .gpx export does include power.

Filtering: We exclude data points where the rider is stopped, coasting (low power), accelerating hard, or on extreme grades. These non-steady-state points add noise. The more steady riding data you have, the better the estimate.

Accuracy: This method is well-established in cycling science (Chung's Virtual Elevation protocol, Martin et al. 1998). With a good power meter, clean GPS, and moderate wind, expect CdA accuracy within ±5–10% and Crr within ±20%. A velodrome or flat, windless time-trial gives the best results.