Sine Waves, Frequency and Period
The sine wave is the most fundamental shape in all of electronics. Every AC signal, from the 50 or 60 Hz mains supply to the audio from a guitar amplifier and the 2.4 GHz signal from a Wi-Fi router, either is a sine wave or can be built from a combination of sine waves. Understanding its characteristics is essential before you can understand any AC circuit, filter or amplifier.
What Is a Sine Wave
A sine wave is the graph of the mathematical sine function. It starts at zero, rises smoothly to a maximum (positive peak), falls back through zero, continues to a minimum (negative peak), then returns to zero — completing one cycle. This is exactly the shape of the voltage produced by a rotating generator. It is also the shape of the voltage across a capacitor or inductor driven by a single-frequency AC source.
Any periodic waveform — a square wave, sawtooth or triangle wave — can be decomposed into a sum of sine waves at different frequencies. This is the basis of Fourier analysis, and it is why the sine wave is treated as the fundamental building block of all AC signals.
A labelled sine wave showing amplitude, period (T), peak voltage (Vpeak), peak-to-peak voltage and RMS voltage.
View LargerAmplitude and Peak Values
The amplitude of a sine wave is the maximum displacement from zero. This is often called the peak value. Several related terms are used in electronics:
- Peak voltage (Vpeak or Vmax): the maximum positive or negative voltage reached in one cycle.
- Peak-to-peak voltage (Vpp): the total swing from the most negative to the most positive value. Vpp = 2 × Vpeak.
Period and Frequency
Period (T) is the time taken to complete one full cycle. It is measured in seconds (s).
- A 50 Hz line voltage wave has T = 1/50 = 0.02 s = 20 ms.
- A 16 MHz microcontroller clock has T = 1/16,000,000 = 62.5 ns (nanoseconds).
Frequency (f) is the number of complete cycles per second. The unit is the hertz (Hz), named after Heinrich Hertz (1857–1894), who first demonstrated the existence of radio waves. 1 Hz means one cycle per second.
Common frequency prefixes used in electronics:
- kHz — kilohertz — 1,000 Hz
- MHz — megahertz — 1,000,000 Hz
- GHz — gigahertz — 1,000,000,000 Hz
High-frequency signal (left) with short period versus low-frequency signal (right) with long period. Frequency and period are reciprocals.
View LargerThe f = 1/T Relationship
Frequency and period are reciprocals of each other:
Working through the key examples you will encounter throughout this course:
| Signal | Frequency | Period |
|---|---|---|
| UK utility power | 50 Hz | T = 1/50 = 0.02 s = 20 ms |
| Audio tone | 1 kHz | T = 1/1,000 = 0.001 s = 1 ms |
| 16 MHz microcontroller clock | 16 MHz | T = 1/16,000,000 = 62.5 ns |
| 2.4 GHz Wi-Fi | 2.4 GHz | T = 1/2,400,000,000 ≈ 417 ps |
Frequency/Period Calculator
Frequency ↔ Period Converter
Enter a frequency to calculate the period, or enter a period to calculate the frequency. Use f = 1/T and T = 1/f.
The RMS Value
RMS stands for Root Mean Square. It is the effective value of the AC signal — the equivalent DC voltage that would deliver the same power to a resistive load. The process: square the waveform at every instant, average those squared values over a full cycle, then take the square root of that average.
For a pure sine wave, the result is:
Vpeak = Vrms × √2 ≈ 1.414 × Vrms
Why this matters in practice:
- When a power outlet is rated "120 V AC" or "230 V AC", that is the RMS value. The actual peak voltage is 170 V or 325 V respectively.
- A multimeter set to AC voltage mode always displays the RMS value (assuming a pure sine wave).
- Power formulas — P = V²/R and P = VI — use RMS values when applied to AC circuits. Using peak values instead is a common mistake.
Sine Waves in Practice
The sine wave appears throughout everyday electronics in both obvious and less obvious ways:
- Mains power: the voltage at a wall socket is a sine wave at 50 or 60 Hz. Transformers, motors and the input stages of power supplies are all designed around that shape, and a distorted mains waveform (from cheap inverters, for example) can make some equipment run hot or hum.
- Audio: when you speak into a microphone or pluck a guitar string, the signal is a complex mixture of sine waves at different frequencies. A pure test tone, such as the 1 kHz tone used to test amplifiers, is a single sine wave. The cleaner an amplifier reproduces it, the lower its distortion.
- Power supply ripple: a poorly filtered power supply superimposes an unwanted waveform (at 100 Hz for full-wave rectified 50 Hz line voltage, or 120 Hz for 60 Hz line voltage) on the DC rail. This ripple can be heard as hum in an audio amplifier and can upset sensitive measurements.
- Oscillators and signal generators: a function generator on the bench, the crystal oscillator that keeps a quartz clock accurate, and the oscillator inside an ultrasonic sensor all generate sine waves (or waves built from them) at a precise frequency. The purity of that sine wave determines how clean the signal is.
- Hearing and frequency response: human hearing covers roughly 20 Hz to 20 kHz, and the voice sits mostly between about 80 Hz and 8 kHz. Speakers, headphones and amplifiers are specified by how evenly they reproduce sine waves across that range. Ultrasonic frequencies (above 20 kHz) and the high frequencies used by wireless devices are far above the range of hearing.
Frequently Asked Questions
What is the difference between frequency and pitch?
Pitch is the subjective perception of frequency in sound. A higher frequency produces a higher pitch. The two terms are often used interchangeably, but frequency is the objective, measurable quantity (cycles per second), while pitch is the human perceptual experience. In electronics, we always use frequency. Middle A on a piano is 440 Hz. The lowest note on a bass guitar is about 41 Hz. The highest frequency most adults can hear is about 15–20 kHz. Ultrasonic and higher frequencies are far above the range of human hearing, which is why you cannot hear the 40 kHz pulses from an ultrasonic distance sensor.
Why are sine waves preferred over square waves for power and signals?
Sine waves are used because they contain energy at only one frequency. A square wave contains the fundamental frequency plus all odd harmonics (3rd, 5th, 7th, and so on) at decreasing amplitudes. Those harmonics can cause interference to nearby equipment, extra heating in motors and transformers, and audible buzz in audio circuits. That is why good inverters produce a pure sine wave rather than a "modified sine wave", and why equipment that does switch sharply (such as switching power supplies and digital circuits) needs filtering to keep its harmonics in check.
What is angular frequency?
Angular frequency (ω, omega) expresses frequency in radians per second rather than cycles per second: ω = 2πf. One complete cycle equals 2π radians (360°). At 50 Hz: ω = 2π × 50 = 314 rad/s. Angular frequency appears in the mathematical description of sine waves: v(t) = Vpeak × sin(ωt + φ), where φ is the phase angle. You will encounter ω throughout this course in filter equations, resonance formulas and impedance calculations.
What is harmonic distortion?
An ideal amplifier or oscillator produces a perfect sine wave output. Real circuits are not perfectly linear and introduce small amounts of signal at harmonic frequencies (2×, 3×, 4× the fundamental). This harmonic distortion is expressed as a percentage of the fundamental or in dB below it. A 1% total harmonic distortion (THD) amplifier is considered quite clean for general audio use, and good hi-fi amplifiers reach 0.01% or better. Electromagnetic compatibility (EMC) regulations also limit the harmonics that equipment may put back onto the mains supply. Well-designed circuits minimize distortion; filters remove what remains.
Test Your Knowledge
Answer the questions below to check your understanding. Every answer can be found in the lesson above.