PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

Related simulators

Similar topics nearby (including related fields) — or browse all 48 in Engineering.

View category →
NewUniversity / research

Vibration Isolation Transmissibility

Launch Simulator

SDOF base-excitation isolator: transmissibility T(r,ζ), resonance peak, phase lag, and the isolation region above r = √2.

NewUniversity / research

ADC / DAC (Sampling)

Launch Simulator

Sine → samples → quantization → ZOH; Nyquist and optional aliasing demo.

NewUniversity / research

Bode & Nyquist from Pole–Zero Map

Launch Simulator

Click the s-plane to place real or complex-conjugate poles (●) and zeros (×); G(s)=K∏(s−z)/∏(s−p). Live Bode magnitude/phase and Nyquist plot with −1 point; phase and gain margins from principal crossings (teaching heuristics).

NewUniversity / research

Root Locus: 1 + K·G(s) = 0

Launch Simulator

Same pole–zero plant editor as the Bode/Nyquist map: trace closed-loop poles as K sweeps log-spaced, asymptotes and real-axis locus sketch, Durand–Kerner roots at the current K; characteristic D(s)+K g₀ N₀(s)=0.

NewSchool

FFT Magnitude Spectrum

Launch Simulator

Paint or preset a 256-point signal; radix-2 FFT shows |X[k]| vs bin (DC to Nyquist).

NewUniversity / research

Fatigue S-N Curve + Miner Rule

Launch Simulator

Basquin S-N curve with optional endurance limit, three cyclic load blocks, and Palmgren-Miner cumulative damage D = Σ n_i/N_i.

PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Engineering/AM / FM Modulation

AM / FM Modulation

Carrier + message: AM envelope vs FM phase; waveform and DFT spectrum snapshot.

Modulation

AM multiplies the carrier by a slow message envelope; FM shifts instantaneous phase. Short window → visible spectral leakage. Spectrum autoscale ignores the DC bin so sidebands stay readable. m > 100% is overmodulation (envelope can go negative).

4000 Hz
280 Hz
65 %

Measured values

Sample rate (model)32000 Hz
Nyquist frequency16000 Hz
Sidebands near4000 ± 280 Hz

About this model

Amplitude modulation (AM) impresses a message onto a high-frequency carrier by varying the envelope of the RF waveform: in the canonical teaching form s(t) = [1 + m cos(ω_m t)] cos(ω_c t), small m keeps sidebands symmetric about f_c at f_c ± f_m (ideal sinusoidal message). Frequency modulation (FM) holds amplitude nearly fixed and encodes information in instantaneous frequency, modeled here as s(t) = cos(ω_c t + β sin(ω_m t)) with modulation index β; the spectrum spreads into Bessel sidebands, and Carson’s rule 2(β+1)f_m is a common bandwidth estimate. This page uses a short fixed window of samples and a 512-point DFT magnitude with log-style vertical scaling for readability—spectral leakage and finite window effects are visible and are part of the teaching point when comparing to textbook line spectra. Nyquist for the internal sample rate limits how high you can set f_c before aliasing appears in the plot.

Who it's for: Introductory signals & systems, communications, or physics labs linking time-domain waveforms to frequency-domain intuition.

Key terms

  • Amplitude modulation
  • Frequency modulation
  • Carrier
  • Modulating signal
  • Sideband
  • Modulation index
  • DFT / FFT
  • Carson bandwidth rule
  • Nyquist frequency

How it works

Amplitude modulation (AM) scales the carrier by a slowly varying envelope (1 + m cos ω_m t). Frequency modulation (FM) keeps amplitude roughly constant but drives instantaneous frequency through phase β sin ω_m t. The plots use a fixed time window and a DFT magnitude snapshot—useful for seeing carrier and sidebands, not for broadcast-standard masking or leakage-free spectra.

Key equations

AM: s(t) = [1 + m cos(ω_m t)] cos(ω_c t)
FM: s(t) = cos(ω_c t + β sin(ω_m t))

Frequently asked questions

Why don’t the spectrum lines look infinitely sharp?
A finite time window convolves the true spectrum with a sinc-like kernel, spreading energy across bins. This simulator does not apply windowing beyond the rectangular capture, so leakage is expected.
What happens if f_c is set close to Nyquist?
The discrete model folds energy around f_s/2. Raise f_c too high and aliases appear in the plotted band—use it as a Nyquist demo.
Is Carson’s rule exact?
No—it is a practical rule of thumb for sinusoidal FM. Real audio FM uses much richer messages and bandwidth regulations; treat the number as pedagogical.
Why separate sliders for AM depth and FM β?
They play analogous roles (how strongly the message affects the waveform) but enter different equations; keeping both avoids confusion when switching modes.