Bandgap Reference Calculator
Design a temperature-compensated bandgap voltage reference. Computes Vref, PTAT current scaling, and resistor ratios for first-order temp compensation.
How to Use
- Enter Vbe of the transistor at its bias current and the design temperature, typically 0.6 to 0.7 V.
- Enter the PTAT current and the emitter area ratio N between the two transistors (8 is common).
- Enter the temperature where you want zero drift, usually the middle of the operating range.
- Read R1, R2 and the resulting Vref; the chart shows how Vref bows from −40 to 125 °C.
Worked Example
A bandgap cell with N = 8, 10 µA of PTAT current and Vbe = 0.65 V, designed for zero drift at 27 °C. ΔVbe = 25.87 mV × ln 8 = 53.78 mV, so R1 = 53.78 mV ÷ 10 µA = 5.38 kΩ.
Cancelling the drift: Vbe falls about 2.02 mV/°C here, while ΔVbe rises 0.179 mV/°C, so R2/R1 = 2.021 ÷ 0.179 = 11.28 and R2 = 60.67 kΩ. Vref = 0.65 + 11.28 × 53.78 mV = 1.257 V. Over −40 to 125 °C it still bows by 2.5 mV, about 12 ppm/°C.
The common mistake: choosing the output voltage first. A bandgap only cancels its drift near 1.25 V. Setting the ratio for 2.5 V instead leaves a drift of about 1,700 ppm/°C. To get another voltage, amplify or divide the 1.25 V afterwards.
Show Work
Formulas
History of the Bandgap Reference
Bob Widlar, then at National Semiconductor, introduced the first commercial bandgap reference in 1971, the LM113, exploiting the predictable ~2 mV/C negative TC of a forward-biased diode and the matching positive TC of delta-Vbe between two transistors at different current densities. The sum lands near the silicon bandgap energy (~1.2 eV at 0 K). Paul Brokaw's 1974 two-transistor cell became the other classic form, and modern bandgap references such as the LM4040 add curvature correction and on-chip trimming to reach a few ppm/°C. The very lowest-drift references, such as the LM399 and LTZ1000, use a buried Zener instead.
About This Calculator
Enter Vbe, the PTAT current, the emitter area ratio N (typically 8) and the temperature for zero drift. The tool computes ΔVbe = Vt·ln(N), R1 = ΔVbe/I, the ratio R2/R1 that cancels the Vbe slope at that temperature, and the resulting Vref = Vbe + (R2/R1)·ΔVbe, then plots Vref from −40 to 125 °C using a standard Vbe model (η − α = 2).
This is a first-order bandgap. For production ICs, add curvature correction and on-die trim for < 5 ppm/°C performance. Adjustable shunt references such as the TL431 build on a bandgap core and are trimmed to 0.5–2% initial accuracy depending on grade. Everything runs client-side.
Frequently Asked Questions
Why is a bandgap reference about 1.25 V?
Vbe falls about 2 mV per °C and ΔVbe rises with temperature. Scaling ΔVbe until the two slopes cancel always lands near the silicon bandgap voltage extrapolated to absolute zero, 1.205 V, plus a small term of about 2kT/q: 1.257 V at 27 °C.
What is PTAT?
Proportional To Absolute Temperature. Two transistors run at different current densities differ in Vbe by ΔVbe = (kT/q)·ln(N), which grows in proportion to kelvin temperature: 53.8 mV at 27 °C for N = 8, rising 0.18 mV per °C.
Why doesn't Vbe change the output voltage?
A different Vbe changes its slope, so the resistor ratio needed to cancel it changes too, and the sum comes back to the same voltage. That is why the circuit is named after the bandgap, not after the transistor.
Why is the output curved instead of flat?
Vbe is not perfectly linear in temperature; it carries a T·ln(T) term. A first-order design is flat only at its design temperature and bows by about 2.5 mV over −40 to 125 °C, roughly 12 ppm/°C. Curvature correction and trimming bring good parts below 5 ppm/°C.
How good can a voltage reference get?
First-order bandgaps are typically 10 to 50 ppm/°C, trimmed and curvature-corrected bandgaps a few ppm/°C. For lower drift, buried-Zener references such as the LTZ1000 reach about 0.05 ppm/°C.
How do I use the Bandgap Reference Calculator?
Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Does it cost anything or need an account?
No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.
Is anything I type uploaded?
No. The tool works entirely on your device, so the values you enter never leave your browser.
Common Use Cases
Microcontroller References
Many microcontrollers include a bandgap of about 1.1 to 1.2 V, used as the ADC reference or to measure their own supply voltage.
LDO Regulators
The regulator's error amplifier compares a fraction of the output with the bandgap: Vout = Vref × (1 + R2/R1).
Switching Regulator Setpoint
A buck converter's feedback pin is held at its internal reference, so the divider on that pin sets the output voltage.
Shunt References
Adjustable shunt references such as the TL431 build on a bandgap core with a 2.495 V internal reference.
Last updated: