What a meter's error is worth

An orifice gas meter carries a standard uncertainty of about a quarter of a per cent. Across a system of them, what that is worth depends less on how good each meter is than on which of their errors they share, and that is the one thing no open source settles.

An orifice meter measures gas by the strength of a pressure drop. The plate is a disc with a hole in it, clamped across a pipe; the gas speeds up through the hole, its pressure falls, and the fall says how fast it is going. Every term in that inference carries an error: the coefficient that turns a pressure drop into a flow, the transmitters that read the pressures and the temperature, the bore of the hole, the inside of the pipe, the analysis of the gas and the equation that says how far it is from ideal. Add them up for one well-kept meter and the answer is a fraction of a per cent.

A pipeline system is many such meters. Gas comes in through some and goes out through others, and the difference between the two totals is the system's imbalance. Part of any imbalance is real loss. Part of it is measurement, and this page asks how big that part is and what it costs. It answers with a model of a synthetic system in which no gas is lost at all, so that every unit of imbalance it finds is a measurement error.

Try it

Build a system and see what it does not balance by

Set the number and size of the receipt and delivery meters, choose which of their errors are shared and which are their own, and run it. The model is the one on this page, in the browser, propagated by Monte Carlo until the stopping rule of the international guide to it is met. It opens on this page's default system and the first row of the table below, with every meter's discharge-coefficient error its own.

Open the imbalance simulator Download code

What it finds

For one meter, the discharge coefficient is the whole story. On a 102.3 mm run at a beta ratio of 0.50 the meter's flow carries a standard uncertainty of 0.27%, and the discharge coefficient on its own gives 0.25% (the inputs combine as the square root of the sum of their squares, so the parts do not add up to the whole). The next largest input, the bore diameter, contributes 0.062%; differential pressure 0.044%, temperature 0.054%. A single meter's uncertainty lives in the equation, not in the instruments.

One meter's standard uncertainty by input. The discharge coefficient's bar, 0.25 per cent, is longer than every other input's put together; all inputs together give 0.27 per cent.

One receipt meter of the default system, each input alone and then all together, as standard uncertainty (one standard deviation) of its flow. Doubled, the combined figure is 0.54%, beside 0.55% at 95% confidence for the example station in a published uncertainty handbook1; that was computed for another meter and is a scale, not a check.

In the meters modelled here that coefficient is not measured. It comes from an equation, Reader-Harris/Gallagher, fitted to laboratory data2 and written into ISO 5167-23, and its stated uncertainty comes from the data behind that fit and the manufacturing variation the standard permits. Whether one meter's error in it is the same as another's is the question that decides everything below, and no public source settles it for meters at different sites. A handbook on metering-station uncertainty4 treats the coefficient as uncorrelated between two runs side by side, because their inlet pipework is never the same; the equation's own bias, which every meter that uses it shares, points the other way. So the model runs three cases and does not choose between them.

The default system has 12 receipt meters on 102.3 mm runs feeding 3 delivery meters on larger ones, 101 million cubic feet a day in all. Its measured imbalance, receipts minus deliveries as a share of throughput, has a standard uncertainty of:

The discharge coefficient's error isImbalance, standard uncertainty95% of outcomesWorth, a year
independent at every meter0.18%-0.35% to 0.35%$210,000
shared, receipts and deliveries alike0.055%-0.107% to 0.107%$65,000
shared within each end, the ends apart0.36%-0.70% to 0.70%$420,000

The middle row is the counter-intuitive one. An error every meter shares is the worst kind for the total a single meter or a group of them reports, because nothing averages it away. It is the best kind for a balance, because it inflates receipts and deliveries by the same factor and the difference does not move. Here receipts and deliveries run at beta ratios of 0.50 and 0.55, which this model puts in one class sharing the equation's error (an assumption), and the imbalance left is 0.055%, all of it from the rest of the budget. Make the ends' errors shared within each end but independent between them, and the same coefficient stops cancelling and roughly doubles in effect: in the bottom row it alone accounts for 0.35%, against 0.17% when every meter's error is its own.

Three distributions of the default system's measured imbalance in energy. The shared-and-alike case is a narrow spike around zero; the independent case is wider; the ends-apart case is widest.

The default system's measured imbalance in energy, as a share of throughput, over one year in which every transmitter is recalibrated four times. Each curve is 200,000 simulated years; the true imbalance is zero in all of them. The axis stops at plus and minus 1%, which leaves out 0.5% of the ends-apart years.

