Rating curve fitter: stage-discharge curve Q = a(h − h0)^b from river gaugings

Fit a stage-discharge rating curve to your river gaugings, Q = a (h − h0)^b, with the zero-flow stage fitted or typed and an optional second segment above a break stage. See the scatter, gaugings that sit off the curve, a 95 % range, the discharge for any stage, the stage for any discharge and a rating table to download. Paste or open a file.

Keep it one tap away for everyday use.

Bookmark Rating curve fitter?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Gaugings
  2. Fit
  3. Check
  4. Table
Nothing is uploadedWorks offline once open

Gaugings

One gauging per row: the stage (water level on the gauge) and the measured discharge. Columns named stage, level or gauge height and discharge, flow or Q are found by name; otherwise the first two number columns are used. Other columns (dates, notes) are ignored. Up to 5,000 gaugings. The example is made up.

h0 is the stage at which flow stops (the lowest point of the control, such as a riffle crest or weir crest). If you have surveyed it, type it; otherwise it is fitted. Use two segments when the control changes, for example when the water spills over the banks.

Rating curve

Use the curve

The range is where the mean curve lies with 95 % confidence; a single gauging scatters more widely. Stages outside the gauged range are marked: the curve there is an extrapolation and can be badly wrong, especially above the highest gauging.

Download

What it does

River gauges record the stage, the height of the water surface, every few minutes. Discharge, the volume of water passing each second, is measured only now and then, by gaugings with a current meter or an acoustic profiler. A rating curve links the two, so the stage record can be turned into a flow record.

Most rating curves follow a power law set by the channel’s control (a riffle, a weir, or the channel itself):

Q = a (h − h0)^b

where h0 is the stage at which flow stops, a scales the curve and b describes the shape of the control (about 1.5 for a rectangular section or a weir, 2.5 for a V shape, about 1.6 to 1.7 for a natural channel).

This tool fits the curve to your gaugings, shows how well they agree, and turns stages into discharges.

How to use it

  1. Paste or open your gaugings: stage and discharge per row. Columns named stage, level or gauge height and discharge, flow or Q are found by name; dates and notes are ignored.
  2. Type the units for the labels.
  3. Leave h0 blank to fit it, or type a surveyed value (the lowest point of the control).
  4. Choose two segments if the control changes, for example when the river spills onto its floodplain, and give the break stage. Each segment gets its own curve; the tool shows the step between them at the break so you can move the break until they meet.
  5. Set the percentage for flagging gaugings that sit far off the curve.
  6. Use the last card for the discharge at a stage, the stage for a discharge, and a rating table at any step, ready to download as CSV.

What the results mean

  • Scatter gives the range that 95 % of single gaugings fall within around the curve, as a percentage. Good stations manage about ±5 to 10 %.
  • Gaugings off the curve may be measurement errors, or a sign that the channel has changed (weed growth, a flood that moved the gravel). A run of gaugings all on one side over time means the rating needs a shift or a new curve.
  • The 95 % range in the table is for the mean curve; it widens quickly beyond the gauged range.

Worked example

The 24 made-up gaugings run from 0.64 m to 3.04 m stage and 1.6 to 62 m³/s. The fit gives Q = 11.61 (h − 0.3406)^1.681, with single gaugings within about −7.0 % to +7.5 % of the curve. At 2.5 m the curve gives 42.4 m³/s; 30 m³/s needs a stage of about 2.1 m. Typing a surveyed h0 of 0.30 m instead gives Q = 10.60 (h − 0.30)^1.764.

FAQ

Can I extend the curve above my highest gauging? Only with care. Flow above the gauged range often follows a different control (the floodplain), so extrapolation can be badly wrong. A hydraulic calculation such as the Manning and weir flow calculator can help check it.

Why fit on logarithms? Gauging errors are roughly a fixed percentage of the flow, so fitting the logarithms weighs a 5 % error the same at low and high flows.

Does it handle hysteresis or shifts? No. Loops from rising and falling floods and gradual shifts need dated gaugings and more advanced methods.

Where the numbers come from

  • The power-law rating curve Q = a (h − h0)^b fitted by least squares on logarithms, with h0 as the stage of zero flow: standard hydrometric practice, as described for example in the WMO Manual on Stream Gauging (WMO-No. 1044, 2010) and ISO 18320 (equations only; no tables reproduced).
  • Confidence ranges from ordinary least-squares regression on the logarithms with Student's t; the zero-flow stage is found by a one-dimensional search that minimises the misfit.
  • Checked against SciPy curve_fit and linregress in the tests. The example gaugings are made up, drawn at random by fibub.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-08.

Change log for Rating curve fitter

  1. Add the rating curve fitter (#144) Details on GitHub

Every change to fibub

Related tools

Manning and weir flow calculator #140 Work out the discharge or normal depth in a rectangular, trapezoidal or triangular channel or a part-full pipe with Manning's equation, with velocity, Froude number, critical depth, specific energy, bed shear and a rating curve; and the flow over sharp-crested, V-notch, broad-crested or Cipolletti weirs, or the head for a given flow. SI or US units. Rainfall runoff calculator #141 Estimate the peak flow from a small catchment with the rational method (Q = CiA, Kirpich time of concentration, your own rainfall intensity curve) and the runoff depth, volume and triangular hydrograph from the SCS (NRCS) curve number method, with dry, average and wet ground. Area-weighted C and CN for mixed land use. SI or US units. Flood frequency analysis #142 Fit GEV, log-Pearson type III and Gumbel distributions to a record of annual peak flows to estimate the 10-, 100- or any-year flood, with bootstrap ranges, the return period of a given flow, the chance of a flood over a span of years, plotting positions and a Grubbs-Beck outlier screen. Paste or open a file. Unit hydrograph builder #149 Build a unit hydrograph for a catchment from its area and time of concentration (a gamma curve with a peak rate factor, as in the SCS method, or a Nash cascade). Turn a series of excess rain into a storm hydrograph by convolution. Or derive the unit hydrograph from a storm you measured, with baseflow separation, a φ-index loss and a non-negative least-squares fit. Uncertainty propagation calculator #25 Type your formula and your measurements with their uncertainties, or paste repeated readings. Get the result with its uncertainty, which input matters most, and a Monte Carlo check. Evapotranspiration calculator #143 Work out daily reference evapotranspiration (ET0) with the FAO-56 Penman-Monteith equation from temperature, humidity, wind and sunshine or radiation, with shortcuts when humidity or radiation is missing, Hargreaves for comparison, crop water use with your own Kc, and a daily table you paste or open for a month or years of weather.