Skip to content

Maxwell Equation Calculator

Calculate electromagnetic wave properties using Maxwell's equations.

By CalcGenius Editorial TeamLast reviewed August 28, 20253 min read
Maxwell Equation Calculator (Electromagnetism)
Pick which Maxwell equation application to compute. Defaults are vacuum values.
Use scientific notation: 5e14 for green light, 2.45e9 for microwave, 1e18 for X-ray.
Vacuum: 8.854e-12 F/m. In a dielectric, multiply by ε_r (≈ 80 for water).
Vacuum: 4π × 10⁻⁷ ≈ 1.2566e-6 H/m. Iron and ferrites have μ_r >> 1.
📊
Enter your values and click Calculate

About

James Clerk Maxwell published his four equations of electromagnetism in 1865, unifying electricity, magnetism, and optics into a single theoretical framework. The four equations describe how electric and magnetic fields are created by charges, currents, and each other: Gauss' law for E (charge creates electric field), Gauss' law for B (no magnetic monopoles), Faraday's law (changing magnetic field creates circulating electric field), and the Ampère-Maxwell law (currents and changing electric fields create circulating magnetic fields). They are the foundation of all classical electromagnetism.

The deepest prediction of Maxwell's equations is the speed of light. Combining Faraday's and Ampère-Maxwell laws in vacuum (no charges, no currents) gives wave equations for E and B with propagation speed c = 1 / √(ε₀ × μ₀), where ε₀ = 8.854 × 10⁻¹² F/m is the vacuum permittivity and μ₀ = 4π × 10⁻⁷ H/m is the vacuum permeability. Plugging in these constants yields c ≈ 2.998 × 10⁸ m/s — exactly the measured speed of light. Maxwell recognized that light must be an electromagnetic wave, a prediction confirmed experimentally by Heinrich Hertz's radio experiments in 1887.

For any electromagnetic wave in vacuum, the wave equation gives c = λ × f, where λ is wavelength (m) and f is frequency (Hz). The visible spectrum (400–700 nm) corresponds to frequencies of 4.3–7.5 × 10¹⁴ Hz — green light at 550 nm has f ≈ 5.45 × 10¹⁴ Hz. Lower frequencies give longer wavelengths: a 60 Hz power line radiates at 5000 km wavelength; a 100 MHz FM radio wave is 3 m long; a 2.45 GHz microwave is 12.2 cm. Higher frequencies give shorter wavelengths: X-rays (10¹⁸ Hz) are 0.3 nm, gamma rays (10²⁰ Hz) are 0.003 nm.

Each EM wave also carries energy in discrete packets called photons, with energy E = h × f, where h = 6.626 × 10⁻³⁴ J·s is Planck's constant. A green photon (5 × 10¹⁴ Hz) carries 3.3 × 10⁻¹⁹ J or about 2 eV — enough to trigger vision in a single retinal cell. An X-ray photon at 10¹⁸ Hz carries 6.6 × 10⁻¹⁶ J or 4 keV — enough to ionize atoms and damage DNA. Photon energy explains the photoelectric effect (Einstein's 1905 paper that helped launch quantum mechanics) and is the basis of solar cells, LEDs, lasers, and digital cameras.

Faraday's law of induction, ∮E·dl = -dΦ_B/dt, says that a time-varying magnetic flux through a loop induces an electromotive force (voltage) around the loop. The negative sign is Lenz's law — the induced current opposes the change. This is the principle behind electric generators (spinning magnets induce currents in coils), transformers (AC in the primary creates a changing flux that induces voltage in the secondary), induction cooktops, and dynamic microphones. Ampère-Maxwell law, ∮B·dl = μ₀ I + μ₀ ε₀ dΦ_E/dt, says that currents and time-varying electric fields create circulating magnetic fields — the principle behind electromagnets, motors, and antennas.

This calculator handles three common applications of Maxwell's equations. In EM-wave mode, it computes c = 1 / √(εμ), then λ = c/f and photon energy E = hf for a given frequency. In Faraday mode, it computes the induced EMF from a rate of change of magnetic flux. In Ampère mode, it computes the closed line integral ∮B·dl from the enclosed current (with displacement current set to zero). Use it to explore how the same constants appear across electromagnetism, optics, and circuit analysis.

