AM / FM Modulation

Amplitude and frequency modulation — carrier, message and modulated waveforms with live spectrum

Message Signal m(t) = cos(2π·fm·t)
Carrier Signal c(t) = Ac·cos(2π·fc·t)
AM Output s(t) = Ac(1+m·msg)·cos(ωct)
Frequency Spectrum |S(f)| — sidebands

Mode

Message
Carrier
Modulated

Parameters

Live Metrics

200
fc (Hz)
20
fm (Hz)
Bandwidth
0.80
Mod. index

Formula

AM: s(t) = Ac[1 + m·cos(ωmt)] · cos(ωct)
Sidebands at fc±fm, amplitude m/2.
Bandwidth = 2·fm

About AM/FM Modulation

What It Demonstrates

In AM (Amplitude Modulation) the carrier's amplitude varies in proportion to the message signal — the classic technique used in medium-wave radio broadcasting. In FM (Frequency Modulation) the carrier's instantaneous frequency swings above and below fc by an amount proportional to the message, giving better noise immunity and the richer audio of FM radio (88–108 MHz).

How to Use

Switch between AM and FM with the mode buttons. Drag the carrier and message frequency sliders to separate or overlap the waveforms. The modulation index slider controls depth: in AM, m > 1 causes over-modulation (distortion); in FM, larger β produces more sidebands. Watch the frequency spectrum update — sidebands appear at fc ± n·fm.

Did You Know?

Edwin Armstrong invented FM radio in 1933, patenting it against fierce opposition from RCA. FM's bandwidth is 200 kHz per channel — 100× wider than AM — yet it rejects static almost completely, because noise adds amplitude (AM-like) not frequency. The BBC switched its national networks to FM in the 1970s; AM transmitters are still used today for long-distance coverage via ionospheric sky-wave propagation.

About AM/FM Modulation Simulator

This simulation models two fundamental techniques of analogue radio communication: Amplitude Modulation (AM) and Frequency Modulation (FM). In AM, the carrier wave's amplitude is varied in proportion to the message signal, while in FM the carrier's instantaneous frequency deviates above and below its centre frequency. Users can observe the carrier, message and modulated waveforms simultaneously alongside a live frequency-domain spectrum showing sidebands.

AM broadcasting dates to the early 1900s and still covers long distances via ionospheric sky-wave propagation. FM, patented by Edwin Armstrong in 1933, trades bandwidth for dramatically better noise immunity and is the basis of modern FM radio, stereo hi-fi, and many wireless data links.

Frequently Asked Questions

What is amplitude modulation (AM)?

Amplitude modulation is a technique in which the amplitude of a high-frequency carrier wave is varied in proportion to a lower-frequency message signal. The carrier frequency remains constant while its peak amplitude rises and falls, encoding the message as an envelope around the carrier. The modulated signal can be expressed as s(t) = Ac[1 + m·cos(2πfmt)]·cos(2πfct), where m is the modulation index.

What is frequency modulation (FM) and how does it differ from AM?

Frequency modulation varies the instantaneous frequency of the carrier rather than its amplitude; the carrier's amplitude stays constant throughout. The FM signal is expressed as s(t) = Ac·cos(2πfct + β·sin(2πfmt)), where β is the modulation index (ratio of frequency deviation to message frequency). This makes FM far more resistant to amplitude-based noise such as electrical interference, at the cost of occupying a wider bandwidth than AM.

How do I use this simulation to see AM and FM sidebands?

Select AM or FM using the mode buttons at the top of the controls panel. Adjust the carrier frequency fc and message frequency fm sliders to set the signal parameters, then watch the Frequency Spectrum canvas update in real time. In AM mode you will see one sideband pair at fc ± fm; raising the modulation index slider increases the sideband amplitude. In FM mode, increasing the modulation index β generates progressively more sideband pairs, each weighted by Bessel functions Jn(β).

What is the modulation index and why does it matter?

The modulation index m (AM) or β (FM) quantifies the depth or extent of modulation. In AM, m = 1 corresponds to 100% modulation — the amplitude just touches zero on negative message peaks — and values above 1 cause over-modulation, introducing distortion sidebands at fc ± 2fm, 3fm, etc. In FM, β = Δf / fm determines how many significant sidebands exist: at β = 0.5 only a few sidebands matter, but at β = 5 energy spreads across many pairs, each governed by the Bessel function Jn(β) — the FM spectrum becomes rich and wide.

How is FM broadcast radio bandwidth calculated?

Engineers use Carson's rule to estimate the 98%-power bandwidth of an FM signal: BW ≈ 2(β + 1)fm. Broadcast FM stations use a maximum frequency deviation of Δf = 75 kHz and audio up to fm = 15 kHz, giving β = 5 and BW ≈ 2×6×15 kHz = 180 kHz per channel. Stations are spaced 200 kHz apart in most regions (100 kHz in the US), keeping adjacent channels from overlapping. This simulator computes the same formula live as you drag the sliders.

Why is FM less noisy than AM?

Most natural and electrical noise acts by randomly altering signal amplitude, which is exactly what AM uses to encode information; the receiver cannot distinguish noise from the intended message. FM encodes information in frequency, so any amplitude variations introduced by noise are simply stripped away by a limiter stage in the FM receiver before demodulation. This noise rejection property, called the FM capture effect, is why FM audio sounds cleaner than AM even at the same transmitter power, though it only applies once the signal exceeds a threshold above the noise floor.

Who invented FM radio and when?

