ZERO Notificatons

NO Feedback yet!!

okay

xparo
X.P.A.R.O



Electronics Calculators

Ohm's law and power, voltage dividers, resistor colour codes and capacitor codes. Everything is calculated locally in your browser.

Fill in any two of voltage, current and resistance, then press Calculate. The third value and the power are filled in for you.

What each calculator does

These four calculators cover the arithmetic that comes up again and again when you wire a robot: sizing a resistor, dropping a voltage for an ADC, identifying a part from the parts bin, and checking how much power something will burn.

The formulas behind them

Ohm's law V = I × R I = V ÷ R R = V ÷ I Power P = V × I = I² × R = V² ÷ R Voltage divider Vout = Vin × R2 ÷ (R1 + R2) Solving for R2 R2 = R1 × Vout ÷ (Vin − Vout) Divider current I = Vin ÷ (R1 + R2) Capacitor code value (pF) = first two digits × 10^(third digit)

Three quick examples

A current-limiting resistor for an LED

A red LED drops about 2.0 V and you want 10 mA from a 5 V pin. The resistor sees 5 − 2 = 3 V, so R = 3 V ÷ 0.010 A = 300 Ω. The nearest common value is 330 Ω, which gives about 9 mA. It dissipates 3 V × 0.009 A ≈ 27 mW, so any 1/4 W resistor is fine.

Reading a 3S LiPo on a 3.3 V ADC

A full 3S pack is 12.6 V. With R1 = 27 kΩ and R2 = 10 kΩ, Vout = 12.6 × 10 ÷ 37 = 3.41 V, which is too high for a 3.3 V pin. Swap to R1 = 33 kΩ: Vout = 12.6 × 10 ÷ 43 = 2.93 V, leaving headroom. The divider draws 12.6 ÷ 43,000 ≈ 0.29 mA, small enough to leave connected.

Identifying parts from the bin

A resistor marked yellow, violet, red, gold is 47 × 100 = 4.7 kΩ at ±5 %. A ceramic capacitor marked 104 is 10 × 104 pF = 100 nF, the classic decoupling capacitor, and 2A222J on a film capacitor means 2.2 nF, ±5 %, rated 100 V.

Practical tips

Frequently asked questions

What is Ohm's law?

Voltage equals current times resistance (V = I × R). Knowing any two of the three gives you the third, and power is P = V × I. Enter any two values and the calculator fills in the rest.

How do I choose resistors for a voltage divider?

Pick the ratio from Vout = Vin × R2 / (R1 + R2), then choose values high enough not to waste current but low enough for your ADC input. Between 10 kΩ and 100 kΩ total works for most microcontroller ADCs.

How do I read a 5-band resistor?

The first three bands are digits, the fourth is the multiplier and the fifth is the tolerance. Brown-black-black-red-brown is 100 × 100 = 10 kΩ at 1 percent.

What does 104 on a capacitor mean?

The first two digits are the value and the third is the number of zeros, in picofarads: 10 followed by 4 zeros is 100,000 pF, which is 100 nF or 0.1 µF.

Guides for this tool

In-depth articles that explain the ideas behind the Electronics Calculators, with worked examples.

Electronics Calculators has its own project page with the story behind the tool, a gallery and every guide in one place.

Visit the project page →

More free tools

Every tool runs in your browser. Nothing you enter is uploaded.