Energy Density Of Electric and Magnetic Fields Calculator - Field Energy Per Volume

Energy density of electric and magnetic fields calculator that returns the electric, magnetic, and combined energy density in joules per cubic metre from your field values and the medium's permittivity and permeability.

Updated: July 8, 2026 • Free Tool

Energy Density Of Electric and Magnetic Fields Calculator

Electric field magnitude in volts per metre. Only the magnitude matters; squaring removes direction.

Magnetic field B in tesla. For a plane wave in vacuum use B = E / c.

Dielectric constant of the medium. Use 1 for vacuum or air, about 80 for water.

Relative permeability of the medium. Use 1 for vacuum and most materials; ferromagnets are much larger.

Results

Total energy density (u)
0J/m³
Electric field energy density (uE) 0J/m³
Magnetic field energy density (uB) 0J/m³

What Is the Energy Density Of Electric And Magnetic Fields Calculator?

The energy density of electric and magnetic fields calculator finds how much electromagnetic energy is stored in each cubic metre of space. It sums the energy packed into the electric field, uE, and the energy packed into the magnetic field, uB, to give a single total energy density in joules per cubic metre (J/m3).

  • Capacitor and cavity design: Engineers estimate stored field energy before choosing insulation and spacing.
  • Electromagnetism coursework: Students check that uE and uB match in a travelling plane wave.
  • Radiation and antenna analysis: Researchers compare electric and magnetic energy near sources and in far fields.

Every electric field carries energy, and every magnetic field does too. The energy is spread through space rather than sitting at a point, so we describe it as a density: energy per unit volume. That is why the units are joules per cubic metre.

This calculator works for static fields, slowly varying fields, and electromagnetic waves. You enter the field strengths and, if the fields sit inside a material, the relative permittivity and permeability of that material.

Understanding field energy density helps explain why a capacitor stores energy in the gap between its plates and why the energy of a light wave is shared equally between its electric and magnetic parts.

The capacitor gap is where that field energy actually lives, which is why this result connects directly to the capacitor calculator, where the same electric-field energy appears as stored charge energy.

How the Energy Density Of Electric And Magnetic Fields Calculator Works

The calculator evaluates two separate energy-density terms and adds them. The electric term grows with the square of the electric field; the magnetic term grows with the square of the magnetic flux density.

u = (1/2) εr·ε0·E² + B² / (2·μr·μ0)
  • E: Electric field strength in V/m.
  • B: Magnetic flux density in tesla.
  • ε0: Vacuum permittivity, 8.8541878128e-12 F/m.
  • μ0: Vacuum permeability, 4·π·1e-7 H/m.
  • εr, μr: Relative permittivity and permeability of the medium (1 in vacuum).

In a vacuum the formula becomes u = (1/2) ε0 E2 + B2 / (2 μ0). The first term is the electric-field energy density and the second is the magnetic-field energy density. Each term has the same joules-per-cubic-metre unit, so they can be added directly.

Inside a material the field energy changes because the medium stores and returns energy differently. Multiplying the electric term by εr and the magnetic term denominator by μr captures that effect. A water-filled capacitor, for example, raises εr to about 80 and stores far more electric-field energy for the same E.

This energy density of electric and magnetic fields calculator follows the standard electromagnetism result that the energy density is (1/2)(E·D + B·H), which reduces to the formula shown above. Worked examples below show the numbers for common cases.

Electric field only, vacuum

E = 1 V/m, B = 0, εr = 1, μr = 1

uE = 0.5 · 8.854e-12 · 1² = 4.427e-12 J/m3; uB = 0

u = 4.427 × 10⁻¹² J/m³

A modest 1 V/m field stores a vanishingly small amount of energy per cubic metre.

Magnetic field only, vacuum

E = 0, B = 1 T, εr = 1, μr = 1

uB = 1² / (2 · 4πe-7) = 397887 J/m3; uE = 0

u = 3.979 × 10⁵ J/m³

A 1 tesla field holds enormous energy density, which is why strong magnets store real mechanical energy.

According to Wikipedia — Energy density, the electromagnetic energy density in vacuum is u = (1/2) ε0 E² + B²/(2 μ0)

If you start from a charge rather than a field, first find E with the point-charge relation using the electric field of a point charge calculator, then return here.

Key Concepts Explained

Three ideas help you read the outputs: what 'density' means here, why the two terms are symmetric, and how a material changes the balance.

Energy density is a volume integral

Multiplying J/m3 by the field volume gives total stored energy. A large volume of weak field can hold as much energy as a small volume of strong field.

Vacuum constants set the scale

Because ε0 is tiny and μ0 is small, electric-field energy is usually small unless E is large, while magnetic energy grows fast with B. This asymmetry makes the relative sizes of uE and uB informative.

Plane-wave equality

In vacuum a travelling electromagnetic wave satisfies E = cB, which makes uE exactly equal to uB. The wave carries half its energy in the electric field and half in the magnetic field.

Volume integration gives total energy

Because the formula gives energy per unit volume, multiplying the density by the region's volume recovers the total stored field energy, which is how capacitor and inductor energies are ultimately derived.

The electric-field energy density is always non-negative because it depends on E squared. The same is true for the magnetic term and B squared, so the total can never go negative.

These relationships are confirmed by standard references: the electric and magnetic field energy densities are uE = (1/2) ε0 E2 and uB = B2/(2 μ0) in vacuum.

