Most electronics and electrical problems, from a class assignment to a hobby project, come down to a short list of calculations. Learn them properly once and you can size a resistor for an LED, check whether a heater will trip a switch, predict how long a capacitor takes to charge, and sanity-check a circuit before you build it. This guide covers the essentials with worked numbers and the mistakes that catch people out.
The examples use simple, round values so you can follow every step with a calculator. Real components have tolerances, so treat results as design targets and always measure the finished circuit. Work on mains-powered equipment only if you are trained, and never test with live mains on a bench without proper protection.
Ohm’s law and the power formulas
Everything starts with Ohm’s law: voltage V equals current I times resistance R. Rearranged, I = V ÷ R and R = V ÷ I. Power P, in watts, is voltage times current, and combining it with Ohm’s law gives two more useful forms.
| To find | Use |
|---|---|
| Voltage | V = I × R |
| Current | I = V ÷ R |
| Resistance | R = V ÷ I |
| Power | P = V × I = I² × R = V² ÷ R |
Example: a 2 kW heater on 230 V. Current is 2000 ÷ 230 ≈ 8.7 A. Resistance is 230 ÷ 8.7 ≈ 26.5 Ω. That current is why a 6 A socket circuit is not suitable for it, and why such appliances use thicker wire and a rated plug.
Resistors in series and parallel
In series, the same current flows through every resistor and the resistances add. In parallel, the same voltage appears across each, and the reciprocals add.
- Series: Rtotal = R1 + R2 + R3
- Parallel: 1 ÷ Rtotal = 1 ÷ R1 + 1 ÷ R2 + 1 ÷ R3
- Two in parallel: Rtotal = (R1 × R2) ÷ (R1 + R2)
Example. Resistors of 100 Ω, 220 Ω and 330 Ω in series give 650 Ω. The same three in parallel give 1 ÷ (0.01 + 0.004545 + 0.003030) = 1 ÷ 0.017576 ≈ 56.9 Ω. Notice that the parallel result is always smaller than the smallest resistor, a quick check that catches arithmetic slips. Two equal resistors in parallel give half the value, so two 1 kΩ resistors make 500 Ω.
Kirchhoff’s laws in plain words
Kirchhoff’s current law says the currents flowing into a junction equal those flowing out. Kirchhoff’s voltage law says the voltages around any closed loop add up to zero, so the voltage rises from the source equal the voltage drops across the loads. These are conservation of charge and of energy. When a network is too complicated for series and parallel reduction, write one equation per loop or node and solve them together.
Quick check. A 12 V battery drives 650 Ω of series resistance. Current is 12 ÷ 650 ≈ 18.5 mA. The drops are 1.85 V, 4.06 V and 6.09 V, which add back to 12 V. If your drops do not add to the supply voltage, there is an error somewhere.
The voltage divider, and why loading matters
Two resistors in series from a supply give a fraction of the voltage at the middle: Vout = Vin × R2 ÷ (R1 + R2), where R2 is the resistor connected to ground.
Example. With 12 V in, R1 = 10 kΩ and R2 = 5 kΩ, the output is 12 × 5 ÷ 15 = 4 V. This works only if nothing draws current from the output. Connect a 10 kΩ load across R2 and the effective lower resistance becomes 5 kΩ in parallel with 10 kΩ, which is 3.33 kΩ. The output falls to 12 × 3.33 ÷ 13.33 = 3.0 V. The rule of thumb is that the load should be at least ten times larger than the lower divider resistor, or use a buffer or regulator instead.
Never use a divider to power something that draws real current. It wastes power, and the voltage sags as the load changes.
Sizing an LED resistor
An LED needs a series resistor to limit current. The resistor drops the difference between the supply and the LED’s forward voltage, and Ohm’s law gives its value: R = (Vsupply − VLED) ÷ I.
Example. A 5 V supply, a red LED with a forward voltage of about 2 V, and a target current of 20 mA: R = (5 − 2) ÷ 0.02 = 150 Ω. The resistor dissipates 3 V × 20 mA = 60 mW, comfortably within a quarter-watt part. Use the nearest standard value at or above the result, since a slightly higher resistance just makes the LED a little dimmer. Many LEDs are bright enough at 5 to 10 mA, which also extends their life.
Check the power rating. A 100 Ω resistor across 5 V dissipates 5² ÷ 100 = 0.25 W, exactly the limit of a quarter-watt resistor. Running at the limit makes it hot, so choose a half-watt part. A common guideline is to keep dissipation below half of the rated power.
Capacitors, time constants and charging
Capacitors in parallel add (C = C1 + C2), and in series combine like resistors in parallel. When a capacitor charges through a resistor, the voltage rises toward the supply following an exponential curve. The time constant τ = R × C, in seconds when R is in ohms and C in farads.
| Time | Charge reached |
|---|---|
| 1 τ | about 63% |
| 2 τ | about 86% |
| 3 τ | about 95% |
| 5 τ | about 99% |
Example. A 10 kΩ resistor and a 100 µF capacitor give τ = 10,000 × 0.0001 = 1 second. After 1 second the capacitor has reached about 63% of the supply voltage, and after 5 seconds it is practically full. The same time constant governs discharge, which falls to about 37% in one τ. This is the heart of simple timers, debouncing circuits and filters.
AC basics: RMS, reactance and resonance
The “230 V” on household mains is the RMS value, the equivalent DC heating voltage. The peak is higher: Vpeak = VRMS × √2, so about 325 V. Components must be rated for the peak, not the RMS figure.
In AC circuits, capacitors and inductors resist current by reactance, measured in ohms and depending on frequency.
- Capacitive reactance: XC = 1 ÷ (2π f C)
- Inductive reactance: XL = 2π f L
- Resonant frequency (LC): f = 1 ÷ (2π √(L C))
Examples. A 1 µF capacitor at 50 Hz has XC = 1 ÷ (2π × 50 × 0.000001) ≈ 3,183 Ω. At 5 kHz the same capacitor drops to about 31.8 Ω, which is why capacitors pass high frequencies and block low ones. A 10 mH inductor with a 1 µF capacitor resonates at 1 ÷ (2π × √(0.01 × 0.000001)) = 1 ÷ (2π × 0.0001) ≈ 1,592 Hz.
Choosing wire and fuses sensibly
Current drives heating in wires, so the cable must be rated for the load with margin. Voltage drop also grows with length: Vdrop = I × Rwire. For low-voltage lines, such as a 12 V LED strip over a long run, even a small resistance can cause a visible drop. A fuse protects the wire, not the load, so it should be rated below the wire’s maximum safe current and above the normal running current. For mains work, follow the electrical code and use certified components.
Common mistakes
- Mixing units: mA with A, kΩ with Ω, µF with F. Convert everything to base units first.
- Forgetting that a parallel result must be smaller than the smallest branch.
- Ignoring resistor power ratings.
- Treating a divider as a power source.
- Using RMS values for component voltage ratings.
- Skipping a measurement. A multimeter check catches wiring errors the maths cannot.
Unit slips cause many of these errors, and our guide to unit conversions and dimensional analysis shows how to catch them before they reach the bench. For quick numbers, the free Free Technology Calculators app is useful, and the Free Technology Calculators guide lists what it covers. Engineering students may also like free calculators for engineering students and our guide to choosing the right statistical test for analysing lab measurements. See more on the products page.
Frequently asked questions
Why is the parallel resistance smaller than each branch?
Each extra path gives the current another route, so the overall opposition to current falls.
Do I need an LED resistor with a constant-current driver?
No. A proper constant-current driver limits the current itself. The resistor is for simple voltage supplies.
How long until a capacitor is fully charged?
In theory never, but after about five time constants it is within 1% of the supply, which is fully charged for practical purposes.
What is the difference between RMS and peak voltage?
RMS is the effective value that delivers the same heating as DC. The peak is the maximum instantaneous value, about 1.414 times the RMS for a sine wave.
Disclaimer: This article is for education. Component values, ratings and safety practice vary; verify designs with datasheets and measurements, and never work on live mains wiring without proper training and equipment.