Boundary conditions at interfaces
Boundary conditions describe how electromagnetic fields behave at the interface between two different media. They're derived from Maxwell's equations and enforce physical constraints (like charge conservation and energy conservation) across every boundary. Without them, you can't solve any problem that involves more than one material or region.
Derivation from Maxwell's equations
The boundary conditions come from applying the integral forms of Maxwell's equations to tiny regions that straddle the interface.
For the normal component conditions, you use Gauss's law. Picture a small pillbox-shaped volume with one flat face in medium 1 and the other in medium 2. As you shrink the pillbox height to zero, the volume contribution vanishes and you're left with a relationship between the normal field components on each side.
For the tangential component conditions, you use Faraday's law. Draw a small rectangular loop with its long sides parallel to the interface, one in each medium. Shrinking the loop height to zero eliminates any flux through the loop, giving you a condition on the tangential fields.
The key mathematical tools here are the divergence theorem (for the pillbox argument) and Stokes' theorem (for the loop argument).
Electric field component perpendicular to boundary
The normal component of is generally discontinuous across a boundary. The jump is set by the free surface charge density at the interface:
Here points from medium 1 into medium 2. Physically, this says the net outward electric flux from the pillbox equals the enclosed free charge. If there's no free charge at the interface (), then .
Note: this involves , not . Since , the normal component of itself will generally be discontinuous even when , because changes across the boundary.
Electric field component parallel to boundary
The tangential component of is always continuous across the boundary:
This follows from Faraday's law applied to the rectangular loop. Because in electrostatics (or in the time-varying case, but the loop area shrinks to zero), the line integral around the loop vanishes, forcing .
This also guarantees that the electrostatic potential is continuous across the boundary.
Boundary conditions for perfect conductors
A perfect conductor is an idealization with infinite conductivity (). Real metals like copper or aluminum approximate this well at low frequencies.
Electric field inside ideal conductors
Under static (or steady-state) conditions, the electric field inside a perfect conductor is exactly zero:
Why? If any field existed inside, the free charges would experience a force and move. With infinite conductivity, they redistribute instantaneously until the internal field is completely canceled. All excess charge ends up on the surface.
Surface charge density on conductors
Since inside and in the vacuum/dielectric region outside, the general boundary condition reduces to:
where points outward from the conductor surface. The surface charge density adjusts itself to whatever value is needed to terminate the external field lines. Its distribution depends on the conductor geometry and any applied external fields.
Tangential electric field at conductor surface
The tangential electric field at the surface of a perfect conductor is zero:
This follows directly from the continuity of across the boundary combined with inside. A consequence: the conductor surface is an equipotential surface. Any path along the surface has zero tangential field, so no work is done moving a charge along it, meaning the potential doesn't change.
Boundary conditions for dielectrics
Dielectrics are insulating materials that become polarized in an external electric field. Unlike conductors, they support nonzero internal fields.

