A quick estimate for timing and echoes

The speed of sound in air sets the delay you notice between seeing and hearing an event. It governs the gap between lightning and thunder, the time an echo takes to come back from a cliff and the spacing needed in a loudspeaker array. Air is not a fixed medium: warm air carries sound faster than cold air. This page takes one number, the air temperature in degrees Celsius, and returns an estimate of the speed in meters per second. It is meant for coursework and rough planning, where the answer needs to be right to within about a percent. It assumes dry air at ordinary pressure, so humidity is not part of the calculation.

The temperature scaling formula

For an ideal gas, sound speed grows with the square root of absolute temperature. The page uses v = 331 × √((T + 273.15) / 273.15), with T in degrees Celsius. At 0 °C the square root equals one and the speed is the reference value of 331 m/s. Each other temperature is scaled by the ratio of its absolute temperature to 273.15 K. A rise of about 4 °C near room temperature adds roughly 2.4 m/s. Many textbooks approximate the same relationship with a straight line, 331 + 0.6 × T, which agrees closely in the range of everyday weather but diverges at extreme cold and heat.

The default and two comparison points

The default input is 0 °C, which returns exactly 331 m/s. At a comfortable room temperature of 20 °C the ratio is 293.15 / 273.15, the square root is about 1.0360, and the speed is about 342.9 m/s. On a hot day of 35 °C the result rises to about 351.6 m/s, and on a frozen day of −20 °C it falls to about 318.6 m/s. The spread between those two weather extremes is more than 30 m/s, so a calculation of echo timing with a fixed 340 m/s can drift by several percent if the weather is unusual. A quick way to read these numbers is the change per degree. Between 0 °C and 20 °C the result rises by about 11.9 m/s, or roughly 0.6 m/s for each degree, which is exactly the slope the linear rule of thumb uses. At 35 °C the slope is still close to 0.6 m/s per degree, so the straight-line shortcut works well in everyday weather even though the page uses the square-root form.

Using the result: thunder and echoes

Light reaches you almost instantly, so the delay between a flash and its thunder is the travel time of the sound. At 20 °C the speed is about 343 m/s, so each second of delay corresponds to roughly 343 m, and three seconds to about a kilometer. For an echo, the sound travels to the reflector and back, so the distance to the wall is half the speed times the delay. An echo returning after 0.5 s at 20 °C comes from about 86 m away. Because the formula depends on temperature, a cold morning gives a shorter distance for the same delay than a warm afternoon.

Why humidity and pressure are left out

The page models dry air as an ideal gas. In that model, pressure changes do not alter the sound speed, because pressure and density change together and cancel. Humidity does have a small effect, since water vapor is lighter than the nitrogen and oxygen it replaces, so humid air carries sound slightly faster. At room temperature the gain can reach a few tenths of a percent. Real air also varies with altitude, which changes temperature, and composition has an effect in specialized settings such as helium-filled balloons. The 331 m/s reference value is rounded from the more precise 331.3 m/s used in some references.

Other media for comparison

Sound travels much faster in liquids and solids, which is why the formula on this page applies only to air. In fresh water at room temperature, the speed is roughly 1,480 m/s, and in steel it is about 5,000 m/s along a thin bar. The faster speed in denser materials comes from their greater stiffness, which more than offsets their higher mass density. A hydrophone, a sonar unit or an ultrasonic thickness gauge needs its own speed value for the material it works in. Do not apply the air result to underwater problems, where temperature, salinity and depth all matter.

Entering temperature correctly

The input is the air temperature in degrees Celsius. If your thermometer reads Fahrenheit, subtract 32 and multiply by 5/9 first, so 68 °F becomes 20 °C. Do not enter kelvin, since the page adds 273.15 itself and a kelvin value would be treated as a very hot day. Temperatures below −273.15 °C make the square root undefined and have no physical meaning. For outdoor use, measure the temperature of the air along the path the sound actually takes. Sunlit pavement and shaded grass produce different layers, which can bend sound and make a single reading only approximate.

Frequency, wavelength and musical pitch

Once you know the speed, you can find the wavelength of any tone from wavelength = speed / frequency. At 20 °C, concert A at 440 Hz has a wavelength of about 0.78 m, while a 20 Hz bass note stretches to about 17 m and a 10 kHz tone shrinks to about 3.4 cm. Wind instruments depend on this relationship because the pitch of an air column rises with temperature. A flute that warms up during a performance goes sharp, since the speed of sound in the tube increases while the tube length stays the same. Orchestras tune after a warm-up for this reason, and a cold hall pulls pitch flat. The speed from this page feeds directly into those wavelength estimates.

Dry air only, with no wind or humidity

The result is a scalar educational approximation for ideal dry air. It does not account for wind, which adds or subtracts from the ground speed of the sound, nor for temperature gradients that bend sound waves up or down. The reference constant is rounded, so the result can differ from precision acoustic tables by a fraction of a percent. For engineering uses such as architectural acoustics or ultrasonic flow meters, rely on measured values or a validated standard rather than this single-input formula.