How to Use

  1. 1
    Choose the analysis mode
    Select EM wave properties to compute wavelength and photon energy from frequency. Faraday's law to compute induced EMF from a changing magnetic flux. Ampère's law to compute magnetic field from current.
  2. 2
    Enter frequency or rate of change
    In wave mode, type the frequency in Hz (try 5e14 for visible green light). In Faraday mode, type the rate of change of magnetic flux dΦ_B/dt in webers per second. In Ampère mode, type the enclosed current I in amperes.
  3. 3
    Set the medium (optional)
    The defaults are vacuum values: ε₀ = 8.854 × 10⁻¹² F/m and μ₀ = 4π × 10⁻⁷ H/m, giving c ≈ 3 × 10⁸ m/s. For non-vacuum media, look up relative permittivity (dielectric constant) and permeability.
  4. 4
    Read the wave or field result
    The hero block reports the headline quantity (wavelength, induced EMF, or magnetic field). The breakdown shows the other derived quantities and the constants used.
  5. 5
    Compare to common frequencies
    Use the comparison table to contextualize: 60 Hz power, 100 MHz FM, 2.45 GHz microwave, 5 × 10¹⁴ Hz visible light, 10¹⁸ Hz X-ray. Each row shows wavelength and photon energy.
  6. 6
    Reset and explore other modes
    Click Reset to restore defaults. Switch between EM wave, Faraday, and Ampère modes to see how the same constants appear in very different physical situations.

Formula

