How to use this tool
- Enter supply voltage, led forward voltage, target current.
- Select Calculate to view the result.
- Check the method and assumptions below before using the result.
Input reference and sample values
Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.
| Input | Format and units | Sample |
|---|---|---|
| Supply voltage | Numeric value. Unit: V. Must be greater than zero. | 5 |
| LED forward voltage | Numeric value. Unit: V. Zero or positive. | 2 |
| Target current | Numeric value. Unit: mA. Must be greater than zero. | 20 |
Result for these sample inputs
150 Ω
Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.
The method, explained
Resistance = (supply − forward voltage)/(target mA/1000).
Using supply voltage = 5 V, led forward voltage = 2 V, target current = 20 mA, the result is 150 Ω. Change these example inputs to match your task; use the method above to check each step.
What to keep in mind
Confirm LED current limits and resistor power rating from component datasheets. Ideal-component calculation for study and estimation. It does not select safe wiring, protective devices or component ratings for an installation.
Methodology maintained by ClarityKit. How these tools are built and checked.