TL431, LM4040, REF5025: Choosing a Voltage Reference

When choosing a voltage reference, decide on the topology first. A shunt (parallel) reference connects to the supply through a series resistor and, like a Zener diode, sinks the excess current to ground through itself. A series reference works from input to output like a small linear regulator and draws only its own quiescent current plus the load current. Good starting points are the TL431 for an adjustable reference with a wide voltage range, the LM4040 for a fixed-voltage reference that runs on microamps, and a series reference such as the REF5025 for 12- to 14-bit ADCs that need low drift over temperature.
In this guide we compare three parts using their datasheet values: the adjustable shunt reference TL431ACZ-AP in TO-92, the 5.0 V shunt reference LM4040B50FTA in SOT23, and the 2.5 V series reference REF5025IDGKT in VSSOP-8. At the end of the article you will find a series resistor calculation, a TL431 error margin calculation and an error budget for a 12-bit ADC. More options are in the Voltage Reference ICs category.
What is a voltage reference, and how is it different from a regulator?
A voltage reference is a voltage source whose output changes as little as possible with temperature, supply and time. It sets the full-scale voltage of ADCs and DACs, the threshold of comparators and the feedback target of power supplies. A linear regulator is designed to power a load: it delivers hundreds of milliamps, and its output tolerance is usually a few percent. A reference, by contrast, runs on a few milliamps and in return holds its voltage within 0.2%, or even 0.05%. We covered choosing a regulator to power a load in the article 7805 vs. AMS1117.
How does a shunt reference work?
A shunt reference is connected like a Zener diode. Current from the supply flows through the series resistor, and the part the load does not draw flows through the reference to ground. When the load current rises, the reference current falls, and the total current through the resistor stays almost constant. The resistor is therefore sized for the worst case, and the circuit consumes the same current even at light load. The logic is the same as the Zener diode series resistor calculation. What sets a shunt reference apart from a Zener is that it holds its voltage to a much tighter tolerance and the voltage moves much less as the current changes.
How does a series reference work?
A series reference is a small linear regulator operating between its input and output. It needs no series resistor and draws from the supply only its quiescent current and the current the load takes. The REF5025’s quiescent current is at most 1 mA at 25 °C and at most 1.2 mA from −40 to 125 °C. Its output can source or sink up to 10 mA. In circuits with a varying load current, this architecture wastes less energy than a shunt reference.
TL431, LM4040 and REF5025 comparison table
The values below are taken from the manufacturers’ datasheets. Unless otherwise stated, the condition is 25 °C, and “max” or “min” denotes guaranteed limits.
| Parameter | TL431ACZ-AP | LM4040B50FTA | REF5025IDGKT |
|---|---|---|---|
| Architecture | Adjustable shunt, 3 terminals | Fixed shunt, 2 terminals | Fixed series, 8 pins |
| Output voltage | Vref (typ. 2.495 V) to 36 V, set with two resistors | 5.0 V | 2.5 V |
| Initial tolerance | Vref 2.47 to 2.52 V (±1%) | ±10 mV (±0.2%) | ±0.05% (±1.25 mV) |
| Variation with temperature | Vref deviates by max 15 mV over 0–70 °C (typ. 3 mV) | Max ±100 ppm/°C (IR = 1 mA); total tolerance ±43 mV over −40–85 °C, ±60 mV over −40–125 °C | Max 3 ppm/°C (typ. 2.5), −40–125 °C |
| Operating current | Cathode current 1 to 100 mA (minimum current for regulation max 0.6 mA) | Minimum operating current max 74 µA (83 µA over −40–125 °C), upper limit 15 mA | Quiescent current max 1 mA (1.2 mA over −40–125 °C) |
| Voltage limit | Cathode-anode max 36 V (absolute maximum 37 V) | Set by the series resistor | Input 2.7 V to 18 V |
| Voltage change with current | Dynamic impedance typ. 0.22 Ω, max 0.5 Ω | Dynamic impedance typ. 0.5 Ω, max 1.1 Ω (IR = 1 mA, 120 Hz) | Load regulation typ. 20 ppm/mA, max 30 ppm/mA |
| Noise | No numerical value in the datasheet | Typ. 80 µVrms (10 Hz–10 kHz, IR = 100 µA) | Typ. 3 µVpp/V (0.1–10 Hz) |
| Output capacitor | Has an unstable region with capacitive loads | Not required, tolerant of capacitive loads | 1 to 50 µF recommended |
| Temperature range | 0 to 70 °C | −40 to 125 °C | −40 to 125 °C |
| Package | TO-92 | SOT23 | VSSOP-8 |
Because the noise values are given over different frequency bands, they cannot be compared directly. The REF5025’s figure works out to about 7.5 µVpp at a 2.5 V output.
Typical connection circuits

