LED Series Resistor Calculator
Series resistor value and power for an LED from a fixed supply. With the formula, a worked example and typical values.
Try your own numbers
Estimate only. Not engineering or safety advice. Check the result against the applicable standard and the equipment data, and have a competent engineer review it before it is relied on. Terms of use.
Open in the calculator with these values
About this calculator
This page calculates resistor value and resistor dissipation from supply voltage, LED forward voltage and LED current. Change any value or its unit and the result updates. The steps below show the working for the default values, so you can check each line against your own method.
Limits of this calculator
Round R up to the next standard value and use a resistor rated at least twice the dissipation.
Cross-check: 10 reference cases, calculated from textbook formulas coded separately from the engine by the same author, agree with this calculator. This is not an independent review.
Verification status: Engineering reference
Engineering reference. Formula and method documented and tested against separately coded reference calculations. Not yet Verified: the evidence listed on this page is still needed.
What this calculator checks
- The arithmetic of the published formula for the values you entered, in the units shown.
What remains unverified
- That the inputs suit your application. Take ratings, resistances and constants from the manufacturer data sheet or project specification.
Verification register entry
| Calculation author | Rahul Sharma (author) |
|---|---|
| Technical review | No independent technical review has been carried out |
| Individual professional approval | Not recorded |
| Formula reference | not recorded |
| Standard and edition | Not applicable: Textbook circuit identity (Ohm's law, power, series/parallel, AC circuit theory); no governing standard |
| Standard review state | Not applicable |
| Scope-screening note | not recorded |
| Cross-check test cases | 10 reference vectors (tests/reference_vectors.json) |
| Review date | not recorded |
| Next review date | not recorded |
| Status | Engineering reference |
Needed before this calculator can be marked Verified: reviewer name, qualification and review date; exact formula reference; formula source (textbook or standard); next review date.
Formula
Worked example
| Input | Value |
|---|---|
| Supply voltage | 5 V |
| LED forward voltage | 2 V |
| LED current | 20 mA |
- R = (5 − 2) / 0.02 = 150 Ω
- P = If² × R = 0.06 W
Assumptions
- Single LED in series with the resistor
- Forward voltage is the datasheet value at the chosen current
Round R up to the next standard value and use a resistor rated at least twice the dissipation.
Inputs and results
| Input | Unit | Allowed or shown | Note |
|---|---|---|---|
| Supply voltage | V | greater than 0 V | |
| LED forward voltage | V | greater than 0 V | |
| LED current | mA | greater than 0 mA |
| Result | Unit | Allowed or shown | Note |
|---|---|---|---|
| Resistor value | Ω | Shown to 1 decimal place | |
| Resistor dissipation | W | Shown to 4 decimal places |
How it is calculated
Each input is converted to the base unit of its quantity, the formula above is applied in the order shown in the worked example, and each result is shown in the unit you choose. Results are held at full precision and rounded only for display, except where a step selects a standard size, as the worked example shows. A value outside its allowed range is refused with a message instead of giving a result.
How the result changes with supply voltage
| Supply voltage (V) | Resistor value (Ω) | Resistor dissipation (W) |
|---|---|---|
| 2.5 | 25 | 0.01 |
| 5 | 150 | 0.06 |
| 10 | 400 | 0.16 |
| 20 | 900 | 0.36 |
| 50 | 2,400 | 0.96 |
Other inputs are the same as in the worked example above.
Standards and further reading
These are textbook circuit relationships. The component data sheet sets the real limits, tolerances and ratings, and takes priority over the calculated value.
Frequently asked questions
What do I need to enter?
Enter supply voltage, lED forward voltage and lED current. Change the unit of a value with its selector and the result stays the same.
What does this calculator assume?
Single LED in series with the resistor. Forward voltage is the datasheet value at the chosen current.
Which calculators should I use next?
Common next steps are Ohm's Law and Power from Voltage and Current. The related links at the bottom of this page open them.
How accurate are the results?
Every figure comes from the same tested engine as the Elecmetric calculators and is meant for estimating. 10 reference cases, calculated from textbook formulas coded separately from the engine by the same author, agree with this calculator. This is not an independent review. Check design values against the standard and the equipment data you work to.
Formula guides and reference
Longer explanations with worked examples and tables, written for the same topic.
- LED Formulas: Resistor Value and Power: LED formulas for the series resistor from supply voltage, forward voltage and current, resistor power, LEDs in series
- Resistor Formulas: Series, Parallel, Divider: Resistor formulas for series and parallel resistance, the voltage divider and power in a resistor
More Electronics and Instrumentation calculatorsAll engineering calculatorsLED Series Resistor in Elecmetric