Waves
Wave Speed
How fast waves travel — depends on the medium, not the source
The speed of a wave depends on the medium's properties, NOT the source. Sound in air is ~343 m/s regardless of who produced it. Light in vacuum is exactly 299,792,458 m/s — the universal speed limit. Wave speed comes from a balance — restoring force divided by inertia. Faster restoring force or less inertia → faster wave. Critical for understanding sonic booms, light in materials, and seismology.
- Sound in air (20°C)343 m/s
- Light in vacuum299,792,458 m/s (exactly)
- Sound in water~1500 m/s
- Sound in steel~5,960 m/s
- String tension formulav = √(T/μ) — tension over linear density
- Mach numberSpeed/sound_speed; Mach 1 = sound speed
Interactive visualization
Press play, or step through manually. The visualization is yours to drive — try it before reading on.
Watch the 60-second explainer
A condensed visual walkthrough — narrated, captioned, under a minute.
Wave speed formulas
| Wave type | Speed formula | Notes |
|---|---|---|
| String wave | v = √(T/μ) | T = tension, μ = mass/length |
| Sound in gas | v = √(γRT/M) | R = gas const, M = molar mass |
| Sound in liquid | v = √(B/ρ) | B = bulk modulus |
| Sound in solid (long wave) | v = √(E/ρ) | E = Young's modulus |
| Light in vacuum | c = 1/√(ε₀μ₀) | = exactly 299,792,458 m/s |
| Light in medium | v = c/n | n = refractive index |
| Deep water surface wave | v = √(gL/2π) | L = wavelength |
| Shallow water | v = √(gh) | h = water depth |
| Seismic P-wave | v_P = √((K + 4G/3)/ρ) | Bulk + shear modulus |
| Seismic S-wave | v_S = √(G/ρ) | Shear modulus only |
Speeds in common media
| Wave/Medium | Speed |
|---|---|
| Sound in air (0°C) | 331 m/s |
| Sound in air (20°C) | 343 m/s |
| Sound in helium (20°C) | 1007 m/s |
| Sound in CO₂ (20°C) | 267 m/s |
| Sound in water (20°C) | 1482 m/s |
| Sound in seawater | 1531 m/s |
| Sound in iron | 5,120 m/s |
| Sound in diamond | 12,000 m/s |
| Light in vacuum | 299,792,458 m/s (c) |
| Light in water | 2.25 × 10⁸ m/s (c/1.33) |
| Light in glass | 2.0 × 10⁸ m/s (c/1.5) |
| Light in diamond | 1.24 × 10⁸ m/s (c/2.4) |
| Earthquake P-wave (rock) | ~6000 m/s |
| Earthquake S-wave | ~3500 m/s |
JavaScript — wave speed calculations
// String wave speed
function stringWaveSpeed(tension, linearDensity) {
return Math.sqrt(tension / linearDensity);
}
// Guitar string: T = 100 N, μ = 0.005 kg/m
console.log(`Guitar string speed: ${stringWaveSpeed(100, 0.005).toFixed(0)} m/s`); // ~141
// Sound speed in gas
function soundInGas(T_K, gamma, M_kg_per_mol) {
const R = 8.314;
return Math.sqrt(gamma * R * T_K / M_kg_per_mol);
}
console.log(`Sound in air at 20°C: ${soundInGas(293, 1.4, 0.029).toFixed(0)} m/s`); // ~343
console.log(`Sound in helium: ${soundInGas(293, 1.667, 0.004).toFixed(0)} m/s`); // ~1007
console.log(`Sound in xenon: ${soundInGas(293, 1.667, 0.131).toFixed(0)} m/s`); // ~178 (low!)
// Sound in liquid
function soundInLiquid(bulkModulus, density) {
return Math.sqrt(bulkModulus / density);
}
// Water at 20°C: B ≈ 2.2 GPa, ρ = 1000 kg/m³
console.log(`Sound in water: ${soundInLiquid(2.2e9, 1000).toFixed(0)} m/s`); // ~1483
// Sound in solid (longitudinal)
function soundInSolid(youngsModulus, density) {
return Math.sqrt(youngsModulus / density);
}
// Steel: E = 200 GPa, ρ = 7850 kg/m³
console.log(`Sound in steel: ${soundInSolid(200e9, 7850).toFixed(0)} m/s`); // ~5050
// Light in medium
const c = 3e8;
function lightSpeed(refractiveIndex) {
return c / refractiveIndex;
}
console.log(`Light in glass (n=1.5): ${(lightSpeed(1.5) / 1e8).toFixed(2)}e8 m/s`); // 2.00e8
// Mach number
function machNumber(speed, soundSpeed = 343) {
return speed / soundSpeed;
}
console.log(`Concorde at 2179 km/h: Mach ${machNumber(2179/3.6).toFixed(2)}`); // ~1.76
// Distance from lightning by sound vs light
function lightningDistance(timeBetweenFlashAndThunder) {
// Light travels essentially instantly. Sound at 343 m/s.
return timeBetweenFlashAndThunder * 343;
}
console.log(`5 seconds delay → ${lightningDistance(5)} m = ${(lightningDistance(5)/1000).toFixed(2)} km`);
// Note: rule of thumb is ~3 sec/km
// Tuning a guitar string
function guitarTension(L, mass, frequency) {
// For string of length L, mass m, fundamental f:
// λ = 2L → v = 2Lf → T = μv² where μ = m/L
const mu = mass / L;
const v = 2 * L * frequency;
return mu * v * v;
}
// 0.65 m string, 5 g mass, A4 = 440 Hz
console.log(`Guitar tension: ${guitarTension(0.65, 0.005, 440).toFixed(0)} N`); // ~647 N
Where wave speed matters
- Acoustics. Sonar (water sound speed), audio engineering (room dimensions vs sound speed), aircraft sonic booms.
- Music. Tuning instruments — wave speed in strings depends on tension. Length of organ pipes for desired pitch.
- Optics. Refraction (speed change at boundary), prisms (dispersion), fiber optics (signal speed).
- Telecommunications. Signal propagation delays (~1 ms per 300 km in fiber). Limits high-frequency trading, VR latency.
- Seismology. Earthquake wave timing reveals Earth's interior structure. P-S delay gives distance to epicenter.
- Astronomy. Light-travel-time → "look-back time"; we see distant objects as they were in the past.
- Aerospace. Mach number determines aerodynamic regime (subsonic, supersonic, hypersonic).
Common mistakes
- Thinking source speed adds to wave speed. A moving source DOESN'T speed up the wave; it changes the frequency observed (Doppler effect). Wave speed is medium property.
- Confusing wave speed with particle speed. A water wave moves at ~5 m/s, but water molecules move only a few cm. Wave speed is energy propagation; particle speed is local oscillation.
- Forgetting medium dependence. Sound speed varies with T, pressure, humidity, and medium. Use the right formula for the right medium.
- Treating refractive index as fixed. n varies with wavelength (dispersion). Different colors have different n in glass — that's how prisms work.
- Mixing speed and frequency. Pitch (frequency) is set by source. Speed is medium. Wavelength = speed/frequency, so it changes when sound enters water from air.
- Light slower than c "violates relativity". Light in matter (glass, water) IS slower than c. The "speed limit" is c in vacuum. In matter, light bounces off atoms (interactions), effectively slowing.
Frequently asked questions
Why does wave speed depend on the medium?
Wave speed is set by the balance between (1) restoring force per unit displacement and (2) inertia per unit length. For a string — v = √(T/μ) where T is tension and μ is mass per length. For sound — v = √(B/ρ) where B is bulk modulus (resistance to compression) and ρ is density. Stiffer/less dense → faster.
Why is light always 3×10⁸ m/s in vacuum?
It's a fundamental property of spacetime — combination of permittivity ε₀ and permeability μ₀ of vacuum. c = 1/√(ε₀μ₀). Einstein elevated this to a universal constant — same for all observers (postulate of special relativity). Light moves at this exact speed in vacuum, regardless of source motion.
How fast is sound in different media?
Air (20°C) — 343 m/s. Water — 1480 m/s. Iron — ~5,000 m/s. Diamond — 12,000 m/s. Sound is faster in stiffer, denser-but-stiff materials. In gases, depends on temperature (faster at higher T) and molecular weight (lighter molecules → faster). Helium → 972 m/s (high voice with helium balloons).
What's the Mach number?
Speed divided by sound speed. Mach 1 = sound speed (Mach 1 in air at sea level = 343 m/s). Mach 2 = twice sound speed. Subsonic (Mach < 1), transonic (~1), supersonic (1-5), hypersonic (> 5). Crossing Mach 1 produces sonic boom — pressure shock front.
How does refractive index relate to wave speed?
For light, v = c/n where n is refractive index. Vacuum n = 1; water n = 1.33; glass n = 1.5; diamond n = 2.4. Light slows in denser optical media. Refraction at boundaries arises from speed change. Total internal reflection happens when light tries to go from slow to fast medium at large angles.
What's dispersion?
Wave speed depending on frequency (or wavelength). In glass, blue light slower than red — that's why prisms separate colors. In air, sound speed is essentially independent of frequency (no dispersion) — that's why music plays correctly. Pulse spreading in fiber optics is dispersion-limited; engineers minimize this for high-speed data transmission.
How is wave speed related to medium properties?
For string — v = √(T/μ). For sound in air — v ≈ √(γRT/M) where γ is adiabatic index, R is gas constant, T is absolute T, M is molar mass. For sound in solid — v = √(E/ρ) where E is Young's modulus. For deep water waves — v = √(gL/2π). Each formula reveals which medium properties matter.