LM4040 connection
On the LM4040 in SOT23, pin 1 is the cathode and pin 2 is the anode. The cathode connects to the node where the series resistor and the load meet, and the anode goes to ground. Pin 3 must be left open or tied to pin 2: because the die sits on this pin inside the package, pins 2 and 3 are electrically connected. An output capacitor is not mandatory.
TL431 connection and output formula
The TL431’s three terminals are the cathode, the anode and the reference (Ref). R1 goes between the cathode and Ref, and R2 between Ref and the anode. The output voltage is given by:
VKA = Vref × (1 + R1 / R2) + R1 × Iref
Here Iref is the current flowing into the Ref terminal: typ. 1.8 µA, max 4 µA on the TL431AC. If Ref is tied directly to the cathode, the output equals Vref, i.e. typ. 2.495 V. In the TO-92 package, with the flat face toward you and the leads pointing down, the order from left to right is Ref, anode, cathode. On the SO-8 TL431, pin 1 is the cathode, pin 8 is Ref, pins 2, 3, 6 and 7 are the anode, and pins 4 and 5 are not connected (NC).

REF5025 connection
On the REF5025, pin 2 is the input (VIN), pin 4 is ground and pin 6 is the output (VOUT). The datasheet recommends the following capacitors:
- Input: a 1 to 10 µF decoupling capacitor as close as possible to the supply and ground pins. With a noisy or high-impedance supply, additional capacitance can be added.
- TRIM/NR (pin 5): 1 µF to ground. Reduces bandgap noise.
- Output: 1 to 50 µF. For better noise performance, the recommended ESR is 1 to 1.5 Ω; if the capacitor’s ESR is low, a small series resistor can be added.
Example calculation: series resistor for the LM4040
Scenario: a 12 V ±10% supply (10.8 to 13.2 V), a 5.0 V reference with the LM4040B50FTA, and a load current of 0 to 1 mA. The formula from the datasheet is:
RS = (VS − VR) / (IL + IR)
- Worst case, minimum current: lowest supply (10.8 V), highest load (1 mA). The reference current must be at least 83 µA (worst-case value for −40 to 125 °C). To leave margin, take 0.2 mA: RS ≤ (10.8 − 5.0) / (1 + 0.2) mA = 4.83 kΩ. The standard value chosen is 4.7 kΩ.
- Check: at 10.8 V, 5.8 V / 4.7 kΩ = 1.23 mA flows through the resistor; if 1 mA goes to the load, 0.23 mA remains for the reference. This is above 83 µA.
- Worst case, maximum current: highest supply (13.2 V), no load connected. 8.2 V / 4.7 kΩ = 1.74 mA flows through the resistor, and all of it goes into the reference. Since the limit is 15 mA, we are in the safe region.
- Power: at most 5.0 V × 1.74 mA ≈ 8.7 mW is dissipated in the reference and at most 8.2² / 4700 ≈ 14.3 mW in the resistor. A 1/8 W resistor is sufficient.
In this circuit the reference current varies between 0.23 and 1.74 mA. According to the datasheet, as the current varies between IRMIN and 1 mA the voltage shifts by at most 1.0 mV at 25 °C (1.4 mV over −40–125 °C), and as it varies between 1 and 15 mA by at most 8.0 mV (12.0 mV over −40–125 °C). The less the load current changes, the smaller this shift; because an ADC’s reference input can draw pulsed current during sampling, a capacitor close to the input is still beneficial.
Example calculation: 5.0 V with the TL431 and the error margin
To get 5.0 V with the TL431AC, choose R1 = R2. With 1% tolerance 2.2 kΩ resistors, the typical output is:
VKA = 2.495 × (1 + 2.2 / 2.2) + 2200 Ω × 1.8 µA = 4.990 + 0.004 ≈ 4.994 V
About 2.495 V / 2.2 kΩ ≈ 1.13 mA flows through the divider. This current is not part of the TL431’s cathode current; the series resistor must be calculated to leave at least 1 mA for the TL431 on top of it. For the worst case, take the Vref limits at 25 °C together with the 1% tolerance of the resistors:
- Minimum: Vref = 2.47 V, R1 = 2178 Ω, R2 = 2222 Ω: 2.47 × (1 + 0.9802) ≈ 4.891 V
- Maximum: Vref = 2.52 V, R1 = 2222 Ω, R2 = 2178 Ω, Iref = 4 µA: 2.52 × (1 + 1.0202) + 0.0089 ≈ 5.100 V
The result is between 4.89 and 5.10 V, i.e. roughly −2.2% to +2.0% relative to the 5.0 V target. Over 0–70 °C the datasheet gives limits of 2.453 to 2.537 V for Vref and a maximum Iref of 5.2 µA; running the same calculation with these limits widens the output to about 4.86 to 5.14 V. This tolerance is adequate for switch-mode power supplies, where the feedback loop corrects the error, or for calibrated threshold circuits. If the part is to serve as the reference of a measurement circuit, the LM4040 or REF5025 gives a more accurate result. You can find the TL431 in an optocoupler feedback circuit in the article optocoupler resistor calculation.
ADC error budget: how many LSBs does each reference shift?
When the reference voltage directly sets an ADC’s full scale, every millivolt of error in the reference produces a proportional error in every reading. In a 12-bit ADC, one step (LSB) is the reference voltage divided by 4096. Let’s convert the initial tolerance of the three parts at 25 °C into LSBs:
| Reference | Voltage | 1 LSB (12 bit) | Initial tolerance | Equivalent in LSB |
|---|---|---|---|---|
| TL431ACZ-AP (Ref tied to cathode) | 2.495 V | 0.609 mV | ±25 mV | about ±41 LSB |
| LM4040B50FTA | 5.0 V | 1.221 mV | ±10 mV | about ±8 LSB |
| REF5025IDGKT | 2.5 V | 0.610 mV | ±1.25 mV | about ±2 LSB |

