A thermocouple channel measures a voltage relative to its reference junction. Converting that voltage to a temperature and then adding the reference-junction temperature can give the wrong answer when the voltage-temperature relationship is nonlinear.

The compensation belongs in the voltage relationship before the final inverse conversion. The original toy curve below makes the operation order visible. It is deliberately not a calibration equation for any thermocouple type or a circuit construction procedure.

Name the reference used by the conversion curve

Let E(T) describe a thermocouple's ideal thermoelectric voltage relative to a reference junction at 0 degrees Celsius, with a fixed type, sign convention, and valid temperature range. Under the corresponding ideal junction model, a measurement junction at T_hot and reference junction at T_cold produces V_measured = E(T_hot) − E(T_cold).

The cold junction need not be physically cold. Its temperature is part of the voltage's reference condition. Measuring it provides information required to interpret the voltage; it does not change the temperature of the measurement junction.

Texas Instruments' SBAA355A application note explicitly describes converting the cold-junction temperature to voltage, adding that voltage to the measured thermocouple voltage, and then converting the sum to temperature. Analog Devices' AN-1087 separately discusses thermocouple nonlinearity. Neither source's product parameters are used as the numerical curve here.

Construct an artificial nonlinear relationship

For an original arithmetic example, define the numerical function E(T) = 0.040T + 0.00010T² millivolts, where T is the numerical Celsius temperature. The coefficients have the corresponding millivolt-per-degree and millivolt-per-degree-squared units.

Use only the interval from 0 to 150 degrees Celsius. The slope there is positive, so the example has a unique inverse on that interval. These coefficients are invented to illustrate nonlinearity. They must not be substituted for a real thermocouple table or polynomial.

Choose a measurement junction at 100 degrees Celsius and a reference junction at 20 degrees Celsius. The invented curve gives E(100) = 5.000 mV and E(20) = 0.840 mV.

The measured difference is therefore 4.160 mV. That value alone is not the hot-junction temperature expressed through the zero-reference curve. Its reference junction is at 20 degrees, not zero.

Compensate before applying the inverse

Convert the known reference temperature with the same curve: 20 degrees corresponds to 0.840 mV. Add that value to the measured 4.160 mV, giving 5.000 mV. Applying E_inverse to 5.000 mV returns 100 degrees Celsius, as required by the constructed model.

The algebra is direct: E_inverse[V_measured + E(T_cold)] = E_inverse[E(T_hot)] = T_hot. The inverse must be applied over the stated range and with the same curve and voltage convention used in the forward calculation.

This consistency check does not establish an actual temperature accuracy. It shows that the forward and inverse operations agree for an idealized model and exact inputs. Sensor errors, thermal gradients, and readout contributions were excluded from those inputs.

Adding temperatures produces a different result

Apply the inverse first to the measured 4.160 mV. For the invented positive-temperature branch, solving the quadratic gives approximately 85.6571 degrees Celsius. Adding the reference temperature of 20 degrees gives approximately 105.6571 degrees.

That is about 5.6571 degrees above the stipulated hot-junction temperature. The discrepancy is not a rounding effect. E_inverse(a − b) is generally not E_inverse(a) − E_inverse(b) for a nonlinear function.

The measured-voltage conversion has not produced an exact hot-minus-cold temperature difference. Treating it as such was the unsupported step. In the special linear model E(T) = kT with constant k, the simple temperature addition would work. The artificial quadratic was chosen specifically to show why that special property cannot be assumed generally.

Changing the reference should preserve the inferred hot temperature

Keep the hypothetical hot junction at 100 degrees, but move the reference condition to 40 degrees. The toy curve gives E(40) = 1.760 mV, so the measured voltage becomes 5.000 − 1.760 = 3.240 mV.

The raw voltage changed even though the hot-junction temperature stayed fixed. Adding the corresponding reference voltage restores 5.000 mV and again returns 100 degrees.

A record that reports only the raw thermocouple voltage could therefore appear to show a temperature change when its reference condition changed. A compensation record needs the reference measurement and its relationship to the actual junction, not merely an assumed room temperature.

Reference errors pass through the same model

Suppose the reference is actually 20 degrees but the compensation calculation uses 21 degrees. Under the toy curve, E(21) = 0.8841 mV. The corrected voltage becomes 4.160 + 0.8841 = 5.0441 mV, instead of 5.000 mV.

The resulting temperature is approximately 100.7341 degrees Celsius. A one-degree reference error did not become exactly a one-degree hot-junction error because the forward and inverse slopes differ at those two temperatures.

This is another hypothetical sensitivity calculation, not an uncertainty specification. It demonstrates why a reference sensor's error and thermal relationship to the junction belong in the complete measurement model.

Keep compensation and linearization distinct

Cold-junction compensation accounts for the reference-junction contribution. Linearization converts a nonlinear voltage relationship into the desired temperature representation. A system can perform one operation while still needing the other; an amplifier's output scaling alone does not establish both.

For a robot temperature record, retain the thermocouple type, voltage sign and units, reference-junction measurement, conversion relationship, and valid range. Those details allow compensation to be checked in the correct domain without turning an invented curve into a real sensor calibration.

Sources checked October 23, 2026

Texas Instruments, K-Type Thermocouple Measurement Circuit With Precision ADC, SBAA355A, March 2019, revised September 2024, page 4:

https://www.ti.com/lit/an/sbaa355/sbaa355.pdf

Analog Devices, AN-1087, Thermocouple Linearization When Using the AD8494/AD8495/AD8496/AD8497, web edition as accessed:

https://www.analog.com/en/resources/app-notes/an-1087.html

All coefficients, temperatures, voltages, and calculations are original artificial examples. No source circuit, calibration polynomial, or product accuracy claim is reproduced.

Illustration note: The accompanying wired sensor fixture is a generic concept illustration. It does not identify a thermocouple, show a measured junction temperature, or establish a calibration result.