An LED has a voltage line drop specified at the intended operating current. Ohm's law and Kirchhoff's circuit laws are used to calculate the appropriate resistor value by subtracting the LED voltage drop from the supply voltage line and dividing it by the desired operating current.