Continuity equation overview
The continuity equation expresses charge conservation in mathematical form. It connects how charge density changes over time to how current density flows through space. In an Electromagnetism II course, this equation is essential because it acts as a consistency condition on Maxwell's equations and constrains the allowed forms of and fields in dynamic situations.
Charge conservation principle
Electric charge is never created or destroyed. It can only move from one place to another. This means the total charge in any isolated system stays constant over time.
The continuity equation is the mathematical statement of this fact. Rather than just saying "charge is conserved," it tells you exactly how the local redistribution works: any decrease in charge somewhere must be accounted for by current flowing outward.
Kirchhoff's current law
Kirchhoff's current law (KCL) is a direct consequence of charge conservation applied to circuit nodes. It states that the sum of currents entering any node equals the sum of currents leaving it. In other words, charge doesn't pile up at a junction. KCL is really just the continuity equation applied to a lumped-circuit element where you treat each node as a small volume with no charge accumulation.
Mathematical formulation
The continuity equation can be written in two equivalent forms. The differential form is a local statement (valid at every point), while the integral form is a global statement (valid over a finite volume).
Differential form
- is the volume charge density (C/m³)
- is the current density (A/m²)
- is the divergence of the current density
The physical meaning: if at some point, current is diverging away from that point, so the local charge density must be decreasing (). The equation enforces a strict balance between these two quantities at every point in space and at every instant.
Integral form
- is any closed volume you choose
- is the surface bounding that volume
- points outward by convention
The left side is the rate of change of total charge inside . The right side is the net inward current through the surface (the minus sign accounts for the outward convention of ). You can derive this from the differential form by integrating over and applying the divergence theorem to the term.
Derivation sketch:
- Start with .
- Integrate both sides over a volume : .
- Apply the divergence theorem to the second integral: .
- Rearrange to get the integral form above.
Physical interpretation
Relationship between charge and current
Current density describes the charge flowing through a surface per unit area per unit time. The continuity equation ties this flow to the time evolution of : wherever current diverges outward, charge depletes; wherever current converges inward, charge accumulates.
A useful way to think about it: imagine a small box in space. If more current leaves the box than enters it (positive divergence), the charge inside must be dropping. If more enters than leaves (negative divergence), charge is building up.
Local vs. global conservation
- Local conservation (differential form): charge is conserved at each point. No teleportation of charge is allowed; it must flow continuously through space.
- Global conservation (integral form): the total charge inside any volume changes only because of current crossing the boundary.
Local conservation is the stronger statement. Global conservation follows from it, but not the other way around. A theory could conserve total charge globally while allowing charge to vanish at one point and appear at another. The continuity equation rules this out.

Continuity equation in electromagnetism
Deriving the continuity equation from Maxwell's equations
The continuity equation isn't an independent postulate. You can derive it directly from Maxwell's equations:
- Start with the Ampère-Maxwell law: .
- Take the divergence of both sides. The left side vanishes because the divergence of any curl is identically zero: .
- This gives: .
- Use Gauss's law () to substitute: .
- Divide by and rearrange: .
This derivation shows why Maxwell needed the displacement current term . Without it, taking the divergence of Ampère's law would give , which only holds for steady currents (magnetostatics). The displacement current fixes this, ensuring charge conservation holds in all situations.
Current density vector
represents the flow of electric charge per unit area per unit time, measured in A/m². Its direction indicates the direction of net positive charge flow, and its magnitude tells you how much charge crosses a unit area (perpendicular to ) per second.
For a simple conductor, , where is the conductivity. But is more general than this; it applies to any moving charge distribution, including convection currents () in plasmas or beams.
Charge density
is the volume charge density, measured in C/m³. It can be positive, negative, or zero depending on the local balance of positive and negative charges. In a neutral conductor at equilibrium, in the bulk, but surface charge densities can still be nonzero.
Applications
Electric circuits
In circuit analysis, the continuity equation reduces to Kirchhoff's current law at each node. For components like capacitors, the continuity equation is what allows a "current" to effectively flow through the gap between the plates: the changing electric field between the plates produces a displacement current that maintains continuity of current.
Charge relaxation in conductors
A classic application: suppose you place excess charge inside a conductor with conductivity and permittivity . How quickly does it dissipate?
- Start with the continuity equation: .
- Use , so .
- Apply Gauss's law: .
- Substitute: .
- This is a first-order ODE with solution: , where .
The relaxation time tells you how fast free charge redistributes to the surface. For copper, s (essentially instantaneous). For a poor conductor or dielectric, can be much longer.
Electromagnetic wave propagation
The continuity equation constrains the source terms in Maxwell's equations. When deriving the wave equation for and in free space (, ), the continuity equation is automatically satisfied. In the presence of sources, it ensures that the charge and current distributions are self-consistent, which matters when you couple Maxwell's equations to the equations of motion for charged matter.

Plasma physics
In plasmas, you typically write a separate continuity equation for each species (electrons, ions):
where is the number density and is the fluid velocity of species . Multiplying by the charge recovers the charge continuity equation for that species. These equations, combined with momentum equations and Maxwell's equations, form the magnetohydrodynamic (MHD) or two-fluid models used to describe fusion plasmas, the solar wind, and industrial plasma processing.
Limitations and assumptions
Validity in different media
The continuity equation holds exactly in vacuum and in any continuous medium. At interfaces between different media, and can have discontinuities, so you need to use the integral form (or equivalently, boundary conditions on the normal component of ) rather than the differential form directly at the interface.
For linear media, you often work with free charge density and free current density , and the continuity equation applies to these free quantities: .
Quantum mechanical considerations
The classical continuity equation carries over to quantum mechanics, but with reinterpreted quantities. In the Schrödinger theory, the probability density and the probability current density satisfy the same continuity equation. This ensures that total probability is conserved (normalization is preserved in time). For an Electromagnetism II course, the key point is that charge conservation is robust: it holds in classical, relativistic, and quantum frameworks.
Continuity equation vs. other conservation laws
The continuity equation for charge has the same mathematical structure as other conservation laws. Mass conservation in fluid dynamics takes the form , and energy conservation can be written similarly with an energy density and energy flux.
Charge conservation is exact. Unlike mass conservation (which is only approximate in relativity, since mass can convert to energy via ) or classical energy conservation (which must be extended to include rest-mass energy in relativity), charge conservation holds without modification in every known physical theory. No experiment has ever detected a violation of charge conservation.
Problem-solving with the continuity equation
General approach
- Identify what's given. You'll typically know either or (or a relationship between them, like ).
- Choose the right form. Use the differential form for problems asking about local behavior at a point. Use the integral form for problems involving total charge in a region or net current through a surface.
- Apply the continuity equation to relate the unknown to the known quantity.
- Use boundary/initial conditions to pin down constants of integration or determine the full solution.
- Check your answer. Does the sign make sense? (Outward current should decrease enclosed charge.) Do the units work out?
Identifying boundary conditions
Common boundary conditions include:
- Specified or at a surface
- continuous across an interface (no surface current accumulation) or discontinuous by a known amount
- Charge density vanishing at infinity for localized distributions
- Initial charge distribution
Solving for unknown quantities
For problems with high symmetry (planar, cylindrical, spherical), the continuity equation often reduces to an ODE that you can solve analytically (as in the charge relaxation example above). For more complex geometries or nonlinear constitutive relations, numerical methods (finite difference, finite element) are typically needed.