To calculate resistor needed type in values for:
Power Supply Voltage, LED forward Voltage, and LED current
Then hit calculate button.
Power supply voltage
Led Voltage
LED Current in mA

Resistor Value:
Resistor Wattage:
Resistor rating Minimum: