W′ balance modelling for cycling

How much is left in the tank, second by second

wbal.io tracks a rider’s anaerobic reserve, W′, through every second of a ride, using recovery models fitted to the athlete instead of a population average. The same model then runs a training diary, a pacing plan for the course ahead and a squad view for the coach, alongside the lab tools that supply its numbers: critical power, and lactate and ventilatory thresholds.

Invite only while the tools are in development. Have an access code? Create your account. Or try the free CP calculator and W′bal calculator, no account needed.

Free to start, no card needed. Or try the CP calculator and W′bal calculator with no account at all.

The W′bal analyser after a 50-minute interval ride: the settings folded to one line, figures for lowest W′bal, W′ at the end, time under 25% and power, W′ balance falling through five intervals and two sprints with a bar of the time spent in each quarter of W′, power below, and the efforts above CP as bars beside them.

One model, from the ride just done to the race still to come

Critical power is the highest output a rider can hold without drawing on a finite reserve. W′ is the size of that reserve. Above critical power it drains; below, it refills, and how fast it refills differs a great deal between riders.

Most software applies one published recovery curve to everybody. wbal.io lets a coach measure the individual’s own recovery rate from a structured test and use it everywhere: to read what a ride cost, to keep a rider’s numbers current without retesting, and to decide where on a course the effort should go.

01 Analyse

W′ balance analyser

Drop in a file from any head unit and see the reserve drain and recharge through the whole ride, alongside power, heart rate, cadence, elevation and the route.

Open the analyser Free

  • Reads FIT, TCX, GPX, PWX and CSV, resampled to one-second resolution
  • Seven recovery models, overlaid on one chart to compare
  • A live Power Ceiling: the most the rider could produce at each moment
  • Mean-maximal power curve, heart-rate decoupling, and every effort above CP with its W′ cost
  • An automatic CP and W′ estimate that is checked against the ride itself: values that would leave the reserve empty for longer than a rider can ride are flagged and corrected
  • The GPS track coloured by remaining W′, and a share link for any effort
Ride insights: aerobic decoupling, an estimated CP of 304 W and W′ of 16.2 kJ, the CP this effort needed, seven efforts above CP, a note on why the estimate was raised, and the mean-maximal power curve against the CP model.
Insights derived from one file: the power-duration curve, an estimated CP and W′, and each effort’s cost.
A GPS route drawn as a line shading from green where W′ is full to red where it is nearly spent.
The route, coloured by how much reserve was left.

02 Determine

Critical power and recovery rate

Two calculators turn test results into the numbers everything else runs on.

Open the CP tools Free · recovery rate is Pro

  • Critical power and W′ from two or more maximal efforts, with a linear, a nonlinear or the three-parameter Morton fit
  • Residuals for every test, so a bad effort shows up instead of quietly bending the curve
  • An individual recovery rate fitted from a structured interval test, as a power law or a biexponential
Critical power result: 301 watts and 20.6 kilojoules from four test efforts, each residual within 4 watts, with the fitted power-duration curve below.
Four efforts, one fitted curve, and how far each test sits from it.

03 Train

Training diary

A season of load becomes fitness, fatigue and form, and a prediction of where critical power is heading.

Open the diary Pro

  • The Banister impulse-response model, with coefficients fitted to the rider’s own test results
  • A taper simulator: try a load reduction and see when performance peaks
  • A rolling Power Profile of CP, W′ and peak power. When a ride beats what the profile predicts, that is a Milestone and the numbers move up with no test needed
  • Recommended sessions for today, chosen from current form and set in the rider’s own watts
  • Import from CSV or straight from a ride file
The training diary: fitness, fatigue and form with six-week trend lines and a Fresh label, a year of daily load as a heatmap, five months of predicted critical power rising to about 300 watts, and today's recommended sessions beside them.
Predicted critical power against the tests that calibrate it.
Recommended sessions for a fresh rider: VO2max intervals first, then W′ development and threshold options, each with power targets.
Today’s suggestions, anchored to the rider’s CP and W′.

04 Race

Time trial and race pacing planner

Upload the course and get a plan that spends W′ where the terrain repays it, then compare it with what was actually ridden.

Open the planner Pro

  • A physics model of the rider on the course: mass, CdA, rolling resistance, gradient
  • Wind and air density hour by hour, applied against the bearing of every segment
  • A W′-aware strategy tuned so the reserve is used but never emptied, set against even power
  • Optional coasting on steep descents and braking for sharp corners
  • After the race: where time was lost, segment by segment, against the optimal plan
Pacing charts for a 29 km course: W′ remaining for the W′-aware plan, even power and the ridden effort over the elevation profile, with the power for each below.
The plan, even power and the real ride on one course.
A route map with the course coloured by planned W′ balance, beside the plan in figures: 45 minutes 18 seconds, a minute faster than even power, 309 watts average, 28.8 km with 238 m of climbing.
The W′-aware plan finishes a minute ahead of riding to even power.
Your ride against the plan: the course on a map coloured by where time was lost and won, the time behind the plan building over 28.8 km, and the biggest time losses as bars beside it.
The segments that cost the most, and why.

