Logo

MonoCalc

/

Speed of Sound Calculator

Physics
Enter temperature, and optionally humidity, pressure and the gas. Everything else on the page follows from the speed this produces.

Linear approximation

c = 331.3 + 0.606 · T_C

The classroom shortcut. Air only, accurate to about 0.1 % between −20 °C and 50 °C, and quick enough to do in your head.

Ideal gas — √(γRT/M)

Active

c = √(γ · R · T / M)

The real thermodynamic relation. Works for any gas, shows why pressure drops out, and is the default here.

Humid air — Cramer mixture

c = √(γ_mix · R · T / M_mix)

Adds water vapour and CO₂ to the mixture. Air only, and the correction is worth roughly 0.1–0.4 % at high humidity.

Conditions

The single variable that dominates the answer. Must be above absolute zero.
Only the humid-air model reads this field. Switch models above to enable it.
Does not change the ideal-gas speed at all — it only sets the vapour split and the air density.
Diatomic mixture, 78 % N₂ / 21 % O₂ / 1 % Ar. The default for every acoustics and aviation calculation.
Drag to watch the speed, the wavelength and the chart marker move together.

Companion quantities

For the wavelength λ = c/f. Leave blank to skip.
For the time of flight t = d/c and the echo round trip.
0–10.

Quick tones:

The condition behind the familiar 343 m/s.
Speed of sound — Air, 20.000 °C
343.237 m/s
Mach 1 at these conditions
343.237 m/s
Change from 0 °C
+11.915 m/s

Model: Ideal gas — √(γRT/M) c = √(γ · R · T / M)

Gas properties used: γ = 1.400, M = 28.964 g/mol

Thunder rule of thumb: about 2.913 s of delay per kilometre, or 4.689 s per mile, between the flash and the bang.

For reference, the site's fixed Mach 1 of 343 m/s corresponds to air at about 19.6 °C.

One front every 3.50 s of animation — the period is inversely proportional to the 343.2 m/s result.
Humidity is being ignored by this model
You entered 50 % relative humidity, but only the humid-air model uses it. Switching models would change the answer by 0.63 m/s here.
Why pressure is absent from the answer
Pressure cancels out of the ideal-gas result. Density rises with pressure, but so does the restoring stiffness γp, and c = √(γp/ρ) leaves only the temperature dependence. Pressure matters here solely because it sets how much water vapour a given relative humidity represents.

How far the shortcut drifts from the real relation

ModelSpeedDifference vs √(γRT/M)

Linear approximation

343.420 m/s+0.183 m/s (0.053 %)

Ideal gas — √(γRT/M)

In use
343.237 m/s+0.000 m/s (0.000 %)

Humid air — Cramer mixture

343.866 m/s+0.630 m/s (0.183 %)
Why humid air is the faster air
Humid air is faster because water vapour is lighter than the nitrogen and oxygen it displaces: M_mix falls, and c goes as 1/√M. The effect is small — under 0.5 % even in tropical conditions — but it is the opposite sign to most people's intuition.

Speed against temperature

293312332351370-50 °C-25 °C0 °C25 °C50 °CSolid: dry gas. Dashed: the same gas carrying water vapour. Vertical axis in m/s.
TemperatureDryHumid

-50 °C

299.466 m/s299.467 m/s

-40 °C

306.102 m/s306.107 m/s

-30 °C

312.598 m/s312.610 m/s

-20 °C

318.961 m/s318.993 m/s

-10 °C

325.200 m/s325.273 m/s

0 °C

331.321 m/s331.480 m/s

10 °C

337.332 m/s337.656 m/s

20.00 °C

You
343.237 m/s343.866 m/s

30 °C

349.042 m/s350.208 m/s

40 °C

354.752 m/s356.827 m/s

50 °C

360.372 m/s363.934 m/s

Wavelength, flight time and echo

Wavelength at 440.000 Hz
0.780 m
One-way travel time
0.991 s
Echo round trip
1.981 s

Wavelength λ

780.1 mm

A doorway (2 m)

0.390 × this long

Emitt = 0Arrives after 340.000 m990.6 msEcho returns1.981 s
Ultrasonic sensors measure the round trip
An HC-SR04-style sensor times the echo, so the distance is half the flight path: d = c · t / 2. Using the fixed 343 m/s instead of the temperature-corrected value costs about 0.17 % per degree of error — over 4 m that is roughly 7 mm for every 10 °C you are out.

The same 20.000 °C, different gases

Bars are proportional to speed. γ and M both matter: argon has helium's high γ but ten times the molar mass, and it ends up slower than air.

Hydrogen (H₂)

1305.688 m/s · 3.80× air

Helium (He)

1007.431 m/s · 2.94× air

Methane (CH₄)

445.107 m/s · 1.30× air

Water vapour (H₂O)

424.197 m/s · 1.24× air

Nitrogen (N₂)

349.014 m/s · 1.02× air

Air (dry, standard composition)

Selected

343.237 m/s · 1.00× air

Oxygen (O₂)

325.974 m/s · 0.95× air

Argon (Ar)

318.889 m/s · 0.93× air

Carbon dioxide (CO₂)

267.187 m/s · 0.78× air

Derived air state

Density ρ = pM/(RT)
1.204 kg/m³
Acoustic impedance Z = ρc
413.286 Pa·s/m
Absolute temperature
293.150 K
Pressure used
101.325 kPa
Pressure cancels out
Pressure cancels out of the ideal-gas result. Density rises with pressure, but so does the restoring stiffness γp, and c = √(γp/ρ) leaves only the temperature dependence. Pressure matters here solely because it sets how much water vapour a given relative humidity represents.

Step by step

Every figure below is carried at full double precision; rounding happens only where it is displayed.

Formula

c = √(γ · R · T / M)

Absolute temperature

T = 20 °C + 273.15 = 293.15 K

Substitute

γRT/M = 1.4 × 8.314462618 × 293.15 / 0.0289644 = 117811.47 m²/s²

Square root

c = √117811.47 = 343.23676 m/s

Air state

ρ = pM/(RT) = 101325 × 0.0289644 / (8.3144626 × 293.15) = 1.204085 kg/m³; Z = ρc = 413.2862 Pa·s/m

Wavelength

λ = c/f = 343.23676 / 440 = 0.7800835 m

Time of flight

t = d/c = 340 / 343.23676 = 0.9905699 s one way, 1.98114 s for an echo

Sound speed in other media

Stiffness beats density. Steel is roughly 6,500 times denser than air, yet sound travels 17 times faster in it, because its bulk modulus is larger by a far bigger factor.

MediumSpeedNote
Air at 20 °C343.2 m/sThe everyday baseline.
Helium at 20 °C1,007 m/sLight and monatomic.
Fresh water at 20 °C1,482 m/sSonar's medium.
Seawater at 20 °C1,522 m/sSalinity adds ~40 m/s.
Wood (oak, along grain)3,850 m/sHighly directional.
Concrete3,200 m/sUsed in ultrasonic testing.
Steel5,960 m/sStiffness dominates density.
Diamond12,000 m/sThe stiffest common solid.

Figures for liquids and solids are longitudinal bulk values at ordinary temperature and are indicative — alloy, grain direction and porosity all move them by several per cent.

About This Tool

Speed of Sound Calculator – Temperature, Humidity, Altitude and Other Gases

The speed of sound is not a constant. It is a property of the gas the wave is passing through, and it moves with that gas's temperature, its composition and its water-vapour content. This speed of sound calculator makes those dependencies explicit: enter a temperature and it returns c by the classroom linear fit, by the full ideal-gas relation, and by a humidity-corrected mixture model, then uses the answer to give you the wavelength of any tone, the flight time over any distance, the echo round trip, the local air density and the acoustic impedance.

The two formulas, and why they differ

The shortcut most people meet first is c = 331.3 + 0.606 · T with Tin degrees Celsius. At 20 °C it gives 343.42 m/s. The physically correct expression is the ideal-gas relation

c = √(γ · R · T / M)

where γ is the heat capacity ratio Cp/Cv, R = 8.314462618 J/(mol·K) is the universal gas constant, T is the absolute temperature in kelvin and Mis the molar mass in kg/mol. For dry air — γ = 1.400 and M = 0.0289644 kg/mol — that returns 343.24 m/sat the same 20 °C. The linear form is simply this square root linearised about the freezing point, which is why it holds to about 0.1 % between −20 °C and 50 °C and then drifts.

Why pressure does not appear in the answer

Writing the wave speed as c = √(γp/ρ) makes it look pressure-dependent, and this is the single most common misconception about sound. Raising the pressure at fixed temperature raises the density in exact proportion, so the ratio p/ρ = RT/M is untouched. The extra stiffness and the extra inertia cancel. Pressure enters this calculator for two other reasons only: it fixes how much water vapour a given relative humidity actually represents, and it fixes the density used for ρc.

Temperature is the whole story for a gas
A 10 °C rise adds roughly 6 m/snear room temperature — about 1.7 %. Doubling the atmospheric pressure adds nothing at all. If a sound-speed figure changes with altitude, it is changing because the air up there is colder, not because it is thinner.

Humid air travels faster, not slower

Water vapour has a molar mass of 18.0 g/molagainst dry air's 29.0 g/mol. Replacing some nitrogen and oxygen with H₂O therefore makes the mixture lighter, and c goes as 1/√M. The humid-air model here computes the saturation vapour pressure from the Buck/Magnus curve, converts relative humidity into a mole fraction x_w = (RH/100) · p_sat / P, and mixes the molar masses and heat capacities properly — adding molar heat capacities rather than averaging γ values, which is where simpler calculators go wrong. The correction is small: around +0.7 m/s at 20 °C and saturation, but near +2 m/sat 30 °C, because saturation vapour pressure climbs steeply with temperature.

Altitude, Mach number and the standard atmosphere

The altitude mode takes temperature and pressure from the 1976 US Standard Atmosphere: a constant 6.5 K/km lapse through the troposphere, then an isothermal 216.65 K layer above the 11 km tropopause. Local Mach 1 falls from 343.2 m/s at 20 °C sea level to 295.1 m/s at the tropopause and then stops falling, because the temperature stops falling. That is why the same true airspeed corresponds to a higher Mach number at cruise altitude.

Other gases: what γ and M each do

Helium is monatomic, so γ = 5/3, the ideal-gas maximum, and its molar mass is seven times lower than air's: sound travels about 1007 m/sat 20 °C, roughly 2.9× the speed in air. Because your vocal tract's resonances scale directly with c, that shifts your formants up — your vocal cords are vibrating at exactly the same pitch. CO₂ does the opposite: γ drops to about 1.29 and Mrises to 44 g/mol, so c falls to roughly 267 m/s. Argon shows the two effects competing — it shares helium's high γ but is ten times heavier, and ends up slower than air.

Everyday uses of the number

  • Speaker delay alignment— a 10 °C change in hall temperature shifts arrival time by about 1.7 %, which is audible on long throws.
  • Wavelength and room modes λ = c/f gives 17 m at 20 Hz and 17 mm at 20 kHz, the reason bass behaves like pressure in a room and treble behaves like light.
  • Ultrasonic ranging— sensors time the round trip, so d = c · t / 2; using a fixed 343 m/s instead of the local value costs roughly 0.17 % per degree.
  • Thunder distance— about 2.9 s of delay per kilometre, or 4.7 s per mile, between the flash and the bang.
Where the ideal-gas model stops working
Below about −100 °C or above 1000 °C the heat capacity ratio is no longer constant, and gases may condense or dissociate. Treat results far outside ordinary atmospheric conditions as indicative, and remember that the linear fit is an air-onlyfit — applying it to helium or CO₂ is meaningless.

Every result on this page shows its substituted formula, so you can reproduce it by hand, and every figure is carried at full double precision internally with rounding applied only for display.

Frequently Asked Questions

Is the Speed of Sound Calculator free?

Yes, Speed of Sound Calculator is totally free :)

Can I use the Speed of Sound Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Speed of Sound Calculator?

Yes, any data related to Speed of Sound Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

How does this speed of sound calculator work?

Enter an air temperature — or an altitude, or a measured speed you want to invert — and pick one of three models: the classroom linear fit c = 331.3 + 0.606·T, the ideal-gas relation c = √(γRT/M), or a Cramer-style humid-air mixture that folds water vapour and CO₂ into the effective molar mass. Everything is converted to SI, evaluated at full double precision, and rounded only on screen. The same result then drives the wavelength, time-of-flight, echo, density and acoustic-impedance panels, and every figure comes with the substituted formula that produced it.

Why does pressure not change the speed of sound?

Because it cancels. Writing the wave speed as c = √(γp/ρ) makes it look pressure-dependent, but density is itself proportional to pressure at fixed temperature, so the ratio p/ρ = RT/M leaves only temperature behind. Doubling the pressure doubles the stiffness and the inertia in equal measure. Pressure appears in this calculator for two other reasons: it sets how much water vapour a given relative humidity represents, and it sets the air density used for acoustic impedance.

Does humid air really carry sound faster than dry air?

Yes, and this surprises most people. Water vapour has a molar mass of 18.0 g/mol against dry air's 29.0 g/mol, so replacing some nitrogen and oxygen with H₂O makes the mixture lighter, and c goes as 1/√M. The effect is small — at 20 °C and 100 % relative humidity it is roughly +0.7 m/s, about 0.2 % — but it grows quickly with temperature because the saturation vapour pressure does. At 30 °C and 90 % relative humidity the calculator puts the correction near +2 m/s.

How accurate is the 331.3 + 0.606·T shortcut?

It is a linearisation of the square-root law about 0 °C, and it holds to roughly 0.1 % between about −20 °C and +50 °C. At 20 °C it gives 343.42 m/s against the ideal-gas 343.24 m/s, a difference of 0.18 m/s. Outside that band it drifts fast, and it is an air-only fit, so applying it to helium or CO₂ is meaningless — those need √(γRT/M), which is what actually responds to the heat capacity ratio and the molar mass.

Why does helium raise your voice and CO₂ lower it?

Because the speed of sound in the gas sets the resonant frequencies of your vocal tract, and those frequencies scale directly with c. Helium is monatomic, so γ takes the ideal-gas maximum of 5/3, and its molar mass is seven times lower than air's — sound travels about 2.9× faster and the formants shift up by the same factor. CO₂ is triatomic and heavy: γ falls to about 1.29 and M rises to 44 g/mol, so sound travels about 22 % slower than in air and the voice deepens. Your vocal cords vibrate at the same pitch in both cases; only the resonances move.

Can I use this for Mach number and aviation work?

Yes — switch to the altitude mode, which takes temperature and pressure from the 1976 US Standard Atmosphere and reports the local speed of sound as Mach 1. At the 11 km tropopause it returns 295.1 m/s against 343.2 m/s at 20 °C sea level, which is why the same true airspeed corresponds to a much higher Mach number at cruise. Remember that the ISA is a fixed reference, not a forecast: real temperature aloft routinely departs from it, and it is the temperature — never the altitude itself — that sets the local sound speed.