A red LED wired straight across a 5 V supply pulls as much current as the supply can give, and burns out. The LED doesn’t limit its own current; a resistor in series does. The calculator takes your supply voltage and the LED’s datasheet figures, picks the standard resistor, and shows the steps, the wattage and what your meter should read. The other tabs apply the same reasoning to a long DC wire run and to a battery that sags under load.
How the numbers are worked out
Ohm’s law is applied to the resistor, not to the LED. An LED holds a roughly fixed voltage across itself, its forward voltage (Vf), so whatever the supply has left over sits across the resistor. That leftover voltage divided by the current you want gives the resistance.
Resistors come only in certain values. The calculator takes the next value up in the E24 (or E12) series, so the real current lands at or just under your target, then works the current out again with that part, because that is the number your LED actually sees.
Datasheets give a typical and a maximum Vf, and the calculator runs both: an LED from the high end of the spread draws less current with the same resistor, which is why two “identical” LEDs can glow differently. When the supply is only a little above the LED’s Vf, that spread swings the current a lot, and the tool says so.
The resistor’s power is its voltage times its current. The tool suggests a part rated for at least twice that, so it runs comfortably cool. That 2× margin is our own rule of thumb, not a manufacturer’s figure.
Voltage drop on a low-voltage wire run
A wire is a resistor too, just a small one. Copper’s resistance grows with length, shrinks with cross-section and rises a little as it warms. On a long low-voltage run the current goes out and back, so both conductors count. That resistance times the load current is the voltage the load never sees; times the current again, it is the heat spread along the wire. The wire-run tab shows those numbers for annealed copper. It is theory only: conductor sizing follows the applicable electrical code and a qualified person, and the tool never recommends a size.
Why a battery’s voltage drops under load
A battery behaves like a perfect voltage source with a small resistance hidden inside it. With nothing connected you read the full voltage. Draw current and part of that voltage is lost across the internal resistance, so the terminals read less, and that part of the power warms the battery instead of reaching the device. A gadget that resets when a motor starts is often just this: the terminal voltage dips below what the device needs. The battery tab uses the fresh-cell internal resistance range from Energizer’s AA alkaline datasheet.
Model assumptions
- DC only, steady state. For AC circuits with inductance and capacitance, use the series RLC circuit analyzer.
- The LED’s forward voltage is fixed at the datasheet value you enter; real LEDs shift it with current and temperature.
- Resistors and wires are constant resistances, and the supply is ideal unless you give it an internal resistance.
- Wire resistance uses annealed copper at 20 °C with its temperature coefficient (NBS Circular 31); other temperatures are a linear correction.
- The battery’s nominal voltage stands in for its open-circuit voltage, and its internal resistance is held constant, though both change with charge, temperature and load.
- The resistor rating margin, the “little headroom” check (current at maximum Vf below three quarters of typical) and the 10% loss checks are our own rules of thumb.
It is a theory model: it doesn’t size conductors, select protection or replace a code or a qualified person.
Things to try
- Set the LED to blue and lower the supply toward 3.3 V. Watch the gap between the typical and maximum-Vf current, then explain it in words.
- With a red LED on 12 V, add LEDs in series one at a time. Predict what happens to the resistor’s power before you look.
- On the wire-run tab, double the length, then double the cross-section. Which change undoes the other?
- On the battery tab, lower the load resistance step by step. At what point does more than a tenth of the power stay inside the battery?
Sources
- LED presets: Kingbright datasheets for the WP7113SRD/D red, WP7113YD yellow, WP7113QBC/D blue and WP7113QWC/D white LEDs.
- Standard resistor values: IEC 60063:2015, as tabulated by Vishay.
- Resistor power ratings: Lumimax datasheet: CF series carbon film fixed resistors.
- Copper resistivity and temperature coefficient: NBS Circular 31, Copper wire tables, 3rd edition (1914).
- AA alkaline voltage and internal resistance: Energizer EN91 datasheet; measuring method: Energizer, Battery internal resistance.