To use LED calculator enter three values. Blank fields will be calculated automatically. If you fill in all four fields, the last calculated value will be recalculated. Dissipated power fields are read only.
To use LEDs you have to know the color (voltage drop) and maximum current. It is important to get those right since circuits with LEDs are very common. They are a way we have of obtaining information about what is happening in the circuit. For example, a green LED can be used to indicate that something is ON or a red one to indicate if something has broken. You can also use them for artistic reasons or simply to illuminate.
A circuit with LEDs has three elements: the input voltage (it can be a node of your circuit, a source, a battery...), a resistor, which serves to limit the current, and the LED. The key is to understand that the input voltage has to be shared between the resistor and the LED. On one hand, the LED has a fixed voltage (approximately fixed, since it actually depends a bit on the current) that depends on its color. For example, a red LED has a voltage drop of about 1.8V, while a blue one about 3.5V. What remains of voltage has to fall into the resistance. Since the voltage across the LED is fixed, and so is the resistor, you could ideally put any resistor. However, in real circuits, low resistances will cause a lot of current to flow through the circuit and the LED could burn out. So that you have a number in your head, think that a 'reasonable' brightness will be achieved with 10 or 20 mA. The equation you need is:
The voltage of the LED is something known that you will find in the datasheet. Surely it will also indicate how much current is needed for a certain brightness. The voltage is something from your circuit. You would only have to solve for the 'R' and calculate the necessary value.
You have an Arduino that outputs a 5V signal to actuate a fan switch and you want a green LED to light up when that happens. How do you do it?
LED Circuit LTSpice Simulation
Download this LTSpice simulation to analyze the current and voltage drop of your LED circuit. You can try with different LED models or modify the example to create your own circuit.