Maxwell's equations in differential form (SI units):

  • ∇·E = ρ / ε₀ (Gauss' law for E)
  • ∇·B = 0 (Gauss' law for B)
  • ∇×E = -∂B/∂t (Faraday's law)
  • ∇×B = μ₀J + μ₀ε₀ ∂E/∂t (Ampère-Maxwell law)

Wave speed from vacuum constants:

c = 1 / √(ε₀ × μ₀) ≈ 2.998 × 10⁸ m/s

EM wave relations:

λ = c / f     E_photon = h × f

Faraday's law (integral form):

∮E·dl = -dΦ_B/dt  (1 Wb/s = 1 V induced EMF)

Ampère-Maxwell law (integral form):

∮B·dl = μ₀ I + μ₀ ε₀ dΦ_E/dt

Fundamental constants used:

  • ε₀ = 8.854 × 10⁻¹² F/m (vacuum permittivity)
  • μ₀ = 4π × 10⁻⁷ ≈ 1.2566 × 10⁻⁶ H/m (vacuum permeability)
  • c = 1/√(ε₀μ₀) ≈ 2.998 × 10⁸ m/s (speed of light in vacuum)
  • h = 6.626 × 10⁻³⁴ J·s (Planck constant)
  • e = 1.602 × 10⁻¹⁹ C (electron charge; 1 eV = 1.602 × 10⁻¹⁹ J)

Worked Example

Green light has a wavelength of about 550 nm. What is its frequency, photon energy, and how does c come out of ε₀ and μ₀?

  • λ = 550 nm = 5.5 × 10⁻⁷ m
  • c = 1 / √(8.854 × 10⁻¹² × 1.2566 × 10⁻⁶) ≈ 2.998 × 10⁸ m/s
  • f = c / λ = 2.998 × 10⁸ / 5.5 × 10⁻⁷ ≈ 5.45 × 10¹⁴ Hz
  • E_photon = h × f = 6.626 × 10⁻³⁴ × 5.45 × 10¹⁴ ≈ 3.61 × 10⁻¹⁹ J
  • In eV: 3.61 × 10⁻¹⁹ / 1.602 × 10⁻¹⁹ ≈ 2.25 eV
  • Shortcut: E[eV] = 1.24 / λ[μm] = 1.24 / 0.55 ≈ 2.25 eV ✓

Faraday example — a solenoid with magnetic flux decreasing at 5 Wb/s. What EMF is induced in a loop around it?

  • Known: dΦ_B/dt = -5 Wb/s (flux decreasing)
  • EMF = -dΦ_B/dt = -(-5) = +5 V
  • Lenz's law: the induced current will create a B field that reinforces the decreasing flux — opposing the change.

Tips

  • Memorize the vacuum constants: ε₀ = 8.854 × 10⁻¹² F/m, μ₀ = 4π × 10⁻⁷ H/m (≈ 1.257 × 10⁻⁶), c = 1/√(ε₀μ₀) ≈ 2.998 × 10⁸ m/s. These three form the backbone of every EM-wave calculation.
  • Always check whether the medium is vacuum or a material. For water ε_r ≈ 80, so light speed drops to c / √80 ≈ c / 9 — that's why a straw looks bent at the water surface. Radio waves in coax use dielectric foams that slow them by √ε_r.
  • Photon energy in eV is just h × f / e where e = 1.602 × 10⁻¹⁹ C. The shortcut: E[eV] = 1.24 / λ[μm] — so 0.5 μm green light has 2.48 eV photons, and 1 keV X-rays have wavelength 1.24 nm.
  • Faraday's law uses magnetic flux Φ_B = ∫B·dA in webers. A 1-tesla field through 1 m² is 1 Wb. The rate of change dΦ/dt in Wb/s equals the induced EMF in volts — that's why the unit weber is defined as V·s.
  • The displacement-current term μ₀ε₀ dΦ_E/dt is essential for wave propagation — without it, Ampère's law alone cannot explain how EM waves travel through vacuum. Maxwell's correction was the key insight that unified electromagnetism and optics.

Common Mistakes

Common mistakes
  • Forgetting that c = 1/√(εμ) changes in materials — in water (ε_r ≈ 80), light travels at c/9 ≈ 33,000 km/s. Always check whether the medium is vacuum or a dielectric.
  • Mixing up ε₀ (vacuum permittivity, 8.854 × 10⁻¹² F/m) with ε_r (relative permittivity, dimensionless, typically 1–100). Use ε = ε₀ × ε_r in material media.
  • Forgetting Lenz's law (the negative sign in Faraday) — the induced EMF opposes the change in flux, not the flux itself. A steady magnetic field induces zero EMF.
  • Using h (Planck's constant, 6.626 × 10⁻³⁴ J·s) when you mean ℏ (h-bar, h/2π = 1.055 × 10⁻³⁴ J·s). The reduced constant appears in angular-frequency formulations E = ℏω.
  • Treating Maxwell's equations as exact at all scales — at atomic length scales, quantum electrodynamics (QED) replaces them, though the classical limit holds to extraordinary precision for ordinary fields.

Frequently Asked Questions

What are Maxwell's equations?
Maxwell's equations are four coupled partial differential equations that describe the behavior of electric and magnetic fields and their interactions with matter. In modern vector form they are: ∇·E = ρ/ε₀ (Gauss' law for E), ∇·B = 0 (Gauss' law for B, no magnetic monopoles), ∇×E = -∂B/∂t (Faraday's law), and ∇×B = μ₀J + μ₀ε₀ ∂E/∂t (Ampère-Maxwell law). They unify electricity, magnetism, and optics into a single framework.
How do Maxwell's equations predict the speed of light?
Combining Faraday's and Ampère's laws in vacuum (no charges or currents) gives wave equations for E and B with speed c = 1 / √(ε₀ × μ₀). Plugging in the vacuum permittivity ε₀ = 8.854 × 10⁻¹² F/m and permeability μ₀ = 4π × 10⁻⁷ H/m yields c ≈ 2.998 × 10⁸ m/s — exactly the measured speed of light. Maxwell recognized this in 1865, identifying light as an electromagnetic wave.
What is the relationship between frequency, wavelength, and the speed of light?
For any electromagnetic wave in vacuum, c = λ × f, where c ≈ 2.998 × 10⁸ m/s, λ is wavelength (m), and f is frequency (Hz). Visible light spans about 400–700 nm, corresponding to 7.5 × 10¹⁴ to 4.3 × 10¹⁴ Hz. A 60 Hz power-line EM wave has a wavelength of 5000 km; a 100 MHz FM radio wave is 3 m long; a 2.45 GHz microwave is 12.2 cm. Higher frequency means shorter wavelength.
What is photon energy and how is it calculated?
Photon energy E = h × f, where h = 6.626 × 10⁻³⁴ J·s is Planck's constant and f is the frequency. A 1 kHz photon has 6.6 × 10⁻³¹ J (negligibly small); a 5 × 10¹⁴ Hz visible photon has about 3.3 × 10⁻¹⁹ J or 2 eV; a 10¹⁸ Hz X-ray photon has 6.6 × 10⁻¹⁶ J or 4 keV. In eV, divide the joule value by 1.602 × 10⁻¹⁹ J/eV — handy for atomic physics.
What do Faraday's law and Ampère's law actually say?
Faraday's law states that a time-varying magnetic flux through a loop induces an electromotive force (voltage) around the loop: ∮E·dl = -dΦ_B/dt. This is the principle behind electric generators and transformers. Ampère's law (with Maxwell's correction) states that a current or time-varying electric flux through a loop creates a circulating magnetic field: ∮B·dl = μ₀ I + μ₀ ε₀ dΦ_E/dt. The two laws together explain electromagnetic wave propagation.
What is the electromagnetic spectrum and how is it organized?
The EM spectrum is the full range of electromagnetic waves by frequency (or wavelength). From low to high frequency: radio (kHz–GHz), microwave (GHz), infrared (THz), visible (430–750 THz), ultraviolet (10¹⁵–10¹⁶ Hz), X-ray (10¹⁶–10¹⁹ Hz), and gamma (above 10¹⁹ Hz). All these waves travel at the speed of light in vacuum and obey E = hf; they differ only in frequency (and hence wavelength and photon energy).

Maxwell's four equations

Maxwell's equations are the four laws of electromagnetism: (1) Gauss' law — electric charge creates electric field, ∇·E = ρ/ε₀; (2) Gauss' law for magnetism — no magnetic monopoles, ∇·B = 0; (3) Faraday's law — a changing magnetic field creates a circulating electric field, ∇×E = -∂B/∂t; (4) Ampère-Maxwell law — a current or changing electric field creates a circulating magnetic field, ∇×B = μ₀J + μ₀ε₀ ∂E/∂t. Together they unify all of electricity, magnetism, and optics.

Speed of light derivation

In vacuum with no charges or currents, combining Faraday's and Ampère-Maxwell laws gives a wave equation for E and B with propagation speed c = 1 / √(ε₀ × μ₀). Substituting the vacuum permittivity ε₀ = 8.854 × 10⁻¹² F/m and permeability μ₀ = 4π × 10⁻⁷ H/m gives c ≈ 2.998 × 10⁸ m/s — exactly the measured speed of light. Maxwell's 1865 insight that light is an EM wave was confirmed by Hertz's radio-wave experiments in 1887.

EM spectrum

The EM spectrum spans about 20 orders of magnitude in frequency, from ~1 Hz ULF radio to ~10²⁰ Hz gamma rays. All travel at c in vacuum, with wavelength λ = c / f. Visible light is a narrow band at 430–750 THz (400–700 nm); just below is infrared (heat lamps), just above is ultraviolet (sunburn). Microwaves (GHz) and radio waves (MHz) carry communications; X-rays (10¹⁶–10¹⁸ Hz) penetrate soft tissue; gamma rays (above 10¹⁸ Hz) come from nuclear reactions.

Faraday and Ampere laws

Faraday's law (a changing magnetic flux induces an EMF: ∮E·dl = -dΦ_B/dt) is the principle behind electric generators, microphones, and transformers. Ampère-Maxwell law (currents and changing electric fields create circulating magnetic fields: ∮B·dl = μ₀I + μ₀ε₀ dΦ_E/dt) is the principle behind electromagnets, motors, and antennas. The displacement-current term μ₀ε₀ dΦ_E/dt — Maxwell's correction — is what makes wave propagation possible; without it, Faraday + Ampère would predict standing fields, not traveling waves.

Common electromagnetic waves across the spectrum, computed from c = λf and E = hf.
SourceFrequencyWavelengthPhoton energyNotes
Power line (60 Hz)60 Hz5.0 × 10⁶ m (5,000 km)3.97 × 10⁻³² JContinental-scale wavelength
AM radio (1 MHz)1 × 10⁶ Hz300 m6.63 × 10⁻²⁸ JTower antennas
FM radio (100 MHz)1 × 10⁸ Hz3.0 m6.63 × 10⁻²⁶ JCar antenna length
Microwave oven (2.45 GHz)2.45 × 10⁹ Hz0.122 m1.62 × 10⁻²⁴ JWater molecule rotation
Visible green (5 × 10¹⁴ Hz)5 × 10¹⁴ Hz6.00 × 10⁻⁷ m (600 nm)3.31 × 10⁻¹⁹ J (2.07 eV)Eye sensitivity peak
X-ray (1 × 10¹⁸ Hz)1 × 10¹⁸ Hz3.00 × 10⁻¹⁰ m (0.3 nm)6.63 × 10⁻¹⁶ J (4.14 keV)Medical imaging
The displacement current was Maxwell's genius
Ampère's original law said only currents create magnetic fields. Maxwell noticed this is inconsistent — a charging capacitor has current in the wires but no current between the plates, yet a magnetic field exists there. He fixed this by adding the "displacement current" term μ₀ε₀ ∂E/∂t, which says a changing electric field also creates a magnetic field. That single addition is what makes wave propagation possible in vacuum. Without it, we'd have no light, no radio, no wireless communication — Maxwell's correction is arguably the most consequential single term in all of physics.

Authoritative References

Try our other free calculators

CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.

Maxwell Equation Target Range & Summary — Precision Web Tool