Skip to content
SmartHomeDB
US

Electronics calculators

LED resistor calculator

Calculate the series resistor for one or more LEDs, with the nearest E12 and E24 values and the power dissipation.

Frequently asked questions

Which series resistor does an LED need on 3.3 V?
For a red LED (2 V) at 5 mA about 260 Ω; the next E12 value above is 270 Ω. A series resistor is needed on 3.3 V just like on 5 V.
Why choose the next higher standard value?
A slightly larger resistor keeps the current below the target and protects LED and output. The LED is hardly any dimmer.

Embed on your site

You can embed this tool on your website or blog for free. It runs in your visitors' browsers, sets no cookies and stores nothing.

With a script (recommended)

The tool appears in an isolated area (shadow DOM), so your site's styles do not interfere. Optional: data-theme="light" or "dark" and data-lang="de" or "en".

<div data-shdb-tool="led-resistor" data-lang="en"></div>
<script async src="https://shdb.io/embed/v1/loader.js"></script>

With an iframe

For sites that do not allow third-party scripts. The height adjusts through a message (postMessage); the example includes the line needed for it.

<iframe id="shdb-led-resistor" src="https://shdb.io/embed/led-resistor/?lang=en" title="LED resistor calculator" width="100%" height="480" style="border:0;max-width:100%" loading="lazy"></iframe>
<script>window.addEventListener("message",function(e){if(e.origin==="https://shdb.io"&&e.data&&e.data.shdbTool==="led-resistor"){document.getElementById("shdb-led-resistor").style.height=e.data.height+"px"}});</script>

https://shdb.io/embed/led-resistor/?lang=en

Preview

Loads the script from shdb.io and shows the tool as it will appear on your site, with the fixed link below it.

The link "Tool by shdb.io" always appears below the embedded tool. It is built in and cannot be switched off.
Terms in short: the link must stay visible and legible (do not hide, shrink or remove it). The script must not be modified. Use is without warranty; we may block an embed in case of abuse. See the embedding guide for the full text.