EE Basics · step 2 · circuit quantities
Charge, Current, Voltage, Power and Energy
Every circuit quantity is a simplification of Maxwell's equations. This page derives each one from the field picture: what current really is, why voltage exists, where KCL and KVL come from and when they fail, why a wire has resistance, and how energy actually travels from a source to a load.
Builds onMaxwell's equationsLeads toResistors · Capacitors · Inductors
1Charge
Charge is the property that makes a particle feel and create electric fields. It comes in integer multiples of the elementary charge and is conserved: no process creates or destroys net charge.
One coulomb is about \(6.24\times10^{18}\) electrons. In metals the mobile carriers are electrons (charge \(-e\)); in semiconductors both electrons and holes carry current; in electrolytes and batteries, ions do.
Gauss's law, \(\nabla\cdot\mathbf{E}=\rho/\varepsilon_0\), says charge is the source of the electric field. Every circuit quantity below is a statement about how charge moves and what fields that motion creates.
2Current and current density
Current is the rate at which charge crosses a surface:
Current is a total through a whole cross-section. The local quantity is the current density \(\mathbf{J}\), in A/m², with \(I = \int_S \mathbf{J}\cdot d\mathbf{A}\).
- Suppose there are \(n\) carriers per cubic metre, each with charge \(q\), all drifting with average velocity \(\mathbf{v}_d\).
- In time \(dt\), the carriers that cross an area \(A\) normal to \(\mathbf{v}_d\) are those within a slab of thickness \(v_d\,dt\): a volume \(A\,v_d\,dt\).
- The charge crossing is \(dQ = n q A v_d\,dt\), so \(I = dQ/dt = nqAv_d\) and $$\mathbf{J} = n q\, \mathbf{v}_d$$
Copper has about one free electron per atom: \(n \approx 8.5\times10^{28}\ \text{m}^{-3}\). For 1 A in a 1 mm² wire:
$$v_d = \frac{I}{nqA} = \frac{1}{(8.5\times10^{28})(1.6\times10^{-19})(10^{-6})} \approx 7.4\times10^{-5}\ \text{m/s}$$That is 0.07 mm/s. The electrons crawl. A light turns on instantly because the field that pushes them travels along the wire at a large fraction of the speed of light, and all the electrons in the loop start moving almost together.
3Continuity and Kirchhoff's current law
Conservation of charge is built into Maxwell's equations. Take the divergence of the Ampère–Maxwell law.
- Start from \(\nabla\times\mathbf{B} = \mu_0\mathbf{J} + \mu_0\varepsilon_0\,\partial\mathbf{E}/\partial t\).
- The divergence of any curl is zero: \(\nabla\cdot(\nabla\times\mathbf{B}) = 0\). So $$0 = \mu_0\,\nabla\cdot\mathbf{J} + \mu_0\varepsilon_0\,\frac{\partial}{\partial t}(\nabla\cdot\mathbf{E})$$
- Substitute Gauss's law \(\nabla\cdot\mathbf{E} = \rho/\varepsilon_0\): $$\nabla\cdot\mathbf{J} + \frac{\partial \rho}{\partial t} = 0$$
- Integrate over a volume and use the divergence theorem: the net current out of any closed surface equals the rate at which the enclosed charge decreases, $$\oint_S \mathbf{J}\cdot d\mathbf{A} = -\frac{dQ_\text{enc}}{dt}$$
KCL is this law applied to a circuit node, a junction of wires that cannot store meaningful charge. If \(dQ_\text{enc}/dt = 0\), the currents leaving sum to zero:
Without the displacement-current term \(\mu_0\varepsilon_0\,\partial\mathbf{E}/\partial t\), step 2 would give \(\nabla\cdot\mathbf{J}=0\) always, and a capacitor could never charge. Maxwell added that term precisely so charge conservation holds. Current "through" a capacitor is conduction current on the wires and displacement current between the plates.
KCL fails wherever charge accumulates: on a capacitor plate, or on the stray capacitance of a node at high frequency. You restore it by drawing that capacitance explicitly. Then the node itself stores nothing and KCL holds again.
4Voltage and electric potential
Voltage is work per unit charge. Moving a charge \(q\) from a to b against the field takes work \(W = -q\int_a^b \mathbf{E}\cdot d\mathbf{l}\). Define
This depends only on the end points, not on the path between them, when the field is conservative. That is exactly the condition in Faraday's law.
- Faraday's law: \(\nabla\times\mathbf{E} = -\partial\mathbf{B}/\partial t\).
- In electrostatics, or whenever the magnetic flux through the region is not changing, \(\nabla\times\mathbf{E} = 0\).
- A curl-free field can always be written as the gradient of a scalar: \(\mathbf{E} = -\nabla\phi\). (Stokes' theorem gives \(\oint \mathbf{E}\cdot d\mathbf{l} = 0\) around every loop, so the line integral between two points cannot depend on the path.)
- Then \(\int_a^b \mathbf{E}\cdot d\mathbf{l} = -\int_a^b \nabla\phi\cdot d\mathbf{l} = \phi(a)-\phi(b)\). Voltage is a difference in this potential \(\phi\).
Combining \(\mathbf{E}=-\nabla\phi\) with Gauss's law gives Poisson's equation, which you will meet again in the diode and MOSFET derivations:
Only differences of potential are physical. "Ground" is just the node you choose to call 0 V.
5Kirchhoff's voltage law, and when it fails
If \(\oint\mathbf{E}\cdot d\mathbf{l}=0\), then around any closed loop of components the voltage differences sum to zero:
In general, Faraday's law in integral form says
A real loop always encloses some magnetic flux produced by its own current. Circuit theory keeps KVL true by collecting that flux into a lumped element, the inductor, with \(\Phi = LI\) and voltage \(L\,dI/dt\). This is why every loop on a PCB has inductance, and why layout changes circuit behaviour.
KCL and KVL hold when the circuit is small compared with the wavelength, \(\ell \ll \lambda = v/f\), so that fields everywhere change together. At 100 MHz, \(\lambda\) is 3 m in air and roughly 1.5 m on FR-4. A 10 cm trace is \(\lambda/15\): lumped analysis is starting to strain. Beyond about \(\lambda/10\), treat the trace as a transmission line.
6Ohm's law from electron motion
Why does a field produce a steady drift rather than accelerating electrons forever? Because they keep colliding with lattice vibrations and defects. The Drude model captures this with one parameter, the mean time between collisions \(\tau\).
- Newton's law for an average carrier, with collisions acting like friction: $$m\frac{d\mathbf{v}}{dt} = q\mathbf{E} - \frac{m\mathbf{v}}{\tau}$$
- In steady state \(d\mathbf{v}/dt = 0\), so \(\mathbf{v}_d = \dfrac{q\tau}{m}\mathbf{E} = \mu\mathbf{E}\), where \(\mu = q\tau/m\) is the mobility.
- Substitute into \(\mathbf{J} = nq\mathbf{v}_d\): $$\mathbf{J} = \frac{nq^2\tau}{m}\,\mathbf{E} = \sigma\mathbf{E}, \qquad \sigma = \frac{nq^2\tau}{m} = nq\mu$$
- For a uniform bar of length \(L\) and area \(A\): \(E = V/L\) and \(I = JA\). So \(I = \sigma A V/L\), which is $$V = I R, \qquad R = \frac{L}{\sigma A} = \frac{\rho L}{A}$$
\(\sigma_\text{Cu} = 5.96\times10^{7}\ \text{S/m}\). Solving for \(\tau\):
$$\tau = \frac{\sigma m}{nq^2} = \frac{(5.96\times10^7)(9.11\times10^{-31})}{(8.5\times10^{28})(1.6\times10^{-19})^2} \approx 2.5\times10^{-14}\ \text{s}$$Electrons collide every 25 femtoseconds. The response time of conduction is therefore far below anything a circuit cares about, which is why \(\mathbf{J} = \sigma\mathbf{E}\) holds instantly up to infrared frequencies.
Ohm's law is a constitutive relation, a property of the material, not a fundamental law. It fails in diodes, transistors, gas discharges and superconductors. The resistor page continues from here: temperature dependence, noise, and skin effect.
7Power
Power is the rate at which energy is transferred.
- Moving charge \(dQ\) through a potential difference \(V\) transfers energy \(dW = V\,dQ\).
- Divide by \(dt\): \(P = \dfrac{dW}{dt} = V\dfrac{dQ}{dt}\).
- So $$P = V I \qquad [\text{W} = \text{J/s} = \text{V}\cdot\text{A}]$$
Sign convention. Under the passive sign convention, current enters the + terminal of a component. Then \(P = VI > 0\) means the component absorbs power (a resistor, or a battery being charged), and \(P<0\) means it delivers power (a source).
For a resistor, substitute Ohm's law:
The field version is the local power density converted to heat, \(p = \mathbf{J}\cdot\mathbf{E} = \sigma E^2\) in W/m³. Integrating it over a uniform bar gives \(\sigma (V/L)^2\cdot AL = V^2/R\), the same result.
For a fixed power delivered, \(I = P/V\), so conduction loss in the wiring is \((P/V)^2 R_\text{wire}\). Doubling the bus voltage cuts wiring loss by a factor of four. This is the whole argument for high-voltage transmission lines and for 48 V instead of 12 V buses in vehicles, robots and servers.
8Where energy really flows: the Poynting vector
Intuition says energy flows through the wire with the electrons. Maxwell's equations say otherwise: it flows through the space around the wire, in the fields, and enters the load from outside.
- Use the vector identity \(\nabla\cdot(\mathbf{E}\times\mathbf{H}) = \mathbf{H}\cdot(\nabla\times\mathbf{E}) - \mathbf{E}\cdot(\nabla\times\mathbf{H})\).
- Substitute Faraday \(\nabla\times\mathbf{E} = -\partial\mathbf{B}/\partial t\) and Ampère–Maxwell \(\nabla\times\mathbf{H} = \mathbf{J} + \partial\mathbf{D}/\partial t\), with \(\mathbf{B}=\mu\mathbf{H}\), \(\mathbf{D}=\varepsilon\mathbf{E}\): $$\nabla\cdot(\mathbf{E}\times\mathbf{H}) = -\mathbf{H}\cdot\frac{\partial\mathbf{B}}{\partial t} - \mathbf{E}\cdot\frac{\partial\mathbf{D}}{\partial t} - \mathbf{J}\cdot\mathbf{E}$$
- Note \(\mathbf{H}\cdot\partial\mathbf{B}/\partial t = \partial(\tfrac12\mu H^2)/\partial t\) and \(\mathbf{E}\cdot\partial\mathbf{D}/\partial t = \partial(\tfrac12\varepsilon E^2)/\partial t\). Define \(\mathbf{S} = \mathbf{E}\times\mathbf{H}\) and \(u = \tfrac12\varepsilon E^2 + \tfrac12\mu H^2\): $$\frac{\partial u}{\partial t} + \nabla\cdot\mathbf{S} = -\mathbf{J}\cdot\mathbf{E}$$
- Read it as an energy budget: stored field energy in a region grows by the power flowing in (\(-\oint\mathbf{S}\cdot d\mathbf{A}\)) minus the power converted to heat or work (\(\int \mathbf{J}\cdot\mathbf{E}\,dV\)).
- At the surface of a wire of radius \(a\) and length \(\ell\) carrying current \(I\) with voltage \(V\) across it: \(E = V/\ell\) (axial) and, from Ampère's law, \(H = I/(2\pi a)\) (circumferential).
- They are perpendicular, so \(|\mathbf{S}| = EH\), directed radially inward.
- Total power entering through the side surface \(2\pi a\ell\): $$P = \frac{V}{\ell}\cdot\frac{I}{2\pi a}\cdot 2\pi a\ell = VI$$
The answer matches circuit theory exactly, but the picture is different: wires guide the energy; the fields carry it. This is why the geometry between conductors (spacing, return path, dielectric) sets impedance and radiation, and why a signal needs a nearby return path.
9Energy stored in fields
Poynting's theorem identified the stored energy density
Capacitors are devices that concentrate the first term, inductors the second. Integrating these densities over each device gives the familiar results, derived on their own pages:
Energy is power integrated over time, \(W = \int P\,dt\). Batteries are rated in watt-hours: a 3.7 V, 3 Ah cell stores \(3.7\times3 = 11.1\) Wh \(= 11.1\times3600 \approx 40\) kJ. A 10 µF capacitor at 50 V stores only \(\tfrac12(10^{-5})(50^2) = 12.5\) mJ: capacitors deliver energy quickly but hold very little of it.
10AC quantities: RMS, phasors and real power
RMS value
The RMS value of a waveform is the DC value that would dissipate the same average power in a resistor. Since \(P = v^2/R\), it is the root of the mean of the square.
- \(V_\text{rms}^2 = \dfrac1T\displaystyle\int_0^T V_p^2\sin^2(\omega t)\,dt\).
- Use \(\sin^2 x = \tfrac12(1-\cos 2x)\). The cosine averages to zero over a period, leaving \(V_p^2/2\).
- So \(V_\text{rms} = V_p/\sqrt2 \approx 0.707\,V_p\). US mains at 120 V RMS peaks at 170 V.
For a square wave of ±\(V_p\), \(V_\text{rms} = V_p\). For a triangle wave, \(V_p/\sqrt3\). The factor depends on shape, which is why cheap meters that assume a sine misread distorted waveforms.
Phasors
In a linear circuit driven at one frequency, every voltage and current is a sinusoid at that frequency, differing only in amplitude and phase. Write \(v(t) = \mathrm{Re}\{\mathbf{V}e^{j\omega t}\}\) with complex amplitude \(\mathbf{V} = V_p e^{j\theta}\). Differentiation becomes multiplication by \(j\omega\), so the component laws become algebraic:
The ratio \(Z = \mathbf{V}/\mathbf{I}\) is the impedance. KCL and KVL hold for phasors because they are linear.
Average power with a phase shift
- Let \(v = V_p\sin\omega t\) and \(i = I_p\sin(\omega t-\varphi)\).
- Instantaneous power, using \(\sin A\sin B = \tfrac12[\cos(A-B)-\cos(A+B)]\): $$p(t) = \frac{V_pI_p}{2}\left[\cos\varphi - \cos(2\omega t-\varphi)\right]$$
- The second term averages to zero, so $$P = \frac{V_pI_p}{2}\cos\varphi = V_\text{rms}I_\text{rms}\cos\varphi$$
\(\cos\varphi\) is the power factor. A pure inductor or capacitor has \(\varphi = \pm 90°\): current flows, energy sloshes back and forth twice per cycle, and the average power is zero. In phasor form, complex power is \(\mathbf{S} = \tfrac12\mathbf{V}\mathbf{I}^* = P + jQ\), where \(P\) (watts) is real power and \(Q\) (vars) is reactive power.
11Sources, Thevenin equivalents and maximum power
An ideal voltage source holds its voltage regardless of current; an ideal current source holds its current regardless of voltage. Real sources have internal resistance. Thevenin's theorem says any linear two-terminal network behaves, at its terminals, like one voltage source \(V_\text{th}\) in series with one impedance \(Z_\text{th}\). The Norton form is a current source \(I_N = V_\text{th}/Z_\text{th}\) in parallel with \(Z_\text{th}\).
To find them: \(V_\text{th}\) is the open-circuit voltage, \(I_N\) is the short-circuit current, and \(Z_\text{th} = V_\text{oc}/I_\text{sc}\) (or the impedance seen with all independent sources zeroed).
- A load \(R_L\) on a source \(V_\text{th}, R_\text{th}\) draws \(I = V_\text{th}/(R_\text{th}+R_L)\) and absorbs $$P_L = I^2R_L = \frac{V_\text{th}^2 R_L}{(R_\text{th}+R_L)^2}$$
- Set \(dP_L/dR_L = 0\): \(V_\text{th}^2\dfrac{(R_\text{th}+R_L)^2 - 2R_L(R_\text{th}+R_L)}{(R_\text{th}+R_L)^4} = 0\), which gives \(R_\text{th}+R_L = 2R_L\).
- So \(R_L = R_\text{th}\), and \(P_\text{max} = V_\text{th}^2/(4R_\text{th})\). For complex impedances the condition is \(Z_L = Z_\text{th}^*\) (conjugate match).
At the matched point exactly half the power is lost in the source, so efficiency is 50%. Power systems do the opposite: they make \(R_L \gg R_\text{th}\) for high efficiency. Matching matters where the source is weak and power is scarce (antennas, sensors, RF) and on transmission lines, where it prevents reflections.
Summary
12Check yourself
Electrons drift at under a millimetre per second. Why does a signal arrive in nanoseconds?
The signal is the electromagnetic field, which propagates along the conductor pair at \(c/\sqrt{\varepsilon_r}\), about half the speed of light on FR-4. Electrons everywhere along the line respond to the arriving field almost at once; none of them needs to travel the length of the wire.
Two voltmeters across the same two points read different values. How?
If changing magnetic flux threads the loop formed by the meter leads, \(\oint\mathbf{E}\cdot d\mathbf{l}\neq0\) and voltage depends on path. Each meter's leads define a different path and enclose different flux. This is real: it is how probe ground leads pick up switching noise, and why you use a short ground spring.
A 12 V, 100 W load moves to a 48 V bus with the same wiring. What happens to wiring loss?
Current falls from 8.3 A to 2.1 A, a factor of four. Loss \(I^2R\) falls by a factor of sixteen.
Why is average power zero in a pure capacitor even though current flows?
Current leads voltage by 90°, so \(\cos\varphi = 0\). The capacitor absorbs energy for a quarter cycle while charging and returns it the next quarter cycle. The instantaneous power oscillates at \(2\omega\) and averages to zero.
Where does KCL fail on a real board, and how do you fix the model?
At any node with significant capacitance to its surroundings, current flows into that capacitance, so the visible branch currents do not sum to zero. Add the parasitic capacitance to the schematic as an explicit element and KCL holds again.