# LM317 Current Calculator

In our article Using the LM317 with LED Lighting we looked at how the LM317T (and high current equivalent LM338T) can be used to supply a fixed current to a load – in the case of the article to LED bulbs.

The output current from the circuit shown above is set using a single resistor according to the following equation:

 Resistor Required (Ohms) = 1.25 (Volts) / nominal LED current (Amps)

## REUK LM317/LM338 Current Calculator

Below is our automated current calculator for the LM317 and LM338 linear voltage regulators. Simply enter your desired output current (measured in milliamps), and the value of the required resistor and its power rating will be displayed:

Target Output Current milliamps
Resistor Value: Ohms with a power rating greater than: Watts

Do not forget that the maximum continuous current which can be managed by the LM317T is 1.5 Amps, and that is with a decent heatsink fitted (click here to see our article LM317T Heatsinking for more details).

The LM338T is rated at 5 Amps of continuous current with 50ms bursts of up to 7 Amps. However with a large heatsink and/or cooling fan it can manage continuous currents of 8 Amps+.

### LM317/LM338 Voltage Calculator

If you would like to use the LM317T or LM338T to output a fixed voltage rather than current, click here to visit our LM317 Voltage Calculator. We also have a guide to making an Adjustable Voltage LM317 Power Supply here.