Speed of Sound Calculator by Temperature and Medium

Sound travels at about 343 m/s in dry air at 20 °C, and faster when the air is warmer. Pick a medium, set the conditions, and get the speed in five units plus how far sound goes in a given time. See more sound and wave calculators.

Last updated: November 9, 2026

Air −50 to 60 °C; helium and CO2 −50 to 100 °C; fresh water 0 to 95 °C; seawater −2 to 35 °C.

Air presets

%
0% = dry air, the textbook value. Up to 100%.
kPa
50 to 110 kPa. Pressure on its own does not change the speed of sound; here it only affects how much water vapor the air holds.

Result

343.215 m/s in dry air at 20 °C

c = 331.3 × √(1 + 20 ÷ 273.15) = 343.215 m/s

Speed in five units

m/s
343.215
km/h
1,235.57
mph
767.749
ft/s
1,126.03
knots
667.156

Quick rule: 331.3 + 0.606 × 20 = 343.42 m/s, 0.205 m/s (0.06%) above the full result.

Sound covers 1 km in 2.91363 s and 1 mile in 4.68903 s.

Travel time and distance

0 to 3,600 s.
0 to 1,000 km. Type in either box.

Type a time or a distance to see how far sound goes, or how long it takes.

Worked examples
  1. Dry air at 20 °C: 331.3 × √(1 + 20 ÷ 273.15) = 343.215 m/s (767.749 mph).

  2. Air at 20 °C and 50% humidity: 343.844 m/s.

  3. Fresh water at 20 °C: 1,482.38 m/s.

  4. Seawater at 20 °C, 35 ppt, at the surface: 1,521.46 m/s.

  5. Thunder 6 seconds after the flash: 343.215 × 6 = 2,059.29 m, about 2.1 km or 1.3 miles.

Significant figures shown in every result.

Enter in a box saves the resultC copies the result

