Speed of Sound Calculator
Calculate the speed of sound in air based on temperature. Uses the approximation v = 331.3 + 0.606 × T (°C) for dry air. Also shows the speed of sound in common materials like water, steel, and glass.
The speed of sound describes how fast acoustic waves travel through a medium. Unlike electromagnetic waves (which need no medium), sound is a mechanical compression wave — molecules bumping into each other and passing energy along. The speed depends on the medium's properties: stiffer and lighter media transmit sound faster.
In dry air at room temperature (20°C), sound travels at ~343 m/s (767 mph). This is famously slow compared to light, which is why you see lightning before hearing thunder. The 5-second rule: every 5 seconds between flash and thunder ≈ 1 mile distance (or every 3 seconds ≈ 1 km).
Air temperature strongly affects sound speed because warmer molecules move faster, transmitting pressure pulses more rapidly. A simple linear approximation: v = 331.3 + 0.606 × T(°C). Humidity has a small additional effect (sound travels ~0.4% faster in 100% humid air vs dry at the same temperature). Pressure has almost no effect at typical atmospheric conditions.
Sound in water (~1,500 m/s) is ~4.4× faster than in air. In steel (~5,960 m/s), it's ~17× faster. In diamond (~12,000 m/s), ~35× faster. This is why you can hear an approaching train by putting your ear to the rail long before you'd hear it through air.
The Mach number is the ratio of object speed to local sound speed. M = 1 at the speed of sound. Aircraft exceeding Mach 1 produce sonic booms — the compression of air waves into shock fronts.
Common applications: aircraft design, sonar systems (underwater), seismology (sound in rock layers), audio engineering (microphone placement, room acoustics), atmospheric science, ultrasonic technology, and any acoustic analysis.
Inputs
Results
Speed in Air
343.2 m/s
Speed (km/h)
1235.6 km/h
Speed (mph)
767.8 mph
Speed of Sound Results
| Parameter | Value |
|---|---|
| Temperature | 20°C (68.0°F, 293.15 K) |
| Speed in Air | 343.21 m/s |
| Speed in Air | 1235.6 km/h (767.8 mph) |
| Mach 1 at this temp | 343.21 m/s |
| Speed in Water (20°C) | 1,481 m/s |
| Speed in Steel | 5,960 m/s |
| Speed in Glass | 4,540 m/s |
| Speed in Wood (oak) | 3,850 m/s |
| Speed in Aluminum | 6,420 m/s |
| Formula | v = 331.3√(T_K / 273.15) |
Formula
How to use this calculator
- Enter air temperature in °C.
- Calculator returns speed of sound in m/s, km/h, mph.
- For other gases or materials, use specific values from tables.
- For Mach number: divide object speed by sound speed at that altitude/conditions.
- For sound distance: distance = speed × time. Thunder/lightning: 5 s ≈ 1 mile, 3 s ≈ 1 km.
- Humidity changes are small (~0.3% max); temperature dominates.
Worked examples
Concert hall acoustics
**Scenario:** Symphony hall at 20°C. Concert pitch A (440 Hz) wavelength? **Calculation:** v = 343 m/s. λ = v/f = 343/440 ≈ 0.78 m (78 cm). **Result:** A4 wavelength is 78 cm. Sub-bass frequencies (40 Hz) have wavelength ~8.5 m — comparable to hall dimensions, creating standing wave resonances. Architects design halls to minimize problematic standing waves and balance frequency response.
Mach 2 fighter at altitude
**Scenario:** Fighter jet at Mach 2 at 11 km altitude (T = -56.5°C). Actual speed? **Calculation:** v_sound = 331.3 × √(1 + (-56.5)/273.15) = 331.3 × √(0.7931) = 331.3 × 0.8906 ≈ 295.0 m/s. v_jet = 2 × 295 = 590 m/s ≈ 2,124 km/h. **Result:** ~2,124 km/h (1,320 mph). At sea level, Mach 2 would be 686 m/s (2,470 km/h) — fighter at altitude moves slower in absolute terms but same Mach number. Mach is normalized to local conditions, which is more physically meaningful for aerodynamics.
Estimating storm distance
**Scenario:** Lightning seen, thunder heard 8 seconds later. **Calculation:** Distance = 343 × 8 = 2,744 m ≈ 1.7 miles ≈ 2.7 km. **Result:** Storm ~1.7 miles (2.7 km) away. Quick rule: divide seconds by 5 (miles) or 3 (km). At 8 seconds: 1.6 miles or 2.7 km. If thunder count decreases, storm approaching; if increases, departing. Below 5 seconds = within 1 mile = unsafe; seek shelter.
When to use this calculator
**Use speed of sound for:**
- **Acoustics**: room design, speaker placement, microphone setup. - **Aviation**: Mach number, sonic boom analysis. - **Sonar**: ranging in air or water. - **Meteorology**: thunder timing, atmospheric profiling. - **Underwater acoustics**: communication, navigation. - **Seismology**: Earth's interior from wave travel times. - **Industrial NDT**: ultrasonic flaw detection in metals. - **Medical ultrasound**: imaging through soft tissue (~1,540 m/s).
**Speed of sound key dependencies:**
- **Temperature**: dominant in gases. v ≈ 331 + 0.6T (°C). - **Medium type**: gas, liquid, solid all very different. - **Humidity** (air): small effect (+0.3% max). - **Pressure**: negligible for ideal gases. - **Direction**: usually isotropic in gases/liquids, anisotropic in some solids.
**Mach number in aviation:**
- **Mach < 0.3**: incompressible flow (most subsonic flight). - **Mach 0.3-0.8**: subsonic, compressibility starts mattering. - **Mach 0.8-1.2**: transonic — most complex aerodynamics. - **Mach 1-3**: supersonic. - **Mach > 5**: hypersonic, shock waves dominant.
Commercial jets: Mach 0.78-0.85 (sweet spot for fuel efficiency). Concorde (retired): Mach 2.04. SR-71 Blackbird: Mach 3.3+. Hypersonic experimental (X-15, X-43): Mach 5-10.
**Why we hear thunder later:**
Light reaches eye essentially instantly (300,000 km/s, indistinguishable from immediate). Sound: ~343 m/s — measurable delay.
1 km away: 2.9 second delay. 5 km away: ~15 second delay. 10 km away: ~30 second delay.
Beyond ~25 km, sound usually absorbed by atmosphere before arriving.
**Common applications:**
- **Audio equipment design**: room modes, speaker positioning. - **Cinema sound**: surround speakers optimized for delay/level. - **Stadium/auditorium acoustics**: avoiding echo and dead spots. - **Aircraft engines**: blade tip speed kept below local sound speed for efficiency. - **Race cars (LMP, F1)**: airbox optimization for sound transmission. - **Ultrasonic cleaning**: ~40 kHz typical frequency. - **Medical ultrasound**: 2-15 MHz for tissue imaging. - **Industrial sonar**: 30-300 kHz fish finders to oil prospecting.
**Anechoic chambers:**
Free from sound reflections. Used for: - Microphone calibration. - Speaker testing. - Aircraft noise measurement. - Sound-source localization research.
Quietest place on Earth: Microsoft anechoic chamber at -20.3 dBA.
**Wavelength and structure size:**
For sound to interact strongly with object, λ ≈ size.
| Frequency | Wavelength | Comparable size | |---|---|---| | 20 Hz | 17 m | building | | 200 Hz | 1.7 m | adult human | | 2 kHz | 17 cm | hand | | 20 kHz | 1.7 cm | finger |
This determines why subwoofers (low f) are insensitive to position and tweeters (high f) very directional.
**Underwater communication:**
Sound is the only practical signal underwater (radio absorbed quickly). - Whales: very low f (10-1,000 Hz) travels thousands of km. - Dolphins: 20-150 kHz for echolocation, ~5 km range. - SOFAR channel: low-loss sound duct at ~1,000 m depth. - Submarine sonar: 1-50 kHz active, broader passive listening.
**Software:**
- **MATLAB Acoustic Toolbox**: wave propagation. - **COMSOL Acoustic Module**: complex simulation. - **EASE / Odeon**: architectural acoustics. - **Underwater sonar**: NOAA, US Navy software.
**Pitfalls:**
- **Using sea-level sound speed at altitude**: temperature drops with altitude. - **Forgetting medium**: same frequency in water has different λ than in air. - **Helium voice misconception**: voice frequency doesn't change, just resonance. - **Mixing units**: m/s vs ft/s vs mph vs Mach. - **Sonic boom**: not just at moment of breaking sound barrier — continuously trails supersonic aircraft. - **Sound in solids**: longitudinal vs shear wave speeds differ. - **Pressure correction**: usually unnecessary for air but matters in deep water/high-altitude.
Common mistakes to avoid
- Using "343 m/s" for all conditions (varies significantly with temperature).
- Forgetting Mach number depends on local conditions (altitude).
- Confusing speed of sound in air with other media (water 4× faster, steel 17×).
- Thinking helium makes vocal cords vibrate faster (it changes resonance, not vocal cord frequency).
- Using sea-level sound speed for high-altitude calculations.
- Ignoring humidity in precision audio work.
- Confusing speed of sound with intensity falloff (different physics).
- Mixing units (m/s, ft/s, mph, knots, Mach).