Quick LED presets
Required Resistor
350 Ω
Nearest standard: 390 Ω
Power Dissipated
0.14 W
Min. Resistor Rating
1/4 W
100% Private
All calculations run locally in your browser. Nothing is uploaded.
LED Resistor Calculator finds the right current-limiting resistor for an LED online for free. Enter supply voltage, LED voltage, and current to get the resistor value.
Written & reviewed by Helperzy Editorial Team · Updated July 2026
Quick LED presets
Required Resistor
350 Ω
Nearest standard: 390 Ω
Power Dissipated
0.14 W
Min. Resistor Rating
1/4 W
100% Private
All calculations run locally in your browser. Nothing is uploaded.
Type the supply voltage and the LED's forward voltage, or tap a colour preset for a typical value. The forward voltage must be lower than the supply for the LED to light. Check the datasheet if you need an exact figure.
Enter the target LED current in milliamps, with 20 mA a safe default for standard 5 mm LEDs. Staying at or below the LED's rated current protects it. The tool converts this to amps for the calculation.
Read the exact resistor value, the nearest standard E24 size to buy, and the power rating you need. Pick the standard value at or above the calculated one to keep current safely under target. The power figure tells you whether a quarter-watt part is enough.
An LED needs a series resistor to survive, because it behaves like a diode, not a fixed resistance. Wire one straight across a supply and it will gulp far more current than it can handle and burn out in an instant. A resistor in series soaks up the excess voltage and holds the current to a safe level. This calculator works out the right resistor with the formula R = (V_supply − V_LED) ÷ I_LED, taking the guesswork out of a step that trips up almost every beginner in electronics. Each term has a clear meaning. V_supply is the voltage of your power source, such as a 9-volt battery. V_LED is the LED's forward voltage — the voltage it naturally drops when lit, which depends on its colour. I_LED is the current you want to run through it, given in amps in the formula (so 20 milliamps becomes 0.02 A). The tool subtracts the LED's forward voltage from the supply to find the voltage the resistor must drop, then divides that by the target current. Typical forward voltages are about 1.8 V for red, 2.1 V for yellow, 2.2 V for green, and around 3.2 V for blue and white, and 20 mA is a safe current for a standard 5 mm LED. Here is a worked case. Drive a red LED (forward voltage 2 V) from a 9-volt supply at 20 mA. The resistor must drop 9 − 2 = 7 volts, and at 0.02 amps that means R = 7 ÷ 0.02 = 350 ohms. Since 350 is not a standard value, you would pick the nearest standard part at or above it, commonly 360 ohms in the E24 series, which nudges the current a touch below 20 mA for safety. The resistor dissipates about 7 × 0.02 = 0.14 watts, so a common quarter-watt resistor is comfortably rated for the job. With 360 ohms fitted, the actual current settles at 7 ÷ 360 = 19.4 milliamps, close enough that the LED brightness is indistinguishable. Run the same red LED from a 5-volt board instead and you need only (5 − 2) ÷ 0.02 = 150 ohms. This is bread-and-butter work for indicator lights, hobby electronics, Arduino projects, decorative lighting, and panel LEDs. The tool reports the exact value, the nearest standard E24 value you can actually buy, the power the resistor burns, and a suggested minimum power rating with headroom. Choosing the standard value just above the calculated one keeps the LED safely under its maximum current and lengthens its life. Consider three concrete jobs. An Arduino builder adding a status LED to a 5-volt pin uses 150 ohms for a red LED at 20 mA and keeps the pin well inside its current limit. Someone lighting a model railway signal from a 12-volt supply wires three white LEDs in series, adds their forward voltages to 9.6 volts, and needs only (12 − 9.6) ÷ 0.02 = 120 ohms for the whole string, dissipating a tiny 0.048 watts. A panel builder driving an indicator from a 24-volt industrial rail lands on 1,100 ohms and 0.44 watts, which means a half-watt resistor is the minimum sensible choice. A few guardrails keep results sensible. If the LED's forward voltage is equal to or greater than the supply, there is not enough headroom to light it, and the tool says so rather than returning nonsense; it also rejects a current of zero. For several LEDs, calculate per branch — LEDs in series add their forward voltages and share one resistor, while parallel LEDs each need their own resistor to avoid uneven current sharing. The classic beginner error is entering the current in milliamps where the formula expects amps — typing 20 instead of 0.02 gives a resistance a thousand times too small and destroys the LED on first power-up. Also resist the temptation to push current to the absolute datasheet maximum; running a little under keeps the LED cooler and dramatically extends its life. Treat the figures as a design guide, check your LED datasheet for true ratings, and if the circuit connects to mains in any way, follow local electrical code and have a qualified electrician handle that side. Everything runs locally in your browser.
R = (V_supply − V_LED) ÷ I_LED Resistor power = (V_supply − V_LED) × I_LED V_supply = supply voltage in volts V_LED = LED forward voltage in volts (about 1.8 red, 2.1 yellow, 2.2 green, 3.2 blue/white) I_LED = target LED current in amperes (20 mA = 0.02 A, a safe default for 5 mm LEDs) For LEDs in series, add their forward voltages and use the total as V_LED
Input
9 V supply, 2 V red LED, 20 mA
Result
R = 350 Ω (use 360 Ω), ≈ 0.14 W
(9 − 2) ÷ 0.02 = 350 Ω; power = 7 × 0.02 = 0.14 W.
Input
12 V supply, 3.2 V white LED, 20 mA
Result
R = 440 Ω (use 470 Ω)
(12 − 3.2) ÷ 0.02 = 440 Ω, rounded up to a standard value.
Input
5 V board pin, 2 V red LED, 20 mA
Result
R = 150 Ω, 0.06 W
(5 − 2) ÷ 0.02 = 150 Ω, a standard value already, dissipating 3 × 0.02 = 0.06 W.
Use R = (Supply Voltage − LED Forward Voltage) ÷ LED Current. Enter the supply voltage, the LED's forward voltage, and the target current in milliamps. The calculator returns the exact resistor value, the nearest standard value, and the power rating needed.
Ohm's Law Calculator solves voltage, current, resistance, and power online for free. Enter any two values to instantly get the other two.
Wattage Calculator finds power in watts from volts and amps online for free. Multiply voltage by current to get watts and kilowatts instantly.
Electricity Cost Calculator estimates the running cost of any appliance online for free. Enter watts, hours, days, and your rate to see daily and total cost.
Battery Life Calculator estimates how long a battery lasts online for free. Divide battery capacity in mAh by device current draw to get runtime in hours.
Image Resizer changes image dimensions online — set exact pixels, use percentage scaling, or pick from 12 presets (Instagram, Passport, YouTube, etc.). Target specific file sizes like 50KB or 100KB. Batch resize multiple images. 100% free, browser-based.
Image Converter changes images between any format online free — JPG, PNG, WebP, AVIF, PDF, ICO, BMP, HEIC, GIF, SVG. Batch conversion, resize, rotate, flip, AI format recommendation. 100% browser-based, no upload.
Convert JPG to WebP format online free — reduce image file size by 25-35% with identical visual quality. Batch conversion, adjustable quality, lossless mode available. Boost website speed and Core Web Vitals scores. 100% browser-based, no upload needed.
Convert PNG to WebP format online free — reduce file size by 26-34% while preserving full transparency. Batch conversion, lossless and lossy modes, adjustable quality. Boost website performance and Core Web Vitals. 100% browser-based, no upload needed.