LED resistor calculator

Series resistance = (supply voltage − LED forward voltage) ÷ current. Current in milliamps is divided by 1,000.

Privacy: runs in your browser

This tool processes your input in this browser. Inputs and results are excluded from analytics. Draft saving is optional and stays on this device; delete saved text with the draft controls. Loading text from a URL is optional and contacts that server; its URL and your IP address are visible to the server. When a button sends your result to another tool, it waits in this tab until that tool opens it, for up to a minute, and is then deleted.

Copy link includes the inputs you choose to share in the address. Anyone with that link can reopen them. Files and generated results are excluded. Password and key tools share settings only.

More options

Answer

…

More results
Compare with other numbers

Save the current answer, then change an input to compare. This clears when you leave.

Rounding and decimal places

Rounding changes how numbers are shown, not how they are calculated.

Automatic precision rounds answers for reading: up to six significant digits, with whole numbers kept in full. Thousands separators such as 1,000 are accepted; use a dot for decimals.

More
Quick calculator

Use +, −, ×, ÷, parentheses and %. This doesn’t change the tool above.

Keyboard shortcuts

Sharing and starting over

A copied link includes what you entered and your settings, so anyone with it can see them. Leave private text out. Files and results are not included; random draws are made again.

Start over puts the tool back to its starting values and closes any open file or device. Drafts you saved stay on this device until you delete them.

How it works

This is an ideal single-LED circuit calculation. Select a real resistor and suitable power rating using component specifications and tolerances; the result is not a standard resistor recommendation.

Next: Basic calculator

Worked example

Running an LED with a 2 V forward voltage at 20 mA from a 5 V supply takes a 150-ohm series resistor, which dissipates 0.06 W.

How the calculated resistance changes with supply voltage

Other inputs keep their starting values: LED forward voltage (V): 2; Target LED current (mA): 20. Examples only, not recommendations.

Supply voltage (V)Calculated resistance (ohms)
2.525
5150
10400
Cite this page

ToolOctopus. “LED resistor calculator.” Updated . https://tooloctopus.com/led-resistor-calculator.

Add an access date if your instructions require one.

Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.

Find a tool

Type a task, a unit pair, a sum or a time zone. ↓ to choose, Enter to open.