Home / Calculators & references
LED Resistor Calculator
Calculate ideal series LED resistance and estimated resistor dissipation from DC supply voltage, forward voltage and target current in milliamps.
Calculate a series LED resistor
For an ideal DC source and one LED with a known forward voltage, subtract the LED forward voltage from the supply voltage and divide by target current in amperes. The resistor dissipates the remaining voltage times current.
Example
For a 5 V supply, a 2 V forward voltage and a target of 10 mA, the calculated resistance is 300 Ω and dissipation is 0.03 W. This is a mathematical example, not a recommendation for a particular LED.
Input assumptions
Use the LED manufacturer's forward voltage and current specifications. Forward voltage varies with current and temperature. Supply tolerance and resistor tolerance also affect the resulting current. The result is invalid when the supply is at or below the assumed forward voltage or when target current is zero.
Component ratings
The calculated dissipation is not a recommended resistor power rating. Consider operating temperature, derating, supply variation and component specifications. High-power LEDs commonly require a dedicated constant-current driver. This tool is for simple low-voltage educational circuits only, not mains-connected LEDs.
Related tools
Ohm’s law · Resistor color code · Voltage divider.
Check the units and model assumptions
The current field is in milliamperes, so the equation in the displayed units is R = 1,000 × (Vs − Vf) / I_mA. For an illustrative 3.3 V source, a 2 V forward drop and 5 mA target, the ideal calculated resistance is 260 Ω and resistor dissipation is 0.0065 W. This is an example of the equation, not a recommendation for a specific LED or installation.
The LED is nonlinear and its forward voltage is an approximation at a specified operating current. The ideal result is not a substitute for checking component datasheets, tolerances, temperature behavior and actual ratings. This page does not calculate a constant-current driver, mains circuit or parallel LED array. For the linear resistor relationship, see Ohm’s law, and for marked resistance values use the resistor color code calculator.
Reference: OpenStax, electrical energy and power.
The resistor voltage is not the supply voltage
In the ideal series model, part of the potential difference is associated with the LED and the remainder with the resistor. The resistor calculation uses the difference between the specified DC supply voltage and the specified forward voltage at the target current. If the difference is not positive, the model cannot produce a positive resistance for the entered target current. The LED's forward voltage is not an independently constant quantity over its entire operating range.
A hypothetical arithmetic example with a specified 3 V supply, 2 V forward voltage and 5 mA target current gives a resistor voltage of 1 V. Dividing 1 V by 0.005 A gives 200 Ω. The corresponding mathematical resistor power is 0.005 W. This is not a recommended resistor or operating point for an actual LED.
Compare hypothetical voltage differences and target currents
The table is a mathematical comparison using only the voltage across an ideal series resistance and the stated current. It does not specify an LED type, component selection, power rating or safe supply configuration.
| Resistor voltage difference | 1 mA | 2 mA | 5 mA | 10 mA |
|---|---|---|---|---|
| 0.1 V | 100 Ω | 50 Ω | 20 Ω | 10 Ω |
| 0.2 V | 200 Ω | 100 Ω | 40 Ω | 20 Ω |
| 0.3 V | 300 Ω | 150 Ω | 60 Ω | 30 Ω |
| 0.5 V | 500 Ω | 250 Ω | 100 Ω | 50 Ω |
| 0.75 V | 750 Ω | 375 Ω | 150 Ω | 75 Ω |
| 1 V | 1000 Ω | 500 Ω | 200 Ω | 100 Ω |
| 1.5 V | 1500 Ω | 750 Ω | 300 Ω | 150 Ω |
| 2 V | 2000 Ω | 1000 Ω | 400 Ω | 200 Ω |
| 2.5 V | 2500 Ω | 1250 Ω | 500 Ω | 250 Ω |
| 3 V | 3000 Ω | 1500 Ω | 600 Ω | 300 Ω |
At a fixed target current, increasing the voltage difference increases the ideal calculated resistance. At a fixed voltage difference, doubling the target current halves the ideal resistance. These relationships only describe the supplied mathematical inputs.
Current units and resistor dissipation
The target-current field uses milliamperes. In Ohm's law the equivalent current in amperes is milliamperes divided by 1,000. For an illustrative voltage difference of 0.5 V and 2 mA, the ideal result is 250 Ω and the mathematical resistor dissipation is 0.001 W.
The displayed dissipation is electrical power under the assumed operating point, not a recommended component wattage. The actual device's rated power, temperature behavior, tolerances and applicable design constraints require independent evaluation. The tool does not select a commercially available resistor value or verify safe component operation.
Why a nominal forward voltage can be misleading
A diode has a nonlinear current-voltage characteristic. Its forward voltage can vary with current, temperature and manufacturing tolerance. A single forward-voltage input is an approximation, not a full diode model. Supply variations and resistor tolerances can also change current from the intended value. Use manufacturer data and an appropriate design method rather than treating the example values on this page as device specifications.
This tool does not model constant-current drivers, multiple parallel branches, transient behavior or mains-powered circuits. The Ohm’s law calculator covers ideal linear resistance separately. For power relationships see the formula library, and for reading resistance markings see the resistor color code calculator.
Input validation
The model requires a positive difference between supply and forward voltages and a positive target current. Empty inputs or nonfinite results are rejected. The result is an educational mathematical estimate. Actual equipment operation requires verified component specifications and qualified review where applicable.
Frequently asked questions
Can I connect an LED directly to mains voltage using this calculation?
No. This calculator is limited to simple low-voltage DC educational circuits.