Electric field in dielectrics vs conductors
The electric field inside a dielectric is generally not zero. Instead, the applied field displaces bound charges slightly from equilibrium, creating a polarization . This polarization partially opposes the applied field but doesn't cancel it.
The total electric flux density accounts for both free and bound charge effects:
where is the permittivity of the dielectric and is the relative permittivity (dielectric constant).
Normal component of electric displacement field
The normal component of obeys the same condition as at any interface:
For two dielectrics with no free charge at the interface (), this simplifies to:
So the normal component of jumps by the ratio of permittivities. A higher-permittivity material will have a smaller normal component.
Tangential component of electric field
The tangential component of remains continuous, just as at any interface:
Combined with the normal condition, these two equations fully determine how the field refracts at a dielectric interface. You can derive a "Snell's law" analog for electrostatics:
where and are the angles the field makes with the surface normal in each medium.
Surface charge density at dielectric boundaries
Even without free charge, a bound surface charge appears at the interface due to the discontinuity in polarization:
Note the sign convention: points from medium 1 into medium 2, and the bound charge equals the polarization "leaving" medium 1 minus that "entering" medium 2. This bound charge is what causes the normal component of to be discontinuous even when no free charge is present.
Boundary conditions for permeable materials
Although this topic focuses on electric fields, the magnetic boundary conditions are closely analogous and often appear alongside them in boundary-value problems.
Permeable materials are characterized by their magnetic permeability , relating .
Magnetic field boundary conditions
The magnetic conditions mirror the electric ones, with the roles of / swapped for /:
- The normal component of is continuous (no magnetic monopoles).
- The tangential component of can be discontinuous if surface currents are present.
Normal component of magnetic flux density
This comes from (Gauss's law for magnetism) applied to the pillbox. There's no magnetic charge analog to , so the normal component of is always continuous.
Tangential component of magnetic field intensity
where is the free surface current density (units: A/m). If no surface current exists, , and the normal condition then gives:
This is the magnetic analog of the electrostatic refraction law.

Applications of boundary conditions
Solving electrostatic boundary value problems
Boundary conditions provide the constraints needed to find unique solutions to Laplace's equation () or Poisson's equation (). Common solution techniques include:
- Method of images: Replace a boundary (e.g., a grounded conductor) with fictitious image charges that enforce the correct boundary condition.
- Separation of variables: Assume a product-form solution and apply boundary conditions to determine the coefficients.
- Numerical methods: Finite difference, finite element, and boundary element methods discretize the domain and enforce boundary conditions at each interface.
In every case, the boundary conditions are what make the solution unique (via the uniqueness theorem).
Capacitors with multiple dielectric layers
For a parallel-plate capacitor with multiple dielectric layers stacked between the plates:
- is continuous across each interface (assuming no free charge between layers), so is the same in every layer.
- differs in each layer: .
- The total voltage is the sum of the voltage drops across each layer: .
- The result is equivalent to capacitors in series, with .
For layers side by side (parallel to the plates), is continuous instead, and the layers act as capacitors in parallel.
Transmission and reflection at dielectric interfaces
When an electromagnetic wave hits a boundary between two dielectrics, boundary conditions on both and determine the reflected and transmitted wave amplitudes. This leads to the Fresnel equations, which give the reflection and transmission coefficients as functions of the angle of incidence and the refractive indices () of the two media.
Special cases include Brewster's angle (zero reflection for one polarization) and total internal reflection (when going from a higher to lower refractive index beyond the critical angle).
Waveguides and cavity resonators
In waveguides and resonators, the conducting walls impose and at every wall surface. These constraints:
- Restrict the allowed field patterns to discrete modes (TE, TM, or TEM).
- Set cutoff frequencies below which a given mode cannot propagate.
- Determine resonant frequencies in closed cavities.
The boundary conditions effectively quantize the transverse wavenumbers, which is why only certain field configurations can exist inside these structures.
Limitations and approximations
Ideal vs real material properties
The boundary conditions above assume ideal material properties: perfect conductors with , lossless dielectrics with real-valued , and sharp interfaces. Real materials deviate from these assumptions, and the deviations matter more at higher frequencies and smaller length scales.
Finite conductivity and dielectric loss
Real conductors have finite conductivity, so fields penetrate a small distance into the surface (the skin depth ). The "perfect conductor" boundary condition is a good approximation only when the skin depth is much smaller than other relevant dimensions.
Dielectrics exhibit loss from mechanisms like dipole relaxation and ionic conduction. This is captured by a complex permittivity , which modifies the field distributions and introduces attenuation.
Local vs macroscopic electric fields
Boundary conditions apply to macroscopic fields, which are spatial averages over many atoms. At the nanoscale or near surfaces, the local field can differ significantly from the macroscopic value. For example, the Clausius-Mossotti relation connects the macroscopic permittivity to the microscopic polarizability, but the local field correction becomes important when you're working at scales comparable to interatomic spacing.
Boundary conditions in time-varying fields
For time-varying fields, the boundary conditions on and still hold in the same form. The tangential condition remains valid because the magnetic flux through the shrinking Faraday loop vanishes as the loop area goes to zero, regardless of .
What changes in the time-varying case is that and are now coupled through Faraday's law and the Ampère-Maxwell equation. You must solve the boundary conditions for electric and magnetic fields simultaneously, which is exactly what leads to the Fresnel equations and waveguide mode analysis discussed above.