When you compute magnetic energy using an inductor, you are really summing this same magnetic energy density over the coil's volume, so the inductor energy calculator expresses the same physics through current and inductance.

How to Use This Calculator

Enter your field values and medium constants, then read the three results. No unit conversion is needed beyond the labels shown.

  1. 1 Enter the electric field E: Type the magnitude of E in volts per metre. Use 0 if you only have a magnetic field.
  2. 2 Enter the magnetic flux density B: Type B in tesla. For a plane wave in vacuum, set B = E / 299792458.
  3. 3 Set the medium constants: Leave εr and μr at 1 for vacuum or air, or enter the material's relative permittivity and permeability.
  4. 4 Read the densities: The primary result is the total energy density; the electric and magnetic contributions are listed beneath it.

For a radio wave with E = 300 V/m in vacuum, enter E = 300 and B = 1.00069e-6 T. The calculator returns uE ≈ uB ≈ 4.0e-7 J/m3, so u ≈ 8.0e-7 J/m3, confirming the equal split of a plane wave.

Gauss's law links a known charge distribution to the electric field used in the energy-density formula, so the Gauss's law calculator is the natural first step from charge to field.

Benefits of Using This Calculator

A dedicated tool removes arithmetic mistakes and makes the electric and magnetic contributions visible side by side.

  • Clear split of field energy: See how much of the total comes from E versus B without hand-squaring constants.
  • Material-aware results: Include εr and μr so the answer reflects a dielectric or ferromagnet, not just a vacuum.
  • Plane-wave check: Verify uE = uB for a travelling wave, a common exam and design sanity check.

Knowing the separate uE and uB values helps when one field dominates, such as near a charged plate (electric) versus inside a solenoid (magnetic).

The magnetic force on a moving charge depends on B, and that force is sustained by the magnetic-field energy density you compute here.

The Lorentz force calculator shows the mechanical side of the same field, making the link between stored magnetic energy and the push a moving charge feels.

Factors That Affect Your Results

Four inputs control the output. Their ranges and the medium properties have the largest effect.

Electric field magnitude E

Because uE scales with E2, halving E cuts the electric contribution to one quarter. Strong fields dominate quickly.

Magnetic flux density B

uB scales with B2, so small increases in B produce large increases in magnetic energy density.

Relative permittivity εr

Multiplying the electric term by εr lets dielectrics store far more electric energy for the same E.

Relative permeability μr

Dividing the magnetic term by μr means high-permeability materials reduce the magnetic energy density at fixed B.

  • The formula assumes linear, isotropic media; strongly nonlinear ferromagnets need a more elaborate treatment.
  • It gives energy density at a point from the local E and B; total energy still requires integrating over volume.

Permeability is not constant for all materials. Vacuum and air are 1, while iron can exceed several thousand, which is why the same B can mean very different stored energy.

Vacuum permeability μ0 and vacuum permittivity ε0 are fixed SI constants, so the only free choices in a vacuum are E and B themselves.

According to NIST CODATA — Vacuum permittivity and permeability, ε0 = 8.8541878128e-12 F/m and μ0 = 4π×1e-7 H/m are fixed SI constants

Permeability is not constant for all materials, which is why the magnetic permeability calculator is useful for finding the μr that changes the magnetic term here.

Energy density of electric and magnetic fields calculator showing the electric field term 1/2 epsilon0 E squared and the magnetic field term B squared over 2 mu0
Energy density of electric and magnetic fields calculator showing the electric field term 1/2 epsilon0 E squared and the magnetic field term B squared over 2 mu0

Frequently Asked Questions

Q: What is the formula for the energy density of an electromagnetic field?

A: In vacuum the total energy density is u = (1/2) ε0 E² + B²/(2 μ0), where ε0 is the vacuum permittivity and μ0 is the vacuum permeability. Inside a material, multiply the electric term by the relative permittivity εr and divide the magnetic term by the relative permeability μr. The result is in joules per cubic metre.

Q: How are electric and magnetic energy density related in a plane wave?

A: In a vacuum plane electromagnetic wave the fields satisfy E = cB, where c is the speed of light. Substituting that relation shows the electric and magnetic contributions are exactly equal: uE = uB. The wave therefore carries half its energy in the electric field and half in the magnetic field.

Q: What are the units of electromagnetic energy density?

A: The unit is joules per cubic metre (J/m³), which is the same as pascals. Both the electric term (1/2) ε0 E² and the magnetic term B²/(2 μ0) reduce to that unit because ε0 has units F/m and μ0 has units H/m.

Q: Does the energy density formula change inside a dielectric or magnetic material?

A: The shape of the formula stays the same, but the medium matters. Use u = (1/2) εr ε0 E² + B²/(2 μr μ0) with the material's relative permittivity εr and relative permeability μr. A dielectric with εr = 80 stores 80 times more electric-field energy for the same E, while a high-μr core reduces the magnetic energy density at fixed B.

Q: How much energy is stored in the electric field of a capacitor?

A: A parallel-plate capacitor's stored energy is the electric-field energy density (1/2) ε E² integrated over the volume between the plates. Equivalently it equals (1/2) C V². Both expressions describe the same field energy; this calculator gives the density, which you multiply by the plate area times the gap to get the total.

Q: Can this calculator find the energy density of a static magnetic field?

A: Yes. Set the electric field to zero and enter the magnetic flux density B, along with the medium's relative permeability if the field is inside a material. The result is uB = B²/(2 μr μ0) in joules per cubic metre, which is the energy density of a static magnetic field such as inside a solenoid.