Edwin Howard Armstrong, an American electrical engineer, invented wideband FM radio and filed his key patent in 1933. He built the first experimental FM station (W2XMN in Alpine, New Jersey) in 1939 and demonstrated dramatically superior audio quality compared to AM. His work faced fierce opposition from RCA, whose AM broadcasting empire would be threatened, and from David Sarnoff, despite Armstrong's earlier collaboration with him. Armstrong died in 1954 without seeing FM radio achieve its commercial dominance; FM surpassed AM in US radio listenership during the 1970s-1980s.

What are sidebands and why do they appear in modulated signals?

Sidebands are additional frequency components created whenever two sinusoids interact through modulation. Mathematically, multiplying the carrier cos(2πfct) by the message cos(2πfmt) produces sum and difference frequencies at fc+fm and fc-fm via the product-to-sum identity. FM generates infinitely many sidebands in principle, but only those with Bessel coefficient |Jn(β)| > 0.01 carry significant power. Sidebands are both the mechanism by which a receiver extracts the original message and the reason modulated signals occupy more bandwidth than a pure carrier.

How is AM/FM modulation used in engineering today?

AM remains in use for medium-wave and short-wave broadcasting because sky-wave propagation enables continent-spanning coverage from a single transmitter, and because simple envelope-detector receivers require minimal circuitry. FM is used for high-fidelity audio broadcasting (88–108 MHz), two-way radio communications, analogue TV audio subcarriers, and as the basis of many wireless sensor and telemetry links. FM principles also underpin frequency-shift keying (FSK) and Gaussian minimum-shift keying (GMSK), which transmit digital data in Bluetooth, GSM, and RFID systems.

What advanced modulation schemes are built on AM and FM concepts?

Modern digital communications extend these classic techniques into schemes such as quadrature amplitude modulation (QAM), which simultaneously varies both amplitude and phase to encode multiple bits per symbol, achieving high spectral efficiency in Wi-Fi (802.11ax uses 1024-QAM) and 5G NR. OFDM (Orthogonal Frequency Division Multiplexing) combines hundreds of narrow AM subcarriers to handle multipath fading. Direct digital synthesis (DDS) chips generate software-defined AM or FM signals with programmable parameters, enabling the software-defined radio (SDR) platforms used in research, satellite communications, and spectrum monitoring today.

About this simulation

This tool draws the three classic signals of analogue radio side by side — the message, the carrier, and the modulated output — plus a live frequency spectrum. In AM mode it computes s(t) = Ac(1 + m·cos ωmt)·cos ωct, so the carrier amplitude tracks the message. In FM mode the carrier phase carries the message, giving constant-amplitude but frequency-swinging output. The spectrum shows AM sidebands at fc ± fm and FM sidebands weighted by Bessel functions Jn(β).

🔬 What it shows

Four synchronised canvases: a cosine message, a cosine carrier, the AM or FM modulated waveform (with its envelope drawn in AM), and a frequency-domain spectrum. AM places a carrier line plus two sidebands of amplitude m/2; FM uses a Bessel-function expansion Jn(β) to position and scale up to eight sideband pairs.

🎮 How to use

Use the AM and FM tabs to switch mode. Three sliders set carrier frequency fc (100–600 Hz), message frequency fm (5–80 Hz) and the modulation index — m up to 1.5 in AM, or β up to 5 in FM. Live metrics report fc, fm, the index and the estimated bandwidth, which updates as you drag.

💡 Did you know?

FM bandwidth follows Carson's rule, BW ≈ 2(β + 1)fm, which is exactly the formula this simulation uses. Because FM theoretically produces infinitely many sidebands, only those carrying significant energy — set by the Bessel terms — are counted as the usable bandwidth.

Frequently asked questions

What is the difference between AM and FM?

In amplitude modulation the carrier's amplitude varies in proportion to the message while its frequency stays fixed, so the message rides as an envelope. In frequency modulation the amplitude is constant and the carrier's instantaneous frequency swings above and below fc instead. You can toggle between the two with the AM and FM tabs and watch the same message produce very different output waveforms.

What does the modulation index control?

In AM the index m sets the depth of amplitude variation: m = 0 gives a pure carrier and m = 1 gives 100 per cent modulation. Values above 1, available up to 1.5 on the slider, cause over-modulation and extra distortion lines appear in the spectrum. In FM the same slider becomes β, the ratio of frequency deviation to message frequency, and larger β spreads energy into more sidebands.

Why do sidebands appear in the spectrum?

Multiplying or phase-modulating two sinusoids creates new frequency components offset from the carrier. AM produces a single pair at fc ± fm, each with amplitude m/2. FM produces many pairs at fc ± n·fm, and the simulation scales each one by the Bessel function Jn(β), which is why the FM spectrum grows richer as you raise β.

How is the displayed bandwidth calculated?

For AM the bandwidth is simply 2·fm, twice the message frequency, because only one sideband pair carries the signal. For FM the metric uses Carson's rule, 2(β + 1)fm, an established engineering estimate of the band that holds about 98 per cent of the signal power. Both update instantly as you move the sliders.

Is this simulation physically accurate?

The waveform and spectrum equations are textbook-correct: the AM envelope, the FM phase integral and the Bessel-weighted FM sidebands all follow standard communication theory. The frequencies are shown in hundreds of hertz purely for clear on-screen display, whereas real broadcast carriers sit at hundreds of kilohertz for AM and tens of megahertz for FM. The relationships between the signals, however, are exactly the same at any scale.