05 Squad

Coach dashboard

The whole roster on one screen: who is fresh, who is carrying fatigue, and what each rider’s numbers are now.

Open the dashboard Institutional

  • Fitness, fatigue and form for every athlete, with their latest CP and W′
  • Athletes are invited and have to accept before anything is shared
  • Read-only for the coach, and either side can disconnect at any time
A coach's dashboard with 6 of 20 athlete seats in use: six athletes, five with fitness, fatigue, form, a form label, a recent-load chart and current CP and W′, and one invitation still pending.
Five athletes connected, one invitation waiting.

06 Lab

Lactate and ventilatory thresholds

A step or ramp test read every accepted way at once, so the spread between methods is on the page and the choice of which to trust stays with the physiologist.

For anyone with blood lactate or gas-exchange data from a lab test. No lab data? Start with critical power, which needs only a power meter.

Open the threshold test Free · saving tests is Pro

  • Type one value per stage, paste from a spreadsheet, or upload the metabolic cart’s export at any sampling interval
  • Files recorded on different clocks are shifted against each other, then the end of each stage is averaged
  • Twenty-two lactate methods across the two thresholds: baseline rises, fixed concentrations, log-log, turnpoints and the Dmax family
  • Seven gas-exchange methods: V-slope, ventilatory equivalents, excess CO₂ and end-tidal pressures
  • Tick the methods to use; the threshold is their mean, with one recommended for each
  • Training zones in three or five bands, or cut at chosen lactate values
The lactate curve from an eight-stage test with the first and second lactate thresholds marked at 203 and 255 watts, and heart rate alongside.
Both thresholds from lactate and from gas exchange, and how far apart they land.
Power, heart rate and oxygen uptake from a breath-by-breath file across eight shaded three-minute stages, with the last thirty seconds of each marked for averaging.
A breath-by-breath file on the test clock, with the stages marked.
Three gas-exchange plots, V-slope, ventilatory equivalents and ventilation against carbon dioxide output, each with the first and second ventilatory thresholds marked.
The plots each ventilatory method reads its breakpoint from.

τ Recovery models

Seven ways to refill the tank

How fast W′ comes back depends on how far below critical power the rider is (DCP) and on the rider. Published population models are there for reference; the two fitted models are the point.

ModelRecovery time constantConstants
Skibaτ = 546·e−0.01·DCP + 316Population. Three formulations: the 2012 integral, the 2015 differential, and per-second τ
Bartramτ = 2287·DCP−0.688Population, elite cyclists
Pugh (International)τ = 789·DCP−0.468Population, by competitive level
Pugh (National)τ = 1883·DCP−0.487Population, by competitive level
Pugh (Regional)τ = 5184·DCP−0.700Population, by competitive level
Individualisedτ = A·DCP−BFitted to the athlete’s own test
Biexponentialτ = A1·e−B1·DCP + A2·e−B2·DCPFitted to the athlete’s own test

Depletion follows the standard two-parameter model, or a three-parameter model that also accounts for peak power.

{ } How it’s built

Small, tested, and nothing borrowed at runtime

Python where the modelling is

An async FastAPI service over SQLite. The physiology and the pacing physics are plain, dependency-free Python modules, so every formula can be tested on its own.

No framework, no build step

The frontend is hand-written JavaScript. The W′bal maths runs in the browser from one shared, unit-tested module, with a port of the same models on the server.

Over 400 automated tests

Unit tests for the models and parsers, API tests for accounts, access and billing, and a real browser that loads every page and drives the tools on every push.

Its own chart controls

Drag to zoom, pan, scale one axis, linked crosshairs across charts and full keyboard control, written once as a plugin and shared by every chart on the site.

Locked down by default

A strict content security policy with no inline script, and no third-party code, fonts or trackers loaded from anywhere else. Visit counts use no cookies.

Looked after like a service

Versioned database migrations, scheduled snapshots taken while the site runs, request tracing in the logs and alerts when something fails.

Designed and built by Dr. Charlie Pugh

hello@wbal.io

£ Pricing

Start free. Upgrade when you’re ready.

The free tier is a real analyser, not a teaser: every file format and all five population models. Pro adds the individualised models, the diary and the race planner.

Free

For getting to know the tools

£0

for good

  • Effort analyser: W′bal and power charts
  • Upload .fit, .csv, .tcx, .pwx and .gpx
  • CP determination, typed in or from files
  • Five population recovery modelsSkiba, Bartram, Pugh ×3
  • Ride insights: power curve, decoupling, intervals
  • Power Ceiling overlay
  • Overlay and compare efforts on one chart
  • Threshold test analysis, lactate and ventilatory
  • Individualised and biexponential models
  • 3-parameter W′ depletion
  • Training diary and Power Profile
  • TT and race pacing planner
  • Export CSV and PNG
Request access Create a free account
Most popular

Pro

For coaches, scientists and serious athletes