Recent results

    Results you save with Enter, Copy, Share or Save appear here. Tap Show to load one.

    Saved only in this browser: see what is stored on this device.

    Speed of sound in air by temperature

    Temperature is the main thing that changes the speed of sound in air. Warm air molecules move faster, so they pass a sound wave along more quickly. The table uses dry air and the formula c = 331.3 × √(1 + T ÷ 273.15), with T in degrees Celsius.

    Temperaturem/skm/hmphft/s
    −20 °C (−4 °F)318.91,148.2713.41,046.4
    −10 °C (14 °F)325.21,170.6727.41,066.9
    0 °C (32 °F)331.31,192.7741.11,086.9
    10 °C (50 °F)337.31,214.3754.51,106.7
    20 °C (68 °F)343.21,235.6767.71,126.0
    30 °C (86 °F)349.01,256.5780.71,145.1
    40 °C (104 °F)354.71,277.0793.51,163.8

    A handy rule of thumb: the speed rises by about 0.6 m/s for every degree Celsius, so c ≈ 331.3 + 0.6 × T. The rule is within half a meter per second of the full formula between 0 and 30 °C, and the calculator shows how far off it is for your temperature. Many textbooks quote 343 m/s, which is the 20 °C value, or 340 m/s, which is closer to the value at 15 °C.

    Does humidity change the speed of sound?

    Yes, slightly. Water vapor molecules are lighter than the nitrogen and oxygen they replace, so humid air is a little less dense and carries sound a little faster. At 20 °C the speed is 343.2 m/s in dry air, 343.8 m/s at 50% relative humidity and 344.5 m/s at 100%. Warm air can hold much more water, so the effect grows with temperature: at 30 °C, going from dry to fully humid air adds about 2.3 m/s.

    For everyday work you can usually ignore humidity, because a few degrees of temperature error matters more. It is worth including for precise acoustic measurements, for tuning in a humid hall, or when you compare your own measurement with a reference value.

    Altitude, pressure and Mach 1

    Pressure on its own makes no difference to the speed of sound in air: lower pressure makes the air less dense, but also less stiff, and the two cancel out. What changes with height is the temperature. In the standard atmosphere it is 15 °C at sea level, where sound travels at 340.3 m/s (761 mph), and −56.5 °C at an airliner's cruising height of about 11 km, where it travels at only 295.1 m/s (660 mph).

    That is why Mach 1 is not one fixed speed. A Mach number is the aircraft's speed divided by the local speed of sound, so a plane at the same ground speed is at a higher Mach number in the cold air up high than near the ground.

    Speed of sound in water and seawater

    Sound travels about 1,482 m/s in fresh water at 20 °C, more than four times faster than in air. In water the speed also rises with temperature, but only up to a point: it peaks near 74 °C at about 1,555 m/s and then falls slightly. Seawater is faster still, because dissolved salt makes it stiffer. At 20 °C and a typical salinity of 35 parts per thousand, sound moves at about 1,521 m/s at the surface. Pressure adds speed with depth: at 1,000 m, the same 20 °C water would carry sound at about 1,538 m/s.

    In the real ocean, temperature drops with depth while pressure rises, which bends sound into channels that can carry it across whole ocean basins. Sonar systems, depth sounders and fish finders all need the local speed to turn an echo's travel time into a distance.

    Speed of sound in solids

    Solids carry sound fastest of all. The speed depends on how stiff a material is compared with how dense it is, c = √(stiffness ÷ density), so a stiff, light material like aluminum is very fast, while a soft, heavy one like lead is slow.

    MaterialSpeed (m/s)
    Aluminum6,420
    Steel5,960
    Stainless steel5,790
    Glass (Pyrex)5,640
    Copper4,760
    Brass4,700
    Concreteabout 3,400 (varies by about ±10%)
    Lead2,160

    These are bulk longitudinal speeds for large pieces at room temperature. A thin rod or rail is slower, about 5,100 m/s for steel, because it can bulge sideways as the wave passes. Even so, steel carries sound about 17 times faster than air, which is why you can hear a train coming through the rail before you hear it through the air.

    How far away is the thunder?

    Lightning and thunder happen at the same moment, but the light reaches you almost instantly while the sound takes about 2.9 seconds to cover each kilometer, or 4.7 seconds per mile. Count the seconds from the flash to the thunder, then divide by 3 for kilometers or by 5 for miles.

    Worked example: a 6-second gap in 20 °C air means 343.2 × 6 = 2,059 m, about 2.1 km or 1.3 miles. Tap the thunder preset in the travel panel and type your own count. The count tells you distance, not safety: if you can hear thunder at all, the storm is close enough to strike, so get indoors.

    From speed to wavelength, rooms and motion

    Once you know the speed, you can turn the speed into a wavelength for any frequency, since λ = c ÷ f. For the idea behind that formula, read how speed links frequency and wavelength. The same speed sets the standing waves in a room, where bass notes whose half-wavelengths fit between the walls boom while others fade. And it sets how much a moving source shifts the pitch you hear, the Doppler effect, which depends on the source's speed compared with the speed of sound.

    The formulas used

    • Dry air: c = 331.3 × √(1 + T ÷ 273.15) m/s, with T in °C. This is the speed of sound at 0 °C scaled by the square root of the absolute temperature.
    • Humid air: the dry-air result times a correction from an ideal-gas mixture of dry air and water vapor. The water-vapor share comes from the Buck equation for saturation vapor pressure, p_sat = 611.21 × exp((18.678 − T ÷ 234.5) × (T ÷ (257.14 + T))) Pa, times the relative humidity, divided by the air pressure. The mixture's molar mass and heat capacities then give its speed, c = √(γRT ÷ M).
    • Helium and carbon dioxide: c = √(γRT ÷ M) with γ = 1.667 and M = 0.0040026 kg/mol for helium (about 1,007 m/s at 20 °C), and γ = 1.289 and M = 0.04401 kg/mol for CO2 (about 267 m/s).
    • Fresh water: the Marczak (1997) fit, a fifth-order polynomial in temperature that is valid from 0 to 95 °C.
    • Seawater: the Mackenzie (1981) equation in temperature, salinity and depth, tested from 2 to 30 °C, 25 to 40 ppt and 0 to 8,000 m.
    • Travel: distance d = c × t and time t = d ÷ c.

    Worked examples

    1. Dry air at 20 °C. c = 331.3 × √(1 + 20 ÷ 273.15) = 343.215 m/s, which is 1,235.57 km/h, 767.749 mph, 1,126.03 ft/s or 667.156 knots.
    2. Air at 20 °C and 50% humidity. The humidity correction is 1.00183, so c = 343.215 × 1.00183 = 343.844 m/s.
    3. Fresh water at 20 °C. The Marczak formula gives 1,482.38 m/s.
    4. Seawater at 20 °C, 35 ppt, at the surface. The Mackenzie formula gives 1,521.46 m/s.
    5. Thunder after 6 seconds in 20 °C dry air. d = 343.215 × 6 = 2,059.29 m, which is 2.05929 km or 1.27958 miles.

    How this tool works

    The calculator picks the formula for the medium you choose, converts °F and K to °C first, and checks the temperature against that formula's range. The speed is then shown in m/s, km/h (× 3.6), mph (÷ 0.44704), ft/s (÷ 0.3048) and knots (÷ 0.514444). The travel panel multiplies or divides by that speed, from whichever box you typed in last. For air it uses the same dry-air function as every other calculator on this site, so 20 °C always gives 343.2 m/s. Everything runs in your browser.

    Limits. The air model (dry-air formula plus an ideal-gas humidity correction) is within a few tenths of a percent of published reference values between −20 and 40 °C at normal pressure; it ignores carbon dioxide and the tiny change with frequency. Speeds in solids are typical values: alloys and grades vary, and thin rods carry sound more slowly (steel rod about 5,100 m/s). Real water contains dissolved gas and salts that change the value slightly. Altitude matters only because the air is colder up there.

    Speed of sound: FAQ

    What is the speed of sound at 20 °C?

    In dry air at 20 °C (68 °F), sound travels at about 343.2 m/s, which is 1,235.6 km/h, 767.7 mph or 1,126 ft/s. At 50% relative humidity it is slightly faster, about 343.8 m/s. Many textbooks round this to 343 m/s or 340 m/s; the second figure is closer to the value at 15 °C.

    Why does sound travel faster in water than in air?

    The speed of sound depends on how stiff a material is compared with how dense it is: c = √(stiffness ÷ density). Water is about 830 times denser than air but roughly 15,000 times harder to compress, so stiffness wins. That gives about 1,480 m/s in water against 343 m/s in air, more than four times faster.

    How much does temperature change the speed of sound in air?

    About 0.6 m/s for every degree Celsius, or about 0.34 m/s per degree Fahrenheit. Between a cold 0 °C day and a hot 35 °C day, the speed rises from 331.3 m/s to 351.9 m/s, about 6%. That is enough to make wind instruments play noticeably sharper as they warm up.

    How do I work out how far away lightning is?

    Count the seconds between the flash and the thunder. Light arrives almost instantly, while sound covers about 1 km every 2.9 seconds, or 1 mile every 4.7 seconds. So divide the seconds by 3 for kilometers, or by 5 for miles: a 6-second gap means the strike was about 2 km, or 1.2 miles, away.

    Is Mach 1 always the same speed?

    No. Mach 1 is the local speed of sound, which depends mainly on air temperature. In the standard atmosphere it is 340.3 m/s (761 mph) at sea level, where the air is 15 °C, but only 295.1 m/s (660 mph) at airliner cruising height, where it is −56.5 °C. A plane can fly at the same ground speed and be at different Mach numbers.

    How fast does sound travel in steel?

    About 5,960 m/s in a large block of steel, roughly 17 times faster than in air. In a thin rod or rail, the speed is lower, about 5,100 m/s, because the rod can bulge sideways. That is why, standing near a long rail, you can hear an approaching train through the rail before you hear it through the air.