How the LED resistor calculation works
An LED is a diode: once it starts conducting, its own voltage stays close to a fixed value (its forward voltage, Vf) no matter how much current flows, so it can never be wired straight across a supply — it would draw more and more current until it burned out. A series resistor fixes this by absorbing the leftover voltage and setting the current to a safe, known value using Ohm's law.
The formula
For a supply voltage Vs driving n identical LEDs wired in series, each with forward voltage Vf and a target forward current If, the required series resistor is:
R = (Vs − n × Vf) ÷ If
The resistor has to drop whatever voltage is left over after the LEDs (Vs − n×Vf), and dividing that leftover voltage by the desired current gives the resistance needed to hold the current at If. The power the resistor must dissipate as heat is P = (Vs − n × Vf) × If, the same as I²R.
Choosing a power rating
Resistors are rated for how much heat they can safely dissipate, and running one near its limit shortens its life and can drift its resistance over time. A common rule of thumb is to pick a standard wattage rating at least twice the calculated dissipation, then choose a standard resistor value at or above the exact calculated resistance — rounding up keeps the current at or under the target instead of over it.
Interpreting the results
The first two result cards show the exact resistor value and the power it must dissipate. The last two round those numbers to parts you can actually buy: the closest standard E12-series resistor value and a standard resistor wattage rating (1/8W, 1/4W, 1/2W, 1W, or 2W).