Design precise current sources using the classic LM317 adjustable voltage regulator. Enter desired current or sense resistor value — get accurate resistor values, power dissipation, dropout margin, and thermal estimates.
The LM317 adjustable positive voltage regulator is widely used as a constant current source due to its inherent 1.25V reference between the output and adjustment pins. By connecting a single resistor (RSET) across these pins, the regulator enforces a constant current IOUT = 1.25V / RSET into the load. This simple yet robust topology delivers exceptional line/load regulation and short‑circuit protection.
IOUT = VREF / RSET where VREF = 1.25 V (typical)
For high precision, include IADJ (~50 µA) error: IOUT = (1.25V / RSET) + IADJ. The calculator above uses the standard formula (error < 1% for IOUT >> 50µA).
A designer needs to drive three 1W LEDs in series (forward voltage 3.4V each, total 10.2V) at 350 mA constant current. Using our calculator: Target 350 mA → RSET = 3.57 Ω (nearest 3.6 Ω, 1% metal film). Power dissipation in resistor = 0.437 W → recommend 1W resistor. With VIN = 15 V, load voltage = 10.2 V, dropout = 4.8 V (>3V sufficient). LM317 power = 4.8 V × 0.35 A = 1.68 W → small heatsink (TO‑220 with 15 °C/W heatsink keeps TJ under 110°C). This calculator instantly verifies each parameter, saving prototyping time.
| Desired IOUT (mA) | Calculated RSET (Ω) | Nearest E96 Resistor | Power in R (W) | Recommended Rating |
|---|---|---|---|---|
| 100 | 12.50 | 12.4 Ω | 0.125 | 0.25 W |
| 200 | 6.25 | 6.19 Ω | 0.25 | 0.5 W |
| 350 | 3.571 | 3.57 Ω / 3.6 Ω | 0.438 | 1 W |
| 500 | 2.50 | 2.49 Ω | 0.625 | 1 W |
| 700 | 1.786 | 1.78 Ω | 0.875 | 2 W |
| 1000 | 1.25 | 1.24 Ω | 1.25 | 2 W+ heatsink req. |
For ultra‑precise current sources (< 0.5% error), the adjustment pin current (IADJ ≈ 50 µA) introduces a systematic offset: IOUT = VREF/RSET + IADJ. At 100 mA this adds 0.05% error; at 5 mA it becomes ≈1%. Moreover, VREF has a temperature coefficient of ~0.02%/°C. For designs demanding high stability (e.g., sensor excitation), use low‑TC resistors and consider the LM317L (100mA) or LM338 (5A) variants. The calculator on this page assumes the standard formula ideal for 95% of applications; advanced users can factor IADJ manually.