The initial error can largely be removed in software with a single-point calibration. Temperature drift, however, persists after calibration. When the board temperature rises from 25 °C to 85 °C, a rough calculation (temperature coefficient × temperature difference) gives:
- REF5025: 3 ppm/°C × 60 °C = 180 ppm, about 0.45 mV at 2.5 V, i.e. less than 1 LSB.
- LM4040B50: 100 ppm/°C × 60 °C = 6000 ppm, about 30 mV at 5.0 V, i.e. about 25 LSB.
- TL431AC: this part is specified only up to 70 °C; its 15 mV variation over 0–70 °C alone amounts to about 25 LSB.
These calculations are based on the datasheets’ worst-case limits; design with these values anyway. The op-amp choice in the signal chain also contributes to the total error; for that, see the article on op-amp selection.
What to watch for when choosing a voltage reference
- Write down the required accuracy in LSBs. For an 8-bit measurement the LM4040 is more than enough; at 10 bits the initial error is around 2 LSB, but drift over a wide temperature range can reach several LSBs. Between 12 and 14 bits, a series reference of the REF5025 class is needed if no calibration will be performed.
- Check the temperature range. The TL431AC is specified for 0 to 70 °C. For industrial environments, look at the wide-temperature versions of the same family (such as TL431I, TL431AI). The LM4040 and REF5025 cover −40 to 125 °C.
- Look at the current budget. In a battery-powered circuit, the LM4040 has the advantage with its current of around 100 µA. The TL431 needs at least 1 mA, and the REF5025 draws up to 1 mA quiescent.
- Consider how much the load current varies. If the load current varies over a wide range, a shunt reference wastes energy because it is sized for the worst case. A series reference draws only as much current as the load.
- Look at long-term stability. In the VSSOP package, the REF5025’s typical drift over the first 1000 hours is 50 ppm; the LM4040’s is typ. 120 ppm over 1000 hours (IR = 100 µA).
Common mistakes
- Running the TL431 below 1 mA. The datasheet gives a cathode current range of 1 to 100 mA. In optocoupler feedback circuits where the entire TL431 current passes through the LED, this current can drop at light load. To prevent this, a resistor is placed in parallel with the LED so that the TL431 gets sufficient current under all conditions.
- Putting an arbitrary capacitor on the TL431 output. The stability graph in the ST datasheet shows that, depending on cathode current and voltage, the circuit can become unstable with capacitive loads between roughly 10 nF and 1 µF; above this range the circuit is stable again. If a capacitor is needed, choose its value from this graph.
- Connecting pin 3 of the LM4040 to another net. This pin is in contact with pin 2 (anode) inside the package; it must be left open or tied to pin 2.
- Calculating the series resistor only for the nominal supply. At the lowest supply and highest load, the reference must still get its minimum current, and at the highest supply with no load, the current must not exceed the upper limit.
- Putting a large, very low-ESR capacitor on the REF5025 output. The datasheet states that if the ESR is very low, gain peaking can occur and noise can increase, and it recommends an ESR of 1 to 1.5 Ω or a series resistor.
Frequently asked questions
Can a TL431 be used instead of a Zener diode?
Yes. With its Ref terminal tied to the cathode, the TL431 works as a 2.495 V shunt reference, and with two resistors as a shunt reference at any voltage up to 36 V. The cathode current must be kept between 1 and 100 mA. Because its dynamic impedance is typ. 0.22 Ω, its voltage moves much less with current than a Zener diode’s does. It cannot provide a voltage below 2.495 V.
What is the difference between the LM4040 and the TL431?
The LM4040 is a two-terminal, fixed-voltage shunt reference. It can operate at currents below 100 µA, and the B grade has an initial tolerance of ±0.2%. The TL431 is a three-terminal adjustable part, needs at least 1 mA, and in the AC grade its Vref tolerance is ±1%. Choose the LM4040 for an accurate, low-current fixed voltage, and the TL431 for an adjustable voltage or power supply feedback.
Which is better, a series reference or a shunt reference?
If the load current varies and high accuracy is required, a series reference is more efficient and holds its voltage more tightly. If the load current is small and constant, a shunt reference is a simpler and cheaper solution.
How do you calculate the TL431 output voltage?
With the formula VKA = Vref × (1 + R1 / R2) + R1 × Iref. R1 is between the cathode and Ref, and R2 is between Ref and the anode. For example, with R1 = R2 = 2.2 kΩ the output is typ. 4.994 V. Do not choose very large resistors, because the Iref current creates an additional error voltage across R1.
Conclusion
Choosing a voltage reference comes down to three questions: what accuracy is required, over what temperature range the circuit will operate, and how large the current budget is. The TL431 is a suitable starting point for power supply feedback and threshold circuits, the LM4040 for battery-powered circuits and 8- to 10-bit measurements, and the REF5025 for 12- to 14-bit ADCs.
The pages of the parts used as examples in this article are below.
References
Products in this article
-
$0.705TL431ACZ-AP
STMicroelectronics · EE00104IC VREF SHUNT ADJ TO92-372 In Stock -
$2.50LM4040B50FTA
Diodes Incorporated · EE24555V VOLTAGE REFERENCES R5B73 In Stock -
$5.80REF5025IDGKT
Texas Instruments · EE1926Voltage References Lo Noise Very Lo Drift Prec Vltg Ref, VSSOP-840 In Stock
More from Seçim Rehberleri ve Karşılaştırmalar
- Seçim Rehberleri ve KarşılaştırmalarIntermediate
TVS Diode Selection: How to Choose SMAJ, SMBJ and P6KE?
How do you select a TVS diode? VWM, VBR, VC and IPP values, the difference between unidirectional and bidirectional, an SMAJ, SMBJ and P6KE…
- Seçim Rehberleri ve KarşılaştırmalarIntermediate
LM358 vs TL082 vs OP07: How to Choose an Op-Amp
Differences between the LM358, TL082, OP07 and MCP6002: a guide to choosing the right op-amp for your circuit by supply, output swing, offset, input…
- Seçim Rehberleri ve KarşılaştırmalarIntermediate
7805 vs. AMS1117: Choosing a Linear Regulator
The difference between the 7805 and the AMS1117 shows up in dropout voltage and heat. Regulator selection for the L7805CV, AMS1117-3.3 and LP2985 with…