£4.99 / month

or £49 a year, saving 18%. Starts with a 7-day free trial.

  • Everything in Free
  • Individualised and biexponential recovery models
  • Recovery rate calculator: fit your own A and B
  • 3-parameter (Pmax-aware) W′ depletion
  • Training diary: load, form, tests, CSV import
  • Power Profile, Milestones and Recommended Sessions
  • TT and race pacing planner, plus the pacing analyser
  • Strava sync
  • Save efforts to a library, revisit and share them
  • Save threshold tests, with their files and chosen methods
  • Export CSV and PNG
Request access Create a free account

Institutional

For labs, teams and coaching businesses

£500 / year

up to 20 athletes, billed annually

  • Everything in Pro
  • Up to 20 athlete seats
  • Coach dashboard: a consent-based roster with every athlete’s form, CP, W′ and recent tests
  • Priority support
  • Invoice billing available
Contact us

While the tools are in development, accounts are opened by invitation.

? Questions

Common questions

What file types are supported?

.fit, .csv, .tcx, .pwx and .gpx, from Garmin, Wahoo and most other head units, on every plan including Free. Everything is resampled to one-second resolution, and any heart rate, cadence, speed, altitude, temperature and GPS in the file is carried through alongside power.

Where do I get my CP and W′ values?

From the Determine CP tab in the app, which is free. Type in two or more maximal efforts at different durations (label, duration, mean power) or upload the power files and trim them to the test window. It fits your power-duration curve with a linear, nonlinear or three-parameter model and shows the residual for each test, so you can judge the fit. A good fit has residuals under 5 W. There is also a free CP calculator that needs no account.

What is the recovery rate calculator and do I need it?

It fits an athlete’s own recovery constants from a structured interval test: the A and B in τ = A·DCP−B, or a biexponential. You don’t need it to start, because the population models (Skiba, Bartram and three Pugh variants) work straight away. Personal constants give more accurate W′bal, especially for a rider whose recovery is unusual. Pro.

Is my data stored on your servers?

Uploaded ride files are never stored: they are read in memory into a time and power series and thrown away. The published W′bal maths (2-parameter depletion and the τ recovery models) runs in your browser. Some features send the power series to the server to compute: the insights panel, the 3-parameter depletion model, Power Profile updates, the race planner and the pacing analyser. Those requests are not kept. What is stored is what a feature exists to remember: efforts and threshold tests you choose to save, diary entries, performance tests and your CP and W′ history. You can delete any of it, or your whole account, from your account settings. A saved effort is private unless you publish a share link for it.

Is there a race pacing planner?

Yes. Upload the course as a GPX and the planner builds a pacing plan that decides where to spend W′ and where to hold back, with power, speed, time and W′bal for every segment, an elevation profile and a route map. Add hour-by-hour wind and air density, and choose to coast steep descents and slow for sharp corners. Afterwards, the pacing analyser takes a ride you have done and shows where time was lost against the best plan for that course. Both are Pro.

Can I track training load and form?

Yes. The training diary logs daily load and works out fitness, fatigue and form (CTL, ATL and TSB). Import a ride file and it works out Normalised Power, IF and a TSS-style load, or bring a season in by CSV. It also holds your performance tests and CP and W′ history, and suggests today’s sessions from your form and your own CP and W′. Pro.

Can I analyse a lactate or gas exchange test?

Yes, free for any account. Type in one row per stage, paste from a spreadsheet, or upload the metabolic cart’s export (including .xlsx). The threshold tool runs every lactate and ventilatory method side by side, gives V̇O₂max, fuel use, efficiency and training zones, and lets you pick the methods you trust. Saving tests to come back to is Pro.

Can I connect Strava?

Yes. Connect Strava from your account settings and pull activities straight into the analyser or the diary. Pro, and you can disconnect at any time.

Can I share an analysis with my athlete or coach?

Yes. Save an effort and publish it as a link: anyone with the link sees the W′bal trace, power and the route map, with no account needed. Coaches on the Institutional plan can invite athletes by email and, once they accept, see a read-only dashboard of the squad’s form, CP, W′ and recent tests. Either side can end that link at any time.

Can I cancel at any time?

Yes. Cancel from your account settings. You keep access until the end of the billing period, and for 72 hours after it. Pro starts with a 7-day free trial: you give a card at checkout, and if you cancel before the trial ends you pay nothing. One trial per person.

Do you offer academic or student discounts?

Yes. Get in touch through the contact page from your institutional email address.

What’s the difference between Pro and Institutional?

Pro is for one athlete, coach or scientist. Institutional covers up to 20 athlete seats under one subscription, with the coach dashboard and invoice billing, for university labs, teams and coaching businesses. Each athlete on the roster takes a seat, and a pending invitation holds one until it is accepted or withdrawn. Need more than 20? Get in touch.

Ready to see what’s left in the tank?

Request access and we’ll send an invitation. Already have an account? Sign in and pick up where you left off.

Create a free account and upload a ride. Already have an account? Sign in and pick up where you left off.