In money, one standard uncertainty of imbalance on this system is between $65,000 and $420,000 a year at $3.10 per million British thermal units, the median Henry Hub spot price5 from 2025-10 to 2026-09. The mean over the same months is $3.59, pulled up by one month at $7.72, which is why the median is used.

What averages away

The intuition that more meters means a better total is right for errors that are each meter's own and wrong for errors they share. With the discharge coefficient independent, the total of the receipt meters' readings goes from 0.26% uncertain with one meter to 0.030% with a hundred. With it shared, a hundred meters are barely better than one: 0.26% to 0.25%. The imbalance follows neither rule on its own, because it is a difference, and whether a shared error survives a difference depends on whether both sides share it.

Two panels against the number of receipt meters, one to one hundred. Top: total measured throughput, whose uncertainty falls steadily when errors are independent and stays flat when they are shared. Bottom: the imbalance, lowest when a shared error cancels and, from two meters up, largest when the two ends carry different shared errors.

N receipt meters into one delivery meter sized to take them, in the same three cases. Panel A is what a seller's total is good to; panel B is what the balance between seller and buyer is good to.

For scale, the U.S. Energy Information Administration's national figure for natural gas "lost and unaccounted for6" in 2024 was 1.6% of consumption. That number is not a measurement error and should not be read as one. Of it, 0.5 points are losses the companies know of, from leaks, damage and blowdown; the other 1.1 are "unaccounted for", the residual between what companies report as supply and what they report as disposition, which the agency's note says may come from quantities lost or from "differences in company accounting systems in terms of scope and definition." Distribution utilities report a percentage of their own to the Pipeline and Hazardous Materials Safety Administration7 each year; across 1,368 natural gas reports for 2025 the median was 1.00%, and 234 of them were negative, more gas out than in.

Method

Each meter's mass flow follows ISO 5167-2: the Reader-Harris/Gallagher discharge coefficient8, iterated with the Reynolds number it depends on, and the standard's expansibility factor. The open implementation used9 is the Python library fluids, checked against an independent transcription of the equation. Compressibility, the isentropic exponent and the heating value come from NIST's reference implementation of AGA Report No. 810, the GERG-2008 equation of state, compiled from its published source and checked against NIST's own test points. Volume is reported at 14.73 psia and 60 °F, and energy from the gas's ideal gross heating value, so a composition error moves the molar mass, the compressibility and the heating value together.

Every input's error is drawn in the unit its source states it in: transmitter errors as a fraction of span11, which becomes a larger fraction of reading the lower a meter runs in its range; temperature in kelvin12, for the sensor, its transmitter13 and its installation14; the compressibility equation's error in proportion to how far the gas is from ideal15 at each meter's pressure. Each error has a shared fraction between zero and one, the correlation between any two meters' errors in that input. By default the transmitters are independent from meter to meter, as the handbook classifies them for runs at one station; the diameters and the gas analysis, which it classes as correlated within a station, are also independent here, because these meters are taken to sit at different sites (an assumption the simulator lets a reader change). The compressibility equation is shared by construction, since every meter uses the same one. Transmitter errors are redrawn at each of four calibrations a year; the plate, the pipe, the coefficient and the equation keep theirs for the year. In the model the true gas is one composition and balances exactly in moles.

Uncertainty is propagated by Monte Carlo after JCGM 101:200816, the supplement to the international guide on expressing measurement uncertainty, with its adaptive stopping rule: batches of 10,000 trials until every reported figure has stabilised to the precision it is printed with. A test suite checks the model against cases with known answers: zero input uncertainty gives zero imbalance, independent errors average as one over the square root of the number of meters, and each shared error cancels or survives exactly as the algebra says. Each check has been run against a deliberately broken model and seen to fail.

Limits

This is an explainer. It gives no engineering advice and states no uncertainty for any real installation. The system is synthetic, sized and set by assumption. The discharge coefficient's uncertainty is the ISO 5167-2 figure as quoted by a manufacturer's technical note, because the standard's text is not openly published; the pipe diameter's 0.25% is an assumption; the bore's 0.05% is the standard's roundness limit17 used as a bound; and the gas analysis uncertainties come from one published example budget for one chromatograph18. Scatter about each transmitter's offset within a calibration interval is taken to average out; the uncertainty of the expansibility factor is left out because its formula is not openly published; and nothing here models a damaged plate, a liquid-laden stream, a pulsating flow or any of the faults that move a real meter further than its stated uncertainty.


The code

model.py holds the meter equation, the error model and the Monte Carlo; build_meter.py runs every case on this page and writes the payload; fig_meter.py draws the three figures; test_meter.py holds the known-answer tests and their deliberate breaks, and checks/ the checks of fluids and of the compiled NIST code against their published answers. aga8/ is NIST's source, public domain, which build_aga8.py compiles; engine.js is the browser port the simulator runs, held to the Python by a parity test. The fetchers download and hash-check the public data; the archive carries none of it.

Download source All code

Sources

  1. NFOGM, Handbook of Uncertainty Calculations: Fiscal Metering Stations, 2003.An example orifice station at 0.55% expanded uncertainty against a 1.0% requirement.
  2. Reader-Harris, ISO 5167: Past and Present, Global Flow Measurement Workshop, 2022.That the standard's uncertainties are expanded uncertainties at k = 2, and that the coefficient's was derived from the data behind the equation and the manufacturing variation the standard permits.
  3. Emerson, Conditioning Orifice Technology and Orifice Standards, technical note, Table 6, quoting ISO 5167-2:2003, section 5.3.3.1.The discharge coefficient's stated uncertainty, 0.5% for beta 0.2 to 0.6 at Reynolds numbers above 10,000. A manufacturer quoting the standard: the standard's text is not openly published.
  4. NORCE, Handbook for Uncertainty Calculations for Gas Flow Metering Stations, 2020, section 4.4.1.Which input uncertainties are correlated between two orifice runs in parallel at one station, and why: the coefficient, pressures and temperature not; the diameters and the gas analysis yes.
  5. U.S. Energy Information Administration, Henry Hub Natural Gas Spot Price, monthly, series RNGWHHD.The price the imbalance is valued at.
  6. U.S. Energy Information Administration, Natural Gas Annual, Table A1, losses and unaccounted for volumes by state.The national figure and what it measures, from the table's own notes.
  7. Pipeline and Hazardous Materials Safety Administration, gas distribution annual report data, 2010 to present, Form PHMSA F 7100.1-1, Part G.The distribution operators' reported unaccounted-for gas percentages.
  8. American Gas Association, American Petroleum Institute and Gas Processors Association, Orifice Metering of Natural Gas and Other Related Hydrocarbon Fluids, AGA Report No. 3, Part 1, third edition, October 1990, section 1.7.2, as incorporated by reference and hosted by law.resource.org.The gas industry's adoption of a Reader-Harris/Gallagher equation for flange-tapped orifice meters. It is the 1990 form of the equation; its coefficients differ from the ISO 5167-2:2003 form this page uses.
  9. Bell, fluids, Python library, MIT licence, version 1.3.1.The Reader-Harris/Gallagher coefficient and the expansibility factor.
  10. National Institute of Standards and Technology, AGA8 reference code (GERG-2008, DETAIL and GROSS), github.com/usnistgov/AGA8, public domain.Compressibility, the isentropic exponent and the ideal gross heating value, and the test values the compiled code is checked against.
  11. Yokogawa, EJX110A Differential Pressure Transmitter and EJX510A and EJX530A Absolute and Gauge Pressure Transmitters, general specifications.Reference accuracy of 0.04% of span, the ambient-temperature and static-pressure effects, for the differential and static pressure transmitters.
  12. GHI GmbH, Pt100 and Pt1000 tolerance classes to IEC 60751.The class A sensor tolerance, plus or minus (0.15 + 0.002 |t|) degrees Celsius.
  13. Emerson, Rosemount 3144P Temperature Transmitter, product data sheet.A temperature transmitter's total error of plus or minus 0.12 degrees Celsius.
  14. Ingram (DNV GL), Experimental Research into the Measurement of Temperature in Natural Gas Transmission Metering Systems, North Sea Flow Measurement Workshop, 2014.Thermowell installations measuring gas temperature to within plus or minus 0.5 degrees Celsius above 1 m/s.
  15. Ruhr-Universität Bochum, Thermodynamics, The GERG-2008 Wide-Range Equation of State for Natural Gases.A 0.1% uncertainty in density in the gas region, used for the compressibility equation's error (its coverage factor taken as 2: an assumption).
  16. Joint Committee for Guides in Metrology, JCGM 101:2008, Evaluation of measurement data, Supplement 1 to the GUM: propagation of distributions using a Monte Carlo method.The propagation, the treatment of a stated bound as a rectangular distribution, and the adaptive stopping rule of its section 7.9.4.
  17. ISO 5167-2:2003, section 5.1.8.3, in the official preview published by the Swedish Institute for Standards.No diameter of the bore may differ from the mean by more than 0.05%.
  18. Sutan, Gas Chromatography Conditional Based Monitoring and Live Uncertainty Calculation, North Sea Flow Measurement Workshop, 2012, Table 9.The relative uncertainty of each measured mole fraction.