Electronics

Thermistors

NTC and PTC thermistors — how they work, Steinhart-Hart, and beta equation for temperature from resistance.

Types

NTC (Negative Temp Coefficient)Resistance decreases with temperature. Used as temperature sensor, inrush limiter.
PTC (Positive Temp Coefficient)Resistance increases with temperature. Used as self-resetting fuse, heater.

Beta equation (approximate)

R(T)= R₀ · exp(β · (1/T − 1/T₀))
1/T= 1/T₀ + (1/β) · ln(R/R₀)
β typical3 000 – 4 500 K for common NTCs
T₀298.15 K (25 °C reference)

Steinhart-Hart (more accurate)

1/T= A + B·ln(R) + C·(ln(R))³
A, B, CCoefficients from calibration at 3+ temperatures

Common NTC values

R @ 25 °CUse
1 kΩLow-value thermal cutoffs
10 kΩMost common — 3D printers, HVAC, batteries
47 kΩLow-power sensing
100 kΩVery low-current sensing

Circuit notes

  • Use a voltage divider with a stable reference resistor and measure with an ADC.
  • Self-heating: I²·R warms the thermistor — minimize current (< 1 mW).
  • Non-linearity: pre-compute or use a lookup table for accurate temperature.
  • For wide range, use log-amp or choose β close to your operating range.

Worked example: temperature from an ADC reading

  • A 10 kΩ NTC (β = 3950 K) sits at the bottom of a divider under a 10 kΩ fixed resistor on 3.3 V, read by a 12-bit ADC. At 25 °C the two resistors are equal, so the midpoint is 1.650 V.
  • The ADC reads 1613 counts. The divider gives R = 10 000 × 1613 / (4095 − 1613) = 6 499 Ω, about 6.5 kΩ (the 1.300 V point).
  • Beta equation: 1/T = 1/298.15 + ln(6 500 / 10 000) / 3950 = 0.0033540 − 0.0001091 = 0.0032450, so T = 308.17 K = 35.0 °C.
  • Self-heating check: 3.3 V across 20 kΩ is 0.165 mA, so the NTC dissipates I²R = 0.27 mW. With a typical small-bead dissipation constant of about 1.5 mW/°C that warms it by roughly 0.2 °C, which is small next to the ±1 °C tolerance of most parts.

Choosing the fixed resistor

  • The divider is most sensitive where the fixed resistor equals the thermistor's resistance, so pick the value the NTC has in the middle of the range you care about: 10 kΩ for room temperature with a 10 kΩ part, a lower value for a sensor that lives near 80 °C.
  • Use a 1 % (or better) metal-film resistor with a low temperature coefficient, and keep it away from the heat you are measuring, or the reference drifts with the reading.
  • Read the divider with the same supply as the ADC reference (ratiometric), so supply changes cancel instead of showing up as temperature.

Common mistakes

  • Using degrees Celsius in the beta or Steinhart-Hart equation: both need kelvin (°C + 273.15).
  • Mixing up β values: datasheets quote β for a temperature pair such as 25/50 or 25/85 °C, and using the wrong one shifts the answer by a degree or more at the ends of the range.
  • Expecting the beta equation to hold over a wide span: it is accurate to about ±1 °C over 50 °C or so; for wider ranges use Steinhart-Hart coefficients or the manufacturer's resistance table.
  • Swapping NTC and PTC: a PTC used as a resettable fuse is not a precision temperature sensor.